aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1993-07-30 21:20:56 +0000
committerFred Fish <fnf@specifix.com>1993-07-30 21:20:56 +0000
commitbcca9a08dce86bf4c776f32bd982587e04759bcf (patch)
treebc82eb344414efdccf35e7ecf6e471429b2b8924 /gdb/c-exp.y
parent6cfec92912878589b836fc275d02070f5b8c23d2 (diff)
downloadgdb-bcca9a08dce86bf4c776f32bd982587e04759bcf.zip
gdb-bcca9a08dce86bf4c776f32bd982587e04759bcf.tar.gz
gdb-bcca9a08dce86bf4c776f32bd982587e04759bcf.tar.bz2
* c-exp.y: Add missing 5th arg for one call to lookup_symbol, cast
NULL in all other calls to correct pointer types.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y20
1 files changed, 13 insertions, 7 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index b226509..b841498 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -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)