xref: /openbsd-src/usr.bin/lex/libmain.c (revision 1017a5bda0d3f4e971a1651600daaa6663ec45f2)
1*1017a5bdStedu /*	$OpenBSD: libmain.c,v 1.9 2015/11/19 22:52:40 tedu Exp $	*/
21258a77dSderaadt 
3df930be7Sderaadt /* libmain - flex run-time support library "main" function */
4df930be7Sderaadt 
5a58c1ecbStedu /*  This file is part of flex. */
6df930be7Sderaadt 
7a58c1ecbStedu /*  Redistribution and use in source and binary forms, with or without */
8a58c1ecbStedu /*  modification, are permitted provided that the following conditions */
9a58c1ecbStedu /*  are met: */
10df930be7Sderaadt 
11a58c1ecbStedu /*  1. Redistributions of source code must retain the above copyright */
12a58c1ecbStedu /*     notice, this list of conditions and the following disclaimer. */
13a58c1ecbStedu /*  2. Redistributions in binary form must reproduce the above copyright */
14a58c1ecbStedu /*     notice, this list of conditions and the following disclaimer in the */
15a58c1ecbStedu /*     documentation and/or other materials provided with the distribution. */
16df930be7Sderaadt 
17a58c1ecbStedu /*  Neither the name of the University nor the names of its contributors */
18a58c1ecbStedu /*  may be used to endorse or promote products derived from this software */
19a58c1ecbStedu /*  without specific prior written permission. */
20a58c1ecbStedu 
21a58c1ecbStedu /*  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR */
22a58c1ecbStedu /*  IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED */
23a58c1ecbStedu /*  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
24a58c1ecbStedu /*  PURPOSE. */
25a58c1ecbStedu 
26a58c1ecbStedu extern int yylex();
27a58c1ecbStedu 
28*1017a5bdStedu int
main(argc,argv)29*1017a5bdStedu main(argc, argv)
30a58c1ecbStedu 	int argc;
31a58c1ecbStedu 	char *argv[];
32df930be7Sderaadt {
33a58c1ecbStedu 	while (yylex() != 0);
34d7e04f83Smillert 
35d7e04f83Smillert 	return 0;
36df930be7Sderaadt }
37