Skip to content

Commit

Permalink
fix index bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rsc committed Aug 8, 2007
1 parent 2e51e12 commit 35a24c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
3 changes: 0 additions & 3 deletions BUGS
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
index:
SEG_NULL, SEG_ASM not in the index

proc.c:
as a consequence of the implementation of proc_kill,
any loop calling sleep should check for p->killed
Expand Down
26 changes: 14 additions & 12 deletions runoff
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

echo This script takes a minute to run. Be patient. 1>&2

LC_CTYPE=C export LC_CTYPE

# pad stdin to multiple of 120 lines
pad()
{
Expand Down Expand Up @@ -61,27 +63,27 @@ perl -e '
if (/^[0-9]+ struct [a-zA-Z0-9_]+;/) {
next;
}
if (/\(/) {
next;
}
if (/^([0-9]+) (((static|struct|extern|union|enum) +)*([A-Za-z0-9_]+))( .*)? +([A-Za-z_][A-Za-z0-9_]*)[,;]/) {
print "$1 $7\n"
}
elsif (/^([0-9]+) #define +([A-za-z0-9_]+) +?\(.*/) {
if (/^([0-9]+) #define +([A-za-z0-9_]+) +?\(.*/) {
print "$1 $2\n"
}
elsif (/^([0-9]+) #define +([A-Za-z0-9_]+) +([^ ]+)$/) {
elsif (/^([0-9]+) #define +([A-Za-z0-9_]+) +([^ ]+)/) {
print "$1 $2 $3\n";
}
elsif (/^([0-9]+) #define +([A-Za-z0-9_]+)/) {
print "$1 $2\n";
}
if (/\(/) {
next;
}
if (/^([0-9]+) (((static|struct|extern|union|enum) +)*([A-Za-z0-9_]+))( .*)? +([A-Za-z_][A-Za-z0-9_]*)[,;]/) {
print "$1 $7\n"
}
elsif(/^([0-9]+) (enum|struct|union) +([A-Za-z0-9_]+) +{/){
print "$1 $3\n";
}
Expand Down Expand Up @@ -130,7 +132,7 @@ awk '
grep Pages: all.ps

# if we have the nice font, use it
nicefont=~rsc/plan9/sys/lib/postscript/font/LucidaSans-Typewriter83
nicefont=~rsc/lib/postscript/LucidaSans-Typewriter83
if [ -f $nicefont ]
then
(sed 1q all.ps; cat $nicefont; sed '1d; s/Courier/LucidaSans-Typewriter83/' all.ps) >allf.ps
Expand Down

0 comments on commit 35a24c8

Please sign in to comment.