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
e912c18c
Commit
e912c18c
authored
Jul 18, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- missing changes from prev. commit
SVN=128064
parent
f87a960a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
usr/gri/gosrc/export.go
usr/gri/gosrc/export.go
+8
-4
No files found.
usr/gri/gosrc/export.go
View file @
e912c18c
...
...
@@ -260,16 +260,16 @@ func (E *Exporter) WritePackage(pkg *Globals.Package) {
func
(
E
*
Exporter
)
Export
(
comp
*
Globals
.
Compilation
,
file_name
string
)
{
if
E
.
debug
{
print
"exporting to "
,
file_name
;
}
E
.
comp
=
comp
;
E
.
debug
=
true
;
E
.
pos
=
0
;
E
.
pkg_ref
=
0
;
E
.
type_ref
=
0
;
if
E
.
debug
{
print
"exporting to "
,
file_name
;
}
// Predeclared types are "pre-exported".
// TODO run the loop below only in debug mode
{
i
:=
0
;
...
...
@@ -297,4 +297,8 @@ func (E *Exporter) Export(comp* Globals.Compilation, file_name string) {
data
:=
string
(
E
.
buf
)[
0
:
E
.
pos
];
ok
:=
sys
.
writefile
(
file_name
,
data
);
if
!
ok
{
panic
"export failed"
;
}
}
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