From 650deb79804a49d2dff37c9313fe96b846ad8063 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 8 Apr 2004 19:36:35 +0000 Subject: Make libhtml, htmlfmt build. Thanks to wkj for doing all the hard work. --- src/libhtml/impl.h | 2 +- src/libhtml/mkfile | 14 ++++---------- src/libhtml/utils.c | 1 + 3 files changed, 6 insertions(+), 11 deletions(-) (limited to 'src/libhtml') diff --git a/src/libhtml/impl.h b/src/libhtml/impl.h index f8c79ea3..1dfa689c 100644 --- a/src/libhtml/impl.h +++ b/src/libhtml/impl.h @@ -158,6 +158,6 @@ extern void _freetokens(Token* tarray, int n); extern Token* _gettoks(uchar* data, int datalen, int chset, int mtype, int* plen); extern int _tokaval(Token* t, int attid, Rune** pans, int xfer); -#pragma varargck type "T" Token* +/* #pragma varargck type "T" Token* */ #include "runetab.h" diff --git a/src/libhtml/mkfile b/src/libhtml/mkfile index 0952c451..7496d830 100644 --- a/src/libhtml/mkfile +++ b/src/libhtml/mkfile @@ -1,6 +1,6 @@ -<$SYS9/$systype/$objtype/mkfile +<$PLAN9/src/mkhdr -LIB=$LIB9/libhtml.a +LIB=libhtml.a OFILES=\ build.$O\ @@ -10,13 +10,7 @@ OFILES=\ runetab.$O\ HFILES=\ - $SYS9/sys/include/html.h\ + $PLAN9/include/html.h\ impl.h\ -UPDATE=\ - mkfile\ - $HFILES\ - ${OFILES:%.$O=%.c}\ - ${LIB:$SYS9/$systype/$objtype/%=$SYS9/$systype/386/%}\ - -<$SYS9/sys/src/cmd/mksyslib +<$PLAN9/src/mksyslib diff --git a/src/libhtml/utils.c b/src/libhtml/utils.c index db22bba7..32fd70d0 100644 --- a/src/libhtml/utils.c +++ b/src/libhtml/utils.c @@ -1,4 +1,5 @@ #include +#include #include #include #include -- cgit v1.2.3