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

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

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

revision 1.2 by shigio, Thu Feb 24 01:33:48 2005 UTC revision 1.3 by shigio, Sun Apr 10 11:48:26 2005 UTC
# Line 74  java(file) Line 74  java(file)
74    
75          if (!opentoken(file))          if (!opentoken(file))
76                  die("'%s' cannot open.", file);                  die("'%s' cannot open.", file);
77          while ((c = nexttoken(interested, reserved_word)) != EOF) {          while ((c = nexttoken(interested, java_reserved_word)) != EOF) {
78                  switch (c) {                  switch (c) {
79                  case SYMBOL:                                    /* symbol */                  case SYMBOL:                                    /* symbol */
80                          for (; c == SYMBOL && peekc(1) == '.'; c = nexttoken(interested, reserved_word)) {                          for (; c == SYMBOL && peekc(1) == '.'; c = nexttoken(interested, java_reserved_word)) {
81                                  if (target == SYM)                                  if (target == SYM)
82                                          PUT(token, lineno, sp);                                          PUT(token, lineno, sp);
83                          }                          }
# Line 139  java(file) Line 139  java(file)
139                          break;                          break;
140                  case JAVA_CLASS:                  case JAVA_CLASS:
141                  case JAVA_INTERFACE:                  case JAVA_INTERFACE:
142                          if ((c = nexttoken(interested, reserved_word)) == SYMBOL) {                          if ((c = nexttoken(interested, java_reserved_word)) == SYMBOL) {
143                                  strlimcpy(classname, token, sizeof(classname));                                  strlimcpy(classname, token, sizeof(classname));
144                                  startclass = 1;                                  startclass = 1;
145                                  if (target == DEF)                                  if (target == DEF)
# Line 148  java(file) Line 148  java(file)
148                          break;                          break;
149                  case JAVA_NEW:                  case JAVA_NEW:
150                  case JAVA_INSTANCEOF:                  case JAVA_INSTANCEOF:
151                          while ((c = nexttoken(interested, reserved_word)) == SYMBOL && peekc(1) == '.')                          while ((c = nexttoken(interested, java_reserved_word)) == SYMBOL && peekc(1) == '.')
152                                  if (target == SYM)                                  if (target == SYM)
153                                          PUT(token, lineno, sp);                                          PUT(token, lineno, sp);
154                          if (c == SYMBOL)                          if (c == SYMBOL)
# Line 167  java(file) Line 167  java(file)
167                  case JAVA_LONG:                  case JAVA_LONG:
168                  case JAVA_SHORT:                  case JAVA_SHORT:
169                  case JAVA_VOID:                  case JAVA_VOID:
170                          if (peekc(1) == '.' && (c = nexttoken(interested, reserved_word)) != JAVA_CLASS)                          if (peekc(1) == '.' && (c = nexttoken(interested, java_reserved_word)) != JAVA_CLASS)
171                                  pushbacktoken();                                  pushbacktoken();
172                          break;                          break;
173                  default:                  default:

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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