/[global]/global/gtags-parser/Cpp.c
ViewVC logotype

Diff of /global/gtags-parser/Cpp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by shigio, Tue May 10 05:17:52 2005 UTC revision 1.6 by shigio, Tue Oct 4 07:59:04 2005 UTC
# Line 72  static int namespacelevel;     /* namespace Line 72  static int namespacelevel;     /* namespace
72   * Cpp: read C++ file and pickup tag entries.   * Cpp: read C++ file and pickup tag entries.
73   */   */
74  void  void
75  Cpp(file)  Cpp(const char *file)
         const char *file;  
76  {  {
77          int c, cc;          int c, cc;
78          int savelevel;          int savelevel;
# Line 533  Cpp(file) Line 532  Cpp(file)
532   *      r)      target type   *      r)      target type
533   */   */
534  static void  static void
535  process_attribute(target)  process_attribute(int target)
         int target;  
536  {  {
537          int brace = 0;          int brace = 0;
538          int c;          int c;
# Line 566  process_attribute(target) Line 564  process_attribute(target)
564   *      r)      target type   *      r)      target type
565   */   */
566  static int  static int
567  function_definition(target)  function_definition(int target)
         int target;  
568  {  {
569          int c;          int c;
570          int brace_level;          int brace_level;
# Line 660  function_definition(target) Line 657  function_definition(target)
657   *      i)      target  current target   *      i)      target  current target
658   */   */
659  static void  static void
660  condition_macro(cc, target)  condition_macro(int cc, int target)
         int cc;  
         int target;  
661  {  {
662          cur = &pifstack[piflevel];          cur = &pifstack[piflevel];
663          if (cc == SHARP_IFDEF || cc == SHARP_IFNDEF || cc == SHARP_IF) {          if (cc == SHARP_IFDEF || cc == SHARP_IFNDEF || cc == SHARP_IF) {
# Line 728  condition_macro(cc, target) Line 723  condition_macro(cc, target)
723   *      r)              0: not data type, 1: data type   *      r)              0: not data type, 1: data type
724   */   */
725  static int  static int
726  seems_datatype(token)  seems_datatype(const char *token)
         const char *token;  
727  {  {
728          int length = strlen(token);          int length = strlen(token);
729          const char *p = token + length;          const char *p = token + length;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26