]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-guess-basic-syntax): prevent a macro call inside a struct being
authorAlan Mackenzie <acm@muc.de>
Mon, 14 Jan 2008 19:17:31 +0000 (19:17 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 14 Jan 2008 19:17:31 +0000 (19:17 +0000)
recognised as a K&R argument.

lisp/progmodes/cc-engine.el

index 3f86e931d34f741ec19b0831103307b154c47a66..8596aaad4c2274f79bb357e6be8aa7f99c6724ba 100644 (file)
@@ -8293,6 +8293,7 @@ comment at the start of cc-engine.el for more info."
 
           ;; CASE 5H: we could be looking at subsequent knr-argdecls
           ((and c-recognize-knr-p
+                (not containing-sexp)  ; can't be knr inside braces.
                 (not (eq char-before-ip ?}))
                 (save-excursion
                   (setq placeholder (cdr (c-beginning-of-decl-1 lim)))