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

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

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

revision 1.6 by shigio, Tue May 10 05:17:52 2005 UTC revision 1.7 by shigio, Tue Oct 4 07:59:04 2005 UTC
# Line 76  static int level;              /* brace level */ Line 76  static int level;              /* brace level */
76   * yacc: read yacc file and pickup tag entries.   * yacc: read yacc file and pickup tag entries.
77   */   */
78  void  void
79  yacc(file)  yacc(const char *file)
         const char *file;  
80  {  {
81          C_family(file, TYPE_YACC);          C_family(file, TYPE_YACC);
82  }  }
# Line 85  yacc(file) Line 84  yacc(file)
84   * C: read C file and pickup tag entries.   * C: read C file and pickup tag entries.
85   */   */
86  void  void
87  C(file)  C(const char *file)
         const char *file;  
88  {  {
89          C_family(file, TYPE_C);          C_family(file, TYPE_C);
90  }  }
# Line 95  C(file) Line 93  C(file)
93   *      i)      type    TYPE_C, TYPE_YACC, TYPE_LEX   *      i)      type    TYPE_C, TYPE_YACC, TYPE_LEX
94   */   */
95  static void  static void
96  C_family(file, type)  C_family(const char *file, int type)
         const char *file;  
         int type;  
97  {  {
98          int c, cc;          int c, cc;
99          int savelevel;          int savelevel;
# Line 499  C_family(file, type) Line 495  C_family(file, type)
495   *      r)      target type   *      r)      target type
496   */   */
497  static void  static void
498  process_attribute(target)  process_attribute(int target)
         int target;  
499  {  {
500          int brace = 0;          int brace = 0;
501          int c;          int c;
# Line 534  process_attribute(target) Line 529  process_attribute(target)
529   *      r)      target type   *      r)      target type
530   */   */
531  static int  static int
532  function_definition(target, arg1)  function_definition(int target, char arg1[MAXTOKEN])
         int target;  
         char arg1[MAXTOKEN];  
533  {  {
534          int c;          int c;
535          int brace_level, isdefine;          int brace_level, isdefine;
# Line 635  function_definition(target, arg1) Line 628  function_definition(target, arg1)
628   *      i)      target  current target   *      i)      target  current target
629   */   */
630  static void  static void
631  condition_macro(cc, target)  condition_macro(int cc, int target)
         int cc;  
         int target;  
632  {  {
633          cur = &stack[piflevel];          cur = &stack[piflevel];
634          if (cc == SHARP_IFDEF || cc == SHARP_IFNDEF || cc == SHARP_IF) {          if (cc == SHARP_IFDEF || cc == SHARP_IFNDEF || cc == SHARP_IF) {
# Line 703  condition_macro(cc, target) Line 694  condition_macro(cc, target)
694   *      r)              0: not data type, 1: data type   *      r)              0: not data type, 1: data type
695   */   */
696  static int  static int
697  seems_datatype(token)  seems_datatype(const char *token)
         const char *token;  
698  {  {
699          int length = strlen(token);          int length = strlen(token);
700          const char *p = token + length;          const char *p = token + length;

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

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