Various tweaks.

This commit is contained in:
rsc 2004-02-29 23:20:28 +00:00
parent c3a72d77dc
commit d21d62e2fc
15 changed files with 34 additions and 20 deletions

View file

@ -7,7 +7,9 @@ OFILES=\
9term.$O\
$SYSNAME.$O\
SHORTLIB=frame draw plumb fs mux thread 9
<$PLAN9/src/mkone
LDFLAGS=-lframe -ldraw -lplumb -lfs -lmux -lthread -l9 -L$X11/lib -lX11 -lutil
LDFLAGS=-L$X11/lib -lX11 -lutil

View file

@ -36,8 +36,9 @@ UPDATE=\
$HFILES\
${OFILES:%.$O=%.c}\
SHORTLIB=complete plumb fs mux thread frame draw bio 9
<$PLAN9/src/mkone
LDFLAGS=$LDFLAGS -lcomplete -lplumb -lfs -lmux -lthread -lframe -ldraw -lbio -l9 -L$X11/lib -lX11
LDFLAGS=$LDFLAGS -L$X11/lib -lX11
edit.$O ecmd.$O elog.$O: edit.h

View file

@ -11,7 +11,7 @@ OFILES=dict.$O\
HFILES=dict.h kuten.h
LDFLAGS=$LDFLAGS -lbio -lregexp9 -l9
SHORTLIB=bio regexp9 9
<$PLAN9/src/mkone
mkindex: mkindex.$O $LFILES utils.$O

View file

@ -10,6 +10,6 @@ OFILES=\
HFILES=diff.h
SHORTLIB=bio 9
<$PLAN9/src/mkone
LDFLAGS=$LDFLAGS -lbio -l9

View file

@ -37,6 +37,11 @@ initcode(void)
indef = 0;
}
void
nop(void)
{
}
void
push(Datum d)
{
@ -557,11 +562,18 @@ diveq(void)
push(d2);
}
void
ppush(Datum *d)
{
push(*d);
}
void
modeq(void)
{
Datum d1, d2;
long x;
d1 = pop();
d2 = pop();
if (d1.sym->type != VAR && d1.sym->type != UNDEF)
@ -570,9 +582,12 @@ modeq(void)
/* d2.val = d1.sym->u.val %= d2.val; */
x = d1.sym->u.val;
x %= (long) d2.val;
d2.val = d1.sym->u.val = x;
d2.val = x;
d1.sym->u.val = x;
d1.sym->type = VAR;
push(d2);
/* push(d2) generates a compiler error on Linux w. gcc 2.95.4 */
ppush(&d2);
}
void

View file

@ -15,6 +15,6 @@ OFILES=\
YFILES=hoc.y\
SHORTLIB=bio 9
<$PLAN9/src/mkone
LDFLAGS=$LDFLAGS -lbio -l9

View file

@ -31,7 +31,7 @@ HFILES=\
mk.h\
fns.h\
LDFLAGS=$LDFLAGS -lregexp9 -lbio -l9
SHORTLIB=regexp9 bio 9
<$PLAN9/src/mkone

View file

@ -2,7 +2,8 @@ PLAN9=../..
<$PLAN9/src/mkhdr
TARG=`ls *.c | sed 's/\.c//'`
LDFLAGS=$LDFLAGS -lsec -lfs -lmux -lregexp9 -lthread -lbio -l9
LDFLAGS=$LDFLAGS
SHORTLIB=sec fs mux regexp9 thread bio 9
<$PLAN9/src/mkmany

View file

@ -2,6 +2,7 @@ PLAN9=../../..
<$PLAN9/src/mkhdr
TARG=plumber plumb
SHORTLIB=plumb fs mux thread regexp9 bio 9
<$PLAN9/src/mkmany
@ -14,4 +15,3 @@ $PLUMB: $HFILES
$O.plumb: $PLUMB
$O.plumber: $PLUMBER
LDFLAGS=$LDFLAGS -lplumb -lfs -lmux -lthread -lregexp9 -lbio -l9

View file

@ -31,8 +31,6 @@ HFILES=\
YFILES=syn.y
LDFLAGS=$LDFLAGS -l9
<$PLAN9/src/mkone
x.tab.h: y.tab.h

View file

@ -28,6 +28,4 @@ HFILES=sam.h\
errors.h\
mesg.h\
LDFLAGS=$LDFLAGS -l9
<$PLAN9/src/mkone

View file

@ -22,9 +22,7 @@ HFILES=\
$PLAN9/include/draw.h\
CFLAGS=$CFLAGS -I../sam
LDFLAGS=$LDFLAGS -lframe -ldraw -lthread -lregexp9 \
-lbio -l9 -L$X11/lib -lX11 -lm
o.samterm: $PLAN9/lib/libframe.a $PLAN9/lib/libdraw.a $PLAN9/lib/libthread.a
LDFLAGS=$LDFLAGS -L$X11/lib -lX11 -lm
SHORTLIB=frame draw thread regexp9 bio 9
<$PLAN9/src/mkone

View file

@ -401,7 +401,7 @@ others(void)
finput = Bopen(parser, OREAD);
if(finput == 0)
error("cannot find parser %s", parser);
error("cannot open parser %s: %r", parser);
warray("yyr1", levprd, nprod);
aryfil(temp1, nprod, 0);
PLOOP(1, i)

View file

@ -2,6 +2,7 @@ DIRS=\
lib9\
libbin\
libbio\
libcomplete\
libdraw\
libflate\
libframe\

View file

@ -23,7 +23,7 @@ NUKEFILES=
YACC=yacc
YFLAGS=-d
LIB=
SHORTLIB=
SHORTLIB=9
<|cat $PLAN9/src/mk.$SYSNAME-$OBJTYPE 2>/dev/null || true