mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* src/reader.c (parse_braces): Merge into...
(parse_action): this.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2002-05-02 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/reader.c (parse_braces): Merge into...
|
||||||
|
(parse_action): this.
|
||||||
|
|
||||||
2002-05-02 Akim Demaille <akim@epita.fr>
|
2002-05-02 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* configure.in (ALL_LINGUAS): Remove.
|
* configure.in (ALL_LINGUAS): Remove.
|
||||||
|
|||||||
26
src/reader.c
26
src/reader.c
@@ -1264,22 +1264,24 @@ read_declarations (void)
|
|||||||
|
|
||||||
/*------------------------------------------------------------------.
|
/*------------------------------------------------------------------.
|
||||||
| Assuming that a `{' has just been seen, copy everything up to the |
|
| Assuming that a `{' has just been seen, copy everything up to the |
|
||||||
| matching `}' into the actions file. RULE_LENGTH is the number of |
|
| matching `}' into ACTION_OBSTACK. |
|
||||||
| values in the current rule so far, which says where to find `$0' |
|
| |
|
||||||
| with respect to the top of the stack. |
|
| RULE_LENGTH is the number of values in the current rule so far, |
|
||||||
|
| which says where to find `$0' with respect to the top of the |
|
||||||
|
| stack. It is not the same as the rule->length in the case of mid |
|
||||||
|
| rule actions. |
|
||||||
| |
|
| |
|
||||||
| This routine is used for actions. |
|
| This routine is used for actions. |
|
||||||
`------------------------------------------------------------------*/
|
`------------------------------------------------------------------*/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
parse_braces (symbol_list *rule, int rule_length)
|
parse_action (symbol_list *rule, int rule_length)
|
||||||
{
|
{
|
||||||
int c;
|
int count = 1;
|
||||||
int count;
|
rule->action_line = lineno;
|
||||||
|
|
||||||
count = 1;
|
|
||||||
while (count > 0)
|
while (count > 0)
|
||||||
{
|
{
|
||||||
|
int c;
|
||||||
while ((c = getc (finput)) != '}')
|
while ((c = getc (finput)) != '}')
|
||||||
switch (c)
|
switch (c)
|
||||||
{
|
{
|
||||||
@@ -1323,14 +1325,6 @@ parse_braces (symbol_list *rule, int rule_length)
|
|||||||
}
|
}
|
||||||
|
|
||||||
obstack_1grow (&action_obstack, '\0');
|
obstack_1grow (&action_obstack, '\0');
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
|
||||||
parse_action (symbol_list *rule, int rule_length)
|
|
||||||
{
|
|
||||||
rule->action_line = lineno;
|
|
||||||
parse_braces (rule, rule_length);
|
|
||||||
rule->action = obstack_finish (&action_obstack);
|
rule->action = obstack_finish (&action_obstack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user