Make libhtml, htmlfmt build.
Thanks to wkj for doing all the hard work.
This commit is contained in:
parent
a67406e465
commit
650deb7980
7 changed files with 20 additions and 39 deletions
|
|
@ -47,4 +47,4 @@ extern void rendertext(URLwin*, Bytes*);
|
|||
extern void rerender(URLwin*);
|
||||
extern void freeurlwin(URLwin*);
|
||||
|
||||
#pragma varargck argpos error 1
|
||||
/* #pragma varargck argpos error 1 */
|
||||
|
|
|
|||
|
|
@ -145,10 +145,10 @@ baseurl(char *url)
|
|||
return nil;
|
||||
base = estrdup(url);
|
||||
slash = strrchr(base, '/');
|
||||
if(slash!=nil && slash>=&base[rs[0].e.p-rs[0].s.p])
|
||||
if(slash!=nil && slash>=&base[rs[0].e.ep-rs[0].s.sp])
|
||||
*slash = '\0';
|
||||
else
|
||||
base[rs[0].e.p-rs[0].s.p] = '\0';
|
||||
base[rs[0].e.ep-rs[0].s.sp] = '\0';
|
||||
return base;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<$SYS9/$systype/$objtype/mkfile
|
||||
<$PLAN9/src/mkhdr
|
||||
|
||||
TARG=htmlfmt
|
||||
OFILES=\
|
||||
|
|
@ -8,23 +8,9 @@ OFILES=\
|
|||
|
||||
HFILES=\
|
||||
dat.h\
|
||||
$SYS9/sys/include/html.h\
|
||||
$PLAN9/include/html.h\
|
||||
|
||||
LIB=$SYS9/$systype/$objtype/lib/libbio.a\
|
||||
$SYS9/$systype/$objtype/lib/libregexp.a\
|
||||
$SYS9/$systype/$objtype/lib/libhtml.a\
|
||||
$SYS9/$systype/$objtype/lib/lib9c.a
|
||||
SHORTLIB=bio regexp9 html 9
|
||||
|
||||
BIN=$SYS9/$systype/$objtype/bin
|
||||
<$PLAN9/src/mkone
|
||||
|
||||
UPDATE=\
|
||||
mkfile\
|
||||
$HFILES\
|
||||
${OFILES:%.$O=%.c}
|
||||
|
||||
<$SYS9/sys/src/cmd/mkone
|
||||
|
||||
CFLAGS=$CFLAGS
|
||||
|
||||
#$O.out: $OFILES
|
||||
# $LD -o $target $LDFLAGS $OFILES
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue