diff options
author | csgr <csgr@FreeBSD.org> | 1994-08-24 13:10:34 +0000 |
---|---|---|
committer | csgr <csgr@FreeBSD.org> | 1994-08-24 13:10:34 +0000 |
commit | b5e4d7a92edc625822f742dc8af8721069184091 (patch) | |
tree | 8b13cb408c9dd00581f447eace96a2b4996c7837 /usr.bin/lex/lib | |
download | FreeBSD-src-b5e4d7a92edc625822f742dc8af8721069184091.zip FreeBSD-src-b5e4d7a92edc625822f742dc8af8721069184091.tar.gz |
Flex version 2.4.7 from LBL
Reviewed by: Geoff.
Diffstat (limited to 'usr.bin/lex/lib')
-rw-r--r-- | usr.bin/lex/lib/Makefile | 20 | ||||
-rw-r--r-- | usr.bin/lex/lib/libmain.c | 12 | ||||
-rw-r--r-- | usr.bin/lex/lib/libyywrap.c | 8 |
3 files changed, 40 insertions, 0 deletions
diff --git a/usr.bin/lex/lib/Makefile b/usr.bin/lex/lib/Makefile new file mode 100644 index 0000000..406e542 --- /dev/null +++ b/usr.bin/lex/lib/Makefile @@ -0,0 +1,20 @@ +# $Id$ + +LIB= ln +SRCS= libmain.c libyywrap.c +LINKS= ${LIBDIR}/libln.a ${LIBDIR}/libl.a \ + +.if !defined(NOPROFILE) +LINKS+= ${LIBDIR}/libln_p.a ${LIBDIR}/libl_p.a +.endif + +.if !defined(NOSHARED) +LINKS+= ${LIBDIR}/libln.so.$(SHLIB_MAJOR).$(SHLIB_MINOR) \ + ${LIBDIR}/libl.so.$(SHLIB_MAJOR).$(SHLIB_MINOR) +.endif + +#This is where we get our SHLIB_MAJOR and SHLIB_MINOR +.include "${.CURDIR}/../../../lib/Makefile.inc" + +.include <bsd.lib.mk> + diff --git a/usr.bin/lex/lib/libmain.c b/usr.bin/lex/lib/libmain.c new file mode 100644 index 0000000..a893c7a --- /dev/null +++ b/usr.bin/lex/lib/libmain.c @@ -0,0 +1,12 @@ +/* libmain - flex run-time support library "main" function */ + +/* $Header: /home/daffy/u0/vern/flex/RCS/libmain.c,v 1.3 93/04/14 22:41:55 vern Exp $ */ + +extern int yylex(); + +int main( argc, argv ) +int argc; +char *argv[]; + { + return yylex(); + } diff --git a/usr.bin/lex/lib/libyywrap.c b/usr.bin/lex/lib/libyywrap.c new file mode 100644 index 0000000..b18f54e --- /dev/null +++ b/usr.bin/lex/lib/libyywrap.c @@ -0,0 +1,8 @@ +/* libyywrap - flex run-time support library "yywrap" function */ + +/* $Header: /home/daffy/u0/vern/flex/RCS/libyywrap.c,v 1.1 93/10/02 15:23:09 vern Exp $ */ + +int yywrap() + { + return 1; + } |