| OLD | NEW |
| 1 /* YACC parser for C expressions, for GDB. | 1 /* YACC parser for C expressions, for GDB. |
| 2 | 2 |
| 3 Copyright (C) 1986, 1989-1991, 1993-1994, 2002, 2006-2012 Free | 3 Copyright (C) 1986, 1989-1991, 1993-1994, 2002, 2006-2012 Free |
| 4 Software Foundation, Inc. | 4 Software Foundation, Inc. |
| 5 | 5 |
| 6 This program is free software; you can redistribute it and/or modify | 6 This program is free software; you can redistribute it and/or modify |
| 7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
| 8 the Free Software Foundation; either version 3 of the License, or | 8 the Free Software Foundation; either version 3 of the License, or |
| 9 (at your option) any later version. | 9 (at your option) any later version. |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 #define yyrule objc_rule /* With YYDEBUG defined */ | 95 #define yyrule objc_rule /* With YYDEBUG defined */ |
| 96 #define yylhs objc_yylhs | 96 #define yylhs objc_yylhs |
| 97 #define yylen objc_yylen | 97 #define yylen objc_yylen |
| 98 #define yydefred objc_yydefred | 98 #define yydefred objc_yydefred |
| 99 #define yydgoto objc_yydgoto | 99 #define yydgoto objc_yydgoto |
| 100 #define yysindex objc_yysindex | 100 #define yysindex objc_yysindex |
| 101 #define yyrindex objc_yyrindex | 101 #define yyrindex objc_yyrindex |
| 102 #define yygindex objc_yygindex | 102 #define yygindex objc_yygindex |
| 103 #define yytable objc_yytable | 103 #define yytable objc_yytable |
| 104 #define yycheck objc_yycheck | 104 #define yycheck objc_yycheck |
| 105 #define yyss objc_yyss |
| 106 #define yysslim objc_yysslim |
| 107 #define yyssp objc_yyssp |
| 108 #define yystacksize objc_yystacksize |
| 109 #define yyvs objc_yyvs |
| 110 #define yyvsp objc_yyvsp |
| 105 | 111 |
| 106 #ifndef YYDEBUG | 112 #ifndef YYDEBUG |
| 107 #define YYDEBUG 0 /* Default to no yydebug support. */ | 113 #define YYDEBUG 0 /* Default to no yydebug support. */ |
| 108 #endif | 114 #endif |
| 109 | 115 |
| 110 int yyparse (void); | 116 int yyparse (void); |
| 111 | 117 |
| 112 static int yylex (void); | 118 static int yylex (void); |
| 113 | 119 |
| 114 void yyerror (char *); | 120 void yyerror (char *); |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 VAR_DOMAIN, (int *) NULL); | 644 VAR_DOMAIN, (int *) NULL); |
| 639 if (!tem || SYMBOL_CLASS (tem) != LOC_BLOCK) | 645 if (!tem || SYMBOL_CLASS (tem) != LOC_BLOCK) |
| 640 error (_("No function \"%s\" in specified context.")
, | 646 error (_("No function \"%s\" in specified context.")
, |
| 641 copy_name ($3)); | 647 copy_name ($3)); |
| 642 $$ = SYMBOL_BLOCK_VALUE (tem); } | 648 $$ = SYMBOL_BLOCK_VALUE (tem); } |
| 643 ; | 649 ; |
| 644 | 650 |
| 645 variable: block COLONCOLON name | 651 variable: block COLONCOLON name |
| 646 { struct symbol *sym; | 652 { struct symbol *sym; |
| 647 sym = lookup_symbol (copy_name ($3), $1, | 653 sym = lookup_symbol (copy_name ($3), $1, |
error: old chunk mismatch |
None
| OLD | NEW |