diff options
| author | Alan Mackenzie | 2008-01-14 19:23:32 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2008-01-14 19:23:32 +0000 |
| commit | 027d6bb11403cd7ee09d69003a94f88e00687df1 (patch) | |
| tree | 92cd8f687de9d7c5ae8ea4e9a00d5cd62424cee0 | |
| parent | f4b08f5447e484c806990c4fad45381eefeb4f60 (diff) | |
| download | emacs-027d6bb11403cd7ee09d69003a94f88e00687df1.tar.gz emacs-027d6bb11403cd7ee09d69003a94f88e00687df1.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.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 7cac158166e..9718bd0ddc9 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -8296,6 +8296,7 @@ comment at the start of cc-engine.el for more info." | |||
| 8296 | 8296 | ||
| 8297 | ;; CASE 5H: we could be looking at subsequent knr-argdecls | 8297 | ;; CASE 5H: we could be looking at subsequent knr-argdecls |
| 8298 | ((and c-recognize-knr-p | 8298 | ((and c-recognize-knr-p |
| 8299 | (not containing-sexp) ; can't be knr inside braces. | ||
| 8299 | (not (eq char-before-ip ?})) | 8300 | (not (eq char-before-ip ?})) |
| 8300 | (save-excursion | 8301 | (save-excursion |
| 8301 | (setq placeholder (cdr (c-beginning-of-decl-1 lim))) | 8302 | (setq placeholder (cdr (c-beginning-of-decl-1 lim))) |