[BACK]Return to libmain.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / lex

Annotation of src/usr.bin/lex/libmain.c, Revision 1.8

1.8     ! tedu        1: /*     $OpenBSD: libmain.c,v 1.7 2012/12/05 23:20:25 deraadt Exp $     */
1.2       deraadt     2:
1.1       deraadt     3: /* libmain - flex run-time support library "main" function */
                      4:
1.8     ! tedu        5: /*  This file is part of flex. */
1.1       deraadt     6:
1.8     ! tedu        7: /*  Redistribution and use in source and binary forms, with or without */
        !             8: /*  modification, are permitted provided that the following conditions */
        !             9: /*  are met: */
1.1       deraadt    10:
1.8     ! tedu       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. */
1.1       deraadt    16:
1.8     ! tedu       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:
        !            26: extern int yylex ();
        !            27:
        !            28: int     main (argc, argv)
        !            29:      int     argc;
        !            30:      char   *argv[];
1.6       deraadt    31: {
1.8     ! tedu       32:        while (yylex () != 0) ;
1.3       millert    33:
                     34:        return 0;
1.6       deraadt    35: }