Turn parse_language into a method
[deliverable/binutils-gdb.git] / gdb / m2-exp.y
index c78e03fab95e2be407b5d198461a9b3e8ca0360c..611981fd9c28af9f332a7bfef8de1457563096eb 100644 (file)
@@ -596,7 +596,7 @@ variable:   NAME
 
 type
        :       TYPENAME
-                       { $$ = lookup_typename (parse_language (pstate),
+                       { $$ = lookup_typename (pstate->language (),
                                                pstate->gdbarch (),
                                                copy_name ($1),
                                                expression_context_block, 0); }
@@ -968,7 +968,7 @@ yylex (void)
     sym = lookup_symbol (tmp, expression_context_block, VAR_DOMAIN, 0).symbol;
     if (sym && SYMBOL_CLASS (sym) == LOC_BLOCK)
       return BLOCKNAME;
-    if (lookup_typename (parse_language (pstate), pstate->gdbarch (),
+    if (lookup_typename (pstate->language (), pstate->gdbarch (),
                         copy_name (yylval.sval),
                         expression_context_block, 1))
       return TYPENAME;
This page took 0.02673 seconds and 4 git commands to generate.