aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2008-01-14 19:17:31 +0000
committerAlan Mackenzie2008-01-14 19:17:31 +0000
commitf189315dde3522f7fc76261d85e54563d10ad437 (patch)
tree7a0339553c3aea85a76d5807257bcd2d5ae75ac3
parent2780711e73fbb4c98e701f5c5e5245603a012652 (diff)
downloademacs-f189315dde3522f7fc76261d85e54563d10ad437.tar.gz
emacs-f189315dde3522f7fc76261d85e54563d10ad437.zip
(c-guess-basic-syntax): prevent a macro call inside a struct being
recognised as a K&R argument.
-rw-r--r--lisp/progmodes/cc-engine.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 3f86e931d34..8596aaad4c2 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -8293,6 +8293,7 @@ comment at the start of cc-engine.el for more info."
8293 8293
8294 ;; CASE 5H: we could be looking at subsequent knr-argdecls 8294 ;; CASE 5H: we could be looking at subsequent knr-argdecls
8295 ((and c-recognize-knr-p 8295 ((and c-recognize-knr-p
8296 (not containing-sexp) ; can't be knr inside braces.
8296 (not (eq char-before-ip ?})) 8297 (not (eq char-before-ip ?}))
8297 (save-excursion 8298 (save-excursion
8298 (setq placeholder (cdr (c-beginning-of-decl-1 lim))) 8299 (setq placeholder (cdr (c-beginning-of-decl-1 lim)))