xref: /minix/external/bsd/flex/dist/libmain.c (revision 0a6a1f1d)
1 /*	$NetBSD: libmain.c,v 1.5 2014/10/30 20:21:39 christos Exp $	*/
2 
3 /* libmain - flex run-time support library "main" function */
4 
5 /*  This file is part of flex. */
6 
7 /*  Redistribution and use in source and binary forms, with or without */
8 /*  modification, are permitted provided that the following conditions */
9 /*  are met: */
10 
11 /*  1. Redistributions of source code must retain the above copyright */
12 /*     notice, this list of conditions and the following disclaimer. */
13 /*  2. Redistributions in binary form must reproduce the above copyright */
14 /*     notice, this list of conditions and the following disclaimer in the */
15 /*     documentation and/or other materials provided with the distribution. */
16 
17 /*  Neither the name of the University nor the names of its contributors */
18 /*  may be used to endorse or promote products derived from this software */
19 /*  without specific prior written permission. */
20 
21 /*  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR */
22 /*  IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED */
23 /*  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
24 /*  PURPOSE. */
25 #include <sys/cdefs.h>
26 #ifdef __RCSID
27 __RCSID("$NetBSD: libmain.c,v 1.5 2014/10/30 20:21:39 christos Exp $");
28 #endif
29 
30 extern int yylex(void);
31 
32 int
33 /*ARGSUSED*/
main(int argc,char * argv[])34 main(int argc, char *argv[])
35 {
36 	while (yylex() != 0)
37 		continue;
38 	return 0;
39 }
40