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
0aa9d84b
Commit
0aa9d84b
authored
Nov 03, 2010
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
units: fix compilation
R=ken2, ken3 CC=golang-dev
https://golang.org/cl/2865041
parent
70d0b6b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/cmd/goyacc/units.y
src/cmd/goyacc/units.y
+4
-4
No files found.
src/cmd/goyacc/units.y
View file @
0aa9d84b
...
...
@@ -215,7 +215,7 @@ expr0:
type UnitsLex int
func (
_
UnitsLex) Lex(yylval *yySymType) int {
func (UnitsLex) Lex(yylval *yySymType) int {
var c, i int
c = peekrune
...
...
@@ -280,7 +280,7 @@ numb:
return VAL
}
func (
_
UnitsLex) Error(s string) {
func (UnitsLex) Error(s string) {
Error("syntax error, last name: %v", sym)
}
...
...
@@ -298,7 +298,7 @@ func main() {
f, err := os.Open(file, os.O_RDONLY, 0)
if err != nil {
fmt.
Printf(
"error opening %v: %v\n", file, err)
fmt.
Fprintf(os.Stderr,
"error opening %v: %v\n", file, err)
os.Exit(1)
}
fi = bufio.NewReader(f)
...
...
@@ -390,7 +390,7 @@ func rdigit(c int) bool {
func Error(s string, v ...interface{}) {
fmt.Printf("%v: %v\n\t", lineno, line)
fmt.Printf(s, v)
fmt.Printf(s, v
...
)
fmt.Printf("\n")
nerrors++
...
...
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