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. |
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 */ |
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 */ |
174 |
break; |
break; |
175 |
} |
} |
176 |
} |
} |
177 |
|
closetoken(); |
178 |
} |
} |