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
aab26a52
Commit
aab26a52
authored
Feb 05, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not generate Init proto for sys and unsafe.
R=ken OCL=24455 CL=24455
parent
89fc8465
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/cmd/gc/dcl.c
src/cmd/gc/dcl.c
+5
-0
src/cmd/gc/sysimport.c
src/cmd/gc/sysimport.c
+0
-2
No files found.
src/cmd/gc/dcl.c
View file @
aab26a52
...
...
@@ -1050,6 +1050,11 @@ fninit(Node *n)
uint32
h
;
Sym
*
s
;
if
(
strcmp
(
package
,
"PACKAGE"
)
==
0
)
{
// sys.go or unsafe.go during compiler build
return
;
}
r
=
N
;
// (1)
...
...
src/cmd/gc/sysimport.c
View file @
aab26a52
...
...
@@ -59,12 +59,10 @@ char *sysimport =
"func sys.Goexit ()
\n
"
"func sys.Exit (? int)
\n
"
"func sys.Caller (n int) (pc uint64, file string, line int, ok bool)
\n
"
"func sys.Init·sys ()
\n
"
"
\n
"
"$$
\n
"
;
char
*
unsafeimport
=
"package unsafe
\n
"
"type unsafe.Pointer *any
\n
"
"func unsafe.Init·unsafe ()
\n
"
"
\n
"
"$$
\n
"
;
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