* c-exp.y: Add missing 5th arg for one call to lookup_symbol, cast

NULL in all other calls to correct pointer types.
This commit is contained in:
Fred Fish 1993-07-30 21:20:56 +00:00
parent 6cfec92912
commit bcca9a08dc
2 changed files with 18 additions and 7 deletions

View file

@ -1,3 +1,8 @@
Fri Jul 30 14:16:32 1993 Fred Fish (fnf@deneb.cygnus.com)
* c-exp.y: Add missing 5th arg for one call to lookup_symbol, cast
NULL in all other calls to correct pointer types.
Fri Jul 30 15:43:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
From Jeffrey Law:

View file

@ -546,7 +546,8 @@ block : BLOCKNAME
block : block COLONCOLON name
{ struct symbol *tem
= lookup_symbol (copy_name ($3), $1,
VAR_NAMESPACE, 0, NULL);
VAR_NAMESPACE, (int *) NULL,
(struct symtab **) NULL);
if (!tem || SYMBOL_CLASS (tem) != LOC_BLOCK)
error ("No function \"%s\" in specified context.",
copy_name ($3));
@ -556,7 +557,8 @@ block : block COLONCOLON name
variable: block COLONCOLON name
{ struct symbol *sym;
sym = lookup_symbol (copy_name ($3), $1,
VAR_NAMESPACE, 0, NULL);
VAR_NAMESPACE, (int *) NULL,
(struct symtab **) NULL);
if (sym == 0)
error ("No symbol \"%s\" in specified context.",
copy_name ($3));
@ -612,7 +614,9 @@ variable: qualified_name
struct minimal_symbol *msymbol;
sym =
lookup_symbol (name, 0, VAR_NAMESPACE, 0, NULL);
lookup_symbol (name, (const struct block *) NULL,
VAR_NAMESPACE, (int *) NULL,
(struct symtab **) NULL);
if (sym)
{
write_exp_elt_opcode (OP_VAR_VALUE);
@ -1478,7 +1482,8 @@ yylex ()
{ CPLUS_MARKER, 't', 'h', 'i', 's', '\0' };
if (lookup_symbol (this_name, expression_context_block,
VAR_NAMESPACE, 0, NULL))
VAR_NAMESPACE, (int *) NULL,
(struct symtab **) NULL))
return THIS;
}
break;
@ -1515,8 +1520,8 @@ yylex ()
sym = lookup_symbol (tmp, expression_context_block,
VAR_NAMESPACE,
current_language->la_language == language_cplus
? &is_a_field_of_this : NULL,
NULL);
? &is_a_field_of_this : (int *) NULL,
(struct symtab **) NULL);
if ((sym && SYMBOL_CLASS (sym) == LOC_BLOCK) ||
lookup_partial_symtab (tmp))
{
@ -1570,7 +1575,8 @@ yylex ()
memcpy (tmp, namestart, p - namestart);
tmp[p - namestart] = '\0';
cur_sym = lookup_symbol (tmp, expression_context_block,
VAR_NAMESPACE, NULL);
VAR_NAMESPACE, (int *) NULL,
(struct symtab **) NULL);
if (cur_sym)
{
if (SYMBOL_CLASS (cur_sym) == LOC_TYPEDEF)