Commit 1cb951d9 authored by Russ Cox's avatar Russ Cox

gc: appease bison version running on FreeBSD builder

R=ken2
CC=golang-dev
https://golang.org/cl/2141042
parent a37e3697
...@@ -21,16 +21,7 @@ ...@@ -21,16 +21,7 @@
#include <stdio.h> /* if we don't, bison will, and go.h re-#defines getc */ #include <stdio.h> /* if we don't, bison will, and go.h re-#defines getc */
#include "go.h" #include "go.h"
static void static void fixlbrace(int);
fixlbrace(int lbr)
{
// If the opening brace was an LBODY,
// set up for another one now that we're done.
// See comment in lex.c about loophack.
if(lbr == LBODY)
loophack = 1;
}
%} %}
%union { %union {
Node* node; Node* node;
...@@ -1938,3 +1929,16 @@ hidden_interfacedcl_list: ...@@ -1938,3 +1929,16 @@ hidden_interfacedcl_list:
{ {
$$ = list($1, $3); $$ = list($1, $3);
} }
%%
static void
fixlbrace(int lbr)
{
// If the opening brace was an LBODY,
// set up for another one now that we're done.
// See comment in lex.c about loophack.
if(lbr == LBODY)
loophack = 1;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment