Mercurial > emacs
comparison lisp/progmodes/cc-engine.el @ 88033:86c372c5a95b
Correct typos, enhance comments.
author | Alan Mackenzie <acm@muc.de> |
---|---|
date | Sun, 27 Jan 2008 17:03:43 +0000 |
parents | d42f37113aa9 |
children | 8490f9f99fe3 |
comparison
equal
deleted
inserted
replaced
88032:9a5741ed6974 | 88033:86c372c5a95b |
---|---|
5092 ;; | 5092 ;; |
5093 ;; If a declaration is parsed: | 5093 ;; If a declaration is parsed: |
5094 ;; | 5094 ;; |
5095 ;; The point is left at the first token after the first complete | 5095 ;; The point is left at the first token after the first complete |
5096 ;; declarator, if there is one. The return value is a cons where | 5096 ;; declarator, if there is one. The return value is a cons where |
5097 ;; the car is the position of the first token in the declarator. | 5097 ;; the car is the position of the first token in the declarator. (See |
5098 ;; below for the cdr.) | |
5098 ;; Some examples: | 5099 ;; Some examples: |
5099 ;; | 5100 ;; |
5100 ;; void foo (int a, char *b) stuff ... | 5101 ;; void foo (int a, char *b) stuff ... |
5101 ;; car ^ ^ point | 5102 ;; car ^ ^ point |
5102 ;; float (*a)[], b; | 5103 ;; float (*a)[], b; |
5116 ;; void cplusplus_function (int x) throw (Bad); | 5117 ;; void cplusplus_function (int x) throw (Bad); |
5117 ;; car ^ ^ point | 5118 ;; car ^ ^ point |
5118 ;; Foo::Foo (int b) : Base (b) {} | 5119 ;; Foo::Foo (int b) : Base (b) {} |
5119 ;; car ^ ^ point | 5120 ;; car ^ ^ point |
5120 ;; | 5121 ;; |
5121 ;; The cdr of the return value is non-nil if a | 5122 ;; The cdr of the return value is non-nil iff a `c-typedef-decl-kwds' |
5122 ;; `c-typedef-decl-kwds' specifier is found in the declaration, | 5123 ;; specifier (e.g. class, struct, enum, typedef) is found in the |
5123 ;; i.e. the declared identifier(s) are types. | 5124 ;; declaration, i.e. the declared identifier(s) are types. |
5124 ;; | 5125 ;; |
5125 ;; If a cast is parsed: | 5126 ;; If a cast is parsed: |
5126 ;; | 5127 ;; |
5127 ;; The point is left at the first token after the closing paren of | 5128 ;; The point is left at the first token after the closing paren of |
5128 ;; the cast. The return value is `cast'. Note that the start | 5129 ;; the cast. The return value is `cast'. Note that the start |
5133 ;; token, i.e. on the other side of the syntactic ws from the point. | 5134 ;; token, i.e. on the other side of the syntactic ws from the point. |
5134 ;; Use a value less than or equal to (point-min) if the point is at | 5135 ;; Use a value less than or equal to (point-min) if the point is at |
5135 ;; the first token in (the visible part of) the buffer. | 5136 ;; the first token in (the visible part of) the buffer. |
5136 ;; | 5137 ;; |
5137 ;; CONTEXT is a symbol that describes the context at the point: | 5138 ;; CONTEXT is a symbol that describes the context at the point: |
5138 ;; 'decl In a comma-separatded declaration context (typically | 5139 ;; 'decl In a comma-separated declaration context (typically |
5139 ;; inside a function declaration arglist). | 5140 ;; inside a function declaration arglist). |
5140 ;; '<> In an angle bracket arglist. | 5141 ;; '<> In an angle bracket arglist. |
5141 ;; 'arglist Some other type of arglist. | 5142 ;; 'arglist Some other type of arglist. |
5142 ;; nil Some other context or unknown context. | 5143 ;; nil Some other context or unknown context. |
5143 ;; | 5144 ;; |