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
84523402
Commit
84523402
authored
Oct 14, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make regexp build and install officially
R=rsc DELTA=335 (172 added, 156 deleted, 7 changed) OCL=17167 CL=17180
parent
151c0de8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
8 deletions
+24
-8
src/lib/clean.bash
src/lib/clean.bash
+1
-1
src/lib/container/vector.go
src/lib/container/vector.go
+4
-0
src/lib/make.bash
src/lib/make.bash
+1
-1
src/lib/regexp/Makefile
src/lib/regexp/Makefile
+11
-5
src/lib/regexp/test.go
src/lib/regexp/test.go
+1
-1
src/run.bash
src/run.bash
+6
-0
No files found.
src/lib/clean.bash
View file @
84523402
...
...
@@ -6,7 +6,7 @@
rm
-f
$GOROOT
/pkg/
*
for
i
in
syscall os math net
time
for
i
in
syscall os math net
time
http regexp
do
cd
$i
make nuke
...
...
src/lib/container/vector.go
View file @
84523402
...
...
@@ -56,6 +56,10 @@ func (v *Vector) Remove(i int) Element {
}
func
(
v
*
Vector
)
Reset
()
{
v
.
elem
=
v
.
elem
[
0
:
0
];
}
func
(
v
*
Vector
)
Insert
(
i
int
,
e
Element
)
{
n
:=
v
.
Len
();
// range check unnecessary - done by runtime
...
...
src/lib/make.bash
View file @
84523402
...
...
@@ -33,7 +33,7 @@ do
6g
-o
$GOROOT
/pkg/
$base
.6
$i
done
for
i
in
net
time
http
for
i
in
net
time
http
regexp
do
echo
;
echo
;
echo
%%%% making lib/
$i
%%%%
;
echo
cd
$i
...
...
src/lib/regexp/Makefile
View file @
84523402
...
...
@@ -5,16 +5,22 @@
A
=
6
G
=
$(A)
g
L
=
$(A)
l
PKG
=
$(GOROOT)
/pkg/regexp.
$A
all
:
main
test
:
main.$A test.$A
$L
-o
test
test.
$A
./test
main
:
main.6
$L
-o
main main.6
install
:
regexp.$A
cp
regexp.
$A
$(PKG)
main.6
:
regexp.6
main
:
main.$A
$L
-o
main main.
$A
main.$A
:
regexp.$A
clean
:
rm
-f
*
.6
main
rm
-f
*
.6
test
%.6
:
%.go
$G
$<
src/lib/regexp/
main
.go
→
src/lib/regexp/
test
.go
View file @
84523402
...
...
@@ -34,7 +34,7 @@ type StringError struct {
err
*
os
.
Error
;
}
var
bad_re
=
[]
StringError
{
StringError
{
`*`
,
regexp
.
ErrBareClosure
},
StringError
{
`*`
,
regexp
.
ErrBareClosure
},
StringError
{
`(abc`
,
regexp
.
ErrUnmatchedLpar
},
StringError
{
`abc)`
,
regexp
.
ErrUnmatchedRpar
},
StringError
{
`x[a-z`
,
regexp
.
ErrUnmatchedLbkt
},
...
...
src/run.bash
View file @
84523402
...
...
@@ -10,6 +10,12 @@ xcd() {
echo
---
cd
$1
}
(
xcd lib/regexp
make clean
time
make
make
test
)
(
xcd ../usr/gri/gosrc
make clean
time
make
...
...
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