Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
1cb951d9
Commit
1cb951d9
authored
Sep 02, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gc: appease bison version running on FreeBSD builder
R=ken2 CC=golang-dev
https://golang.org/cl/2141042
parent
a37e3697
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
src/cmd/gc/go.y
src/cmd/gc/go.y
+14
-10
No files found.
src/cmd/gc/go.y
View file @
1cb951d9
...
...
@@ -21,16 +21,7 @@
#
include
<
stdio
.
h
>
/*
if
we
don
't, bison will, and go.h re-#defines getc */
#include "go.h"
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
;
}
static void fixlbrace(int);
%}
%union {
Node* node;
...
...
@@ -1938,3 +1929,16 @@ hidden_interfacedcl_list:
{
$$
=
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;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment