Module Name:    src
Committed By:   aymeric
Date:           Tue Feb  3 19:58:42 UTC 2015

Modified Files:
        src/sys/arch/amiga/stand/bootblock/txlt: Makefile txlt.l

Log Message:
. don't depend on -ll to provide a main() function. Lex on ArchLinux doesn't
  provide a libl
. still depend on -ll for the !HOSTPROG case for yywrap()
. ANSIfy


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/amiga/stand/bootblock/txlt/Makefile
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/amiga/stand/bootblock/txlt/txlt.l

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/amiga/stand/bootblock/txlt/Makefile
diff -u src/sys/arch/amiga/stand/bootblock/txlt/Makefile:1.8 src/sys/arch/amiga/stand/bootblock/txlt/Makefile:1.9
--- src/sys/arch/amiga/stand/bootblock/txlt/Makefile:1.8	Sun Dec 11 12:16:36 2005
+++ src/sys/arch/amiga/stand/bootblock/txlt/Makefile	Tue Feb  3 19:58:41 2015
@@ -1,8 +1,12 @@
-#	$NetBSD: Makefile,v 1.8 2005/12/11 12:16:36 christos Exp $
+#	$NetBSD: Makefile,v 1.9 2015/02/03 19:58:41 aymeric Exp $
 #
 PROG=txlt
 NOMAN=	# defined
-LDADD=-ll
 CLEANFILES+=	txlt.c
 
+.ifndef HOSTPROG
+LDADD+=		-ll
+DPADD+=		${LIBL}
+.endif
+
 .include <bsd.prog.mk>

Index: src/sys/arch/amiga/stand/bootblock/txlt/txlt.l
diff -u src/sys/arch/amiga/stand/bootblock/txlt/txlt.l:1.5 src/sys/arch/amiga/stand/bootblock/txlt/txlt.l:1.6
--- src/sys/arch/amiga/stand/bootblock/txlt/txlt.l:1.5	Mon Jun 20 20:25:47 2011
+++ src/sys/arch/amiga/stand/bootblock/txlt/txlt.l	Tue Feb  3 19:58:41 2015
@@ -7,14 +7,13 @@ pea[ 	][._A-Za-z][A-Za-z0-9_.]*$	{printf
 \ [._A-Za-z][A-Za-z0-9_.]*/\,		munchit(yytext);
 .					putchar(*yytext);
 %%
-/*	$NetBSD: txlt.l,v 1.5 2011/06/20 20:25:47 he Exp $	*/
+/*	$NetBSD: txlt.l,v 1.6 2015/02/03 19:58:41 aymeric Exp $	*/
 
 #include <string.h>
 
 void
-munchit(s)
-	char *s;
-{
+munchit(char *s) {
+
 	putchar(*s++);
 	if ((!strncmp(s, "fp", 2) ||
 	    !strncmp(s, "sp", 2) ||
@@ -24,3 +23,11 @@ munchit(s)
 	else
 		printf("%%pc@(%s)",s);
 }
+
+int
+main(void) {
+	while (yylex() != 0)
+		;
+
+	return 0;
+}

Reply via email to