Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
b0a0e3c4
Commit
b0a0e3c4
authored
Aug 14, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove compat stuff
R=rsc DELTA=70 (16 added, 52 deleted, 2 changed) OCL=33295 CL=33299
parent
dc6b4f47
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
Makefile
src/cmd/5a/Makefile
+0
-2
a.h
src/cmd/5a/a.h
+0
-1
lex.c
src/cmd/5a/lex.c
+18
-2
No files found.
src/cmd/5a/Makefile
View file @
b0a0e3c4
...
...
@@ -11,12 +11,10 @@ HFILES=\
a.h
\
y.tab.h
\
../5l/5.out.h
\
compat.h
\
OFILES
=
\
y.tab.
$O
\
lex.
$O
\
compat.
$O
\
# ../5l/enam.$O
\
YFILES
=
\
...
...
src/cmd/5a/a.h
View file @
b0a0e3c4
...
...
@@ -31,7 +31,6 @@
#include <lib9.h>
#include <bio.h>
#include "../5l/5.out.h"
#include "compat.h"
#ifndef EXTERN
#define EXTERN extern
...
...
src/cmd/5a/lex.c
View file @
b0a0e3c4
...
...
@@ -33,6 +33,22 @@
#include "y.tab.h"
#include <ctype.h>
enum
{
Plan9
=
1
<<
0
,
Unix
=
1
<<
1
,
Windows
=
1
<<
2
,
};
int
systemtype
(
int
sys
)
{
return
sys
&
Plan9
;
}
void
*
alloc
(
int32
);
void
*
allocn
(
void
*
,
int32
,
int32
);
void
main
(
int
argc
,
char
*
argv
[])
{
...
...
@@ -127,7 +143,7 @@ assemble(char *file)
int
i
,
of
;
strcpy
(
ofile
,
file
);
p
=
utfrrune
(
ofile
,
pathchar
()
);
p
=
utfrrune
(
ofile
,
'/'
);
if
(
p
)
{
include
[
0
]
=
ofile
;
*
p
++
=
0
;
...
...
@@ -656,7 +672,7 @@ outhist(void)
int
n
;
g
=
nullgen
;
c
=
pathchar
()
;
c
=
'/'
;
for
(
h
=
hist
;
h
!=
H
;
h
=
h
->
link
)
{
p
=
h
->
name
;
op
=
0
;
...
...
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