changeset 51888:b5a29d6f2851

(c-declare-lang-variables): Don't use mapcan.
author Richard M. Stallman <rms@gnu.org>
date Sun, 13 Jul 2003 00:20:27 +0000
parents a39d64d1eb50
children 5b772e335afe
files lisp/progmodes/cc-engine.el
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cc-engine.el	Sun Jul 13 00:19:56 2003 +0000
+++ b/lisp/progmodes/cc-engine.el	Sun Jul 13 00:20:27 2003 +0000
@@ -155,12 +155,13 @@
 
 (defmacro c-declare-lang-variables ()
   `(progn
-     ,@(mapcan (lambda (init)
-		 `(,(if (elt init 2)
-			`(defvar ,(car init) nil ,(elt init 2))
-		      `(defvar ,(car init) nil))
-		   (make-variable-buffer-local ',(car init))))
-	       (cdr c-lang-variable-inits))))
+     ,@(apply 'nconc
+	      (mapcar (lambda (init)
+			`(,(if (elt init 2)
+			       `(defvar ,(car init) nil ,(elt init 2))
+			     `(defvar ,(car init) nil))
+			  (make-variable-buffer-local ',(car init))))
+		      (cdr c-lang-variable-inits)))))
 (c-declare-lang-variables)