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 |
} |
} |
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 |
} |
} |
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; |
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; |
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; |
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) { |
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; |