Fix bugs in the c-parse-state mechanism. Reuse some markers instead of
commit8cff5febae4e032c8b78f9013f23989af18db269
authorAlan Mackenzie <acm@muc.de>
Wed, 9 Jan 2013 21:33:00 +0000 (9 21:33 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 9 Jan 2013 21:33:00 +0000 (9 21:33 +0000)
treecba85c21c3ab3f0f14767ff4e5586a72af0c7197
parent45a7e57ca337302437d330fca177af10df08c43f
Fix bugs in the c-parse-state mechanism.  Reuse some markers instead of
continually generating new ones.

cc-engine.el (c-state-old-cpp-beg-marker, c-state-old-cpp-end-marker):
New variables.
(c-append-lower-brace-pair-to-state-cache): Start a backward search for
"}" definitively outside CPP constructs.
(c-remove-stale-state-cache): Inform the caller of a need to search back
for a brace pair in certain circumstances.
(c-state-maybe-marker): New macro.
(c-parse-state): Reuse markers when appropriate.
lisp/ChangeLog
lisp/progmodes/cc-engine.el