/[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.1 by shigio, Fri Feb 18 11:07:18 2005 UTC revision 1.2 by shigio, Thu Feb 24 01:33:48 2005 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (c) 1998, 1999, 2000, 2002, 2003   * Copyright (c) 1998, 1999, 2000, 2002, 2003, 2005
3   *      Tama Communications Corporation   *      Tama Communications Corporation
4   *   *
5   * This file is part of GNU GLOBAL.   * This file is part of GNU GLOBAL.
# Line 47  Line 47 
47   * java: read java file and pickup tag entries.   * java: read java file and pickup tag entries.
48   */   */
49  void  void
50  java()  java(file)
51            const char *file;
52  {  {
53          int c;          int c;
54          int level;                                      /* brace level */          int level;                                      /* brace level */
# Line 71  java() Line 72  java()
72          target = (sflag) ? SYM : ((rflag) ? REF : DEF);          target = (sflag) ? SYM : ((rflag) ? REF : DEF);
73          startclass = startthrows = startequal = 0;          startclass = startthrows = startequal = 0;
74    
75            if (!opentoken(file))
76                    die("'%s' cannot open.", file);
77          while ((c = nexttoken(interested, reserved_word)) != EOF) {          while ((c = nexttoken(interested, reserved_word)) != EOF) {
78                  switch (c) {                  switch (c) {
79                  case SYMBOL:                                    /* symbol */                  case SYMBOL:                                    /* symbol */
# Line 171  java() Line 174  java()
174                          break;                          break;
175                  }                  }
176          }          }
177            closetoken();
178  }  }

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

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