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
e1a9b6ee
Commit
e1a9b6ee
authored
Sep 12, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- updated code to work again with latest 6g version
R=r OCL=15235 CL=15235
parent
6e8dbc20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
usr/gri/gosrc/verifier.go
usr/gri/gosrc/verifier.go
+5
-5
No files found.
usr/gri/gosrc/verifier.go
View file @
e1a9b6ee
...
...
@@ -35,7 +35,7 @@ func (V *Verifier) VerifyObject(obj *Globals.Object, pnolev int);
func
(
V
*
Verifier
)
VerifyType
(
typ
*
Globals
.
Type
)
{
if
V
.
typs
[
typ
]
{
if
present
,
ok
:=
V
.
typs
[
typ
];
present
{
return
;
// already verified
}
V
.
typs
[
typ
]
=
true
;
...
...
@@ -91,7 +91,7 @@ func (V *Verifier) VerifyType(typ *Globals.Type) {
func
(
V
*
Verifier
)
VerifyObject
(
obj
*
Globals
.
Object
,
pnolev
int
)
{
if
V
.
objs
[
obj
]
{
if
present
,
ok
:=
V
.
objs
[
obj
];
present
{
return
;
// already verified
}
V
.
objs
[
obj
]
=
true
;
...
...
@@ -126,7 +126,7 @@ func (V *Verifier) VerifyScope(scope *Globals.Scope) {
func
(
V
*
Verifier
)
VerifyPackage
(
pkg
*
Globals
.
Package
,
pno
int
)
{
if
V
.
pkgs
[
pkg
]
{
if
present
,
ok
:=
V
.
pkgs
[
pkg
];
present
{
return
;
// already verified
}
V
.
pkgs
[
pkg
]
=
true
;
...
...
@@ -148,8 +148,8 @@ func (V *Verifier) Verify(comp *Globals.Compilation) {
for
i
:=
0
;
i
<
comp
.
pkg_ref
;
i
++
{
pkg
:=
comp
.
pkg_list
[
i
];
// each pkg filename must appear only once
if
filenames
[
pkg
.
file_name
]
{
Error
(
"package filename present more th
e
n once"
);
if
present
,
ok
:=
filenames
[
pkg
.
file_name
];
present
{
Error
(
"package filename present more th
a
n once"
);
}
filenames
[
pkg
.
file_name
]
=
true
;
V
.
VerifyPackage
(
pkg
,
i
);
...
...
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