462 |
static void |
static void |
463 |
parse_token_decl (symbol_class what_is, symbol_class what_is_not) |
parse_token_decl (symbol_class what_is, symbol_class what_is_not) |
464 |
{ |
{ |
465 |
token_t token = 0; |
token_t token = tok_undef; |
466 |
char *typename = 0; |
char *typename = NULL; |
467 |
|
|
468 |
/* The symbol being defined. */ |
/* The symbol being defined. */ |
469 |
struct bucket *symbol = NULL; |
struct bucket *symbol = NULL; |
884 |
char buff[32]; |
char buff[32]; |
885 |
int c; |
int c; |
886 |
int i; |
int i; |
887 |
|
|
888 |
c = skip_white_space (); |
c = skip_white_space (); |
889 |
|
|
890 |
if (c != '"') |
if (c != '"') |
893 |
complain (_("invalid %s declaration"), from); |
complain (_("invalid %s declaration"), from); |
894 |
return NULL; |
return NULL; |
895 |
} |
} |
896 |
|
|
897 |
c = getc (finput); |
c = getc (finput); |
898 |
for (i = 0; (c >= '!') && (c <= '~'); i++) |
for (i = 0; (c >= '!') && (c <= '~'); i++) |
899 |
{ |
{ |
906 |
if ((c < '!') && (c > '~')) |
if ((c < '!') && (c > '~')) |
907 |
break; |
break; |
908 |
} |
} |
909 |
|
|
910 |
buff[i] = c; |
buff[i] = c; |
911 |
c = getc (finput); |
c = getc (finput); |
912 |
} |
} |
913 |
buff[i] = '\0'; |
buff[i] = '\0'; |
914 |
|
|
915 |
if (c != '"') |
if (c != '"') |
916 |
{ |
{ |
917 |
ungetc (c, finput); |
ungetc (c, finput); |
938 |
{ |
{ |
939 |
if (src_extension) |
if (src_extension) |
940 |
complain (_("multiple %%source_extension declarations")); |
complain (_("multiple %%source_extension declarations")); |
941 |
|
|
942 |
src_extension = parse_dquoted_param ("%source_extension"); |
src_extension = parse_dquoted_param ("%source_extension"); |
943 |
} |
} |
944 |
|
|