diff options
Diffstat (limited to 'gdb/m2-exp.y')
-rw-r--r-- | gdb/m2-exp.y | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y index ef9ec8e..af6c400 100644 --- a/gdb/m2-exp.y +++ b/gdb/m2-exp.y @@ -113,21 +113,11 @@ static int yylex (void); void yyerror (char *); -#if 0 -static char *make_qualname (char *, char *); -#endif - static int parse_number (int); /* The sign of the number being parsed. */ static int number_sign = 1; -/* The block that the module specified by the qualifer on an identifer is - contained in, */ -#if 0 -static struct block *modblock=0; -#endif - %} /* Although the yacc "value" of an expression is not used, @@ -665,8 +655,7 @@ type /*** Needs some error checking for the float case ***/ static int -parse_number (olen) - int olen; +parse_number (int olen) { char *p = lexptr; LONGEST n = 0; @@ -1076,22 +1065,8 @@ yylex (void) } } -#if 0 /* Unused */ -static char * -make_qualname(mod,ident) - char *mod, *ident; -{ - char *new = malloc(strlen(mod)+strlen(ident)+2); - - strcpy(new,mod); - strcat(new,"."); - strcat(new,ident); - return new; -} -#endif /* 0 */ - void -yyerror (msg) +yyerror (char *msg) char *msg; { if (prev_lexptr) |