1*41ae62d0Soster /* $NetBSD: libmain.c,v 1.6 2019/01/27 03:19:42 oster Exp $ */
2a11deec2Schristos
330da1778Schristos /* libmain - flex run-time support library "main" function */
430da1778Schristos
530da1778Schristos /* This file is part of flex. */
630da1778Schristos
730da1778Schristos /* Redistribution and use in source and binary forms, with or without */
830da1778Schristos /* modification, are permitted provided that the following conditions */
930da1778Schristos /* are met: */
1030da1778Schristos
1130da1778Schristos /* 1. Redistributions of source code must retain the above copyright */
1230da1778Schristos /* notice, this list of conditions and the following disclaimer. */
1330da1778Schristos /* 2. Redistributions in binary form must reproduce the above copyright */
1430da1778Schristos /* notice, this list of conditions and the following disclaimer in the */
1530da1778Schristos /* documentation and/or other materials provided with the distribution. */
1630da1778Schristos
1730da1778Schristos /* Neither the name of the University nor the names of its contributors */
1830da1778Schristos /* may be used to endorse or promote products derived from this software */
1930da1778Schristos /* without specific prior written permission. */
2030da1778Schristos
2130da1778Schristos /* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR */
2230da1778Schristos /* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED */
2330da1778Schristos /* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
2430da1778Schristos /* PURPOSE. */
25cf548536Schristos #ifndef HAVE_NBTOOL_CONFIG_H
26a11deec2Schristos #include <sys/cdefs.h>
27a11deec2Schristos #ifdef __RCSID
28*41ae62d0Soster __RCSID("$NetBSD: libmain.c,v 1.6 2019/01/27 03:19:42 oster Exp $");
29cf548536Schristos #endif
30a11deec2Schristos #endif
3130da1778Schristos
327977e686Schristos #include <stdlib.h>
337977e686Schristos
3430da1778Schristos extern int yylex (void);
3530da1778Schristos
main(int argc,char * argv[])3630da1778Schristos int main (int argc, char *argv[])
3730da1778Schristos {
3830da1778Schristos (void)argc;
3930da1778Schristos (void)argv;
4030da1778Schristos
4130da1778Schristos while (yylex () != 0) ;
4230da1778Schristos
437977e686Schristos exit(0);
4430da1778Schristos }
45