Home | History | Annotate | Line # | Download | only in src
      1 /*	$NetBSD: options.h,v 1.3 2017/01/02 17:45:27 christos Exp $	*/
      2 
      3 /* flex - tool to generate fast lexical analyzers */
      4 
      5 /*  Copyright (c) 1990 The Regents of the University of California. */
      6 /*  All rights reserved. */
      7 
      8 /*  This code is derived from software contributed to Berkeley by */
      9 /*  Vern Paxson. */
     10 
     11 /*  The United States Government has rights in this work pursuant */
     12 /*  to contract no. DE-AC03-76SF00098 between the United States */
     13 /*  Department of Energy and the University of California. */
     14 
     15 /*  This file is part of flex. */
     16 
     17 /*  Redistribution and use in source and binary forms, with or without */
     18 /*  modification, are permitted provided that the following conditions */
     19 /*  are met: */
     20 
     21 /*  1. Redistributions of source code must retain the above copyright */
     22 /*     notice, this list of conditions and the following disclaimer. */
     23 /*  2. Redistributions in binary form must reproduce the above copyright */
     24 /*     notice, this list of conditions and the following disclaimer in the */
     25 /*     documentation and/or other materials provided with the distribution. */
     26 
     27 /*  Neither the name of the University nor the names of its contributors */
     28 /*  may be used to endorse or promote products derived from this software */
     29 /*  without specific prior written permission. */
     30 
     31 /*  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR */
     32 /*  IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED */
     33 /*  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
     34 /*  PURPOSE. */
     35 
     36 #ifndef OPTIONS_H
     38 #define OPTIONS_H
     39 #include "scanopt.h"
     40 
     41 extern optspec_t flexopts[];
     42 
     43 enum flexopt_flag_t {
     44 	/* Use positive integers only, since they are return codes for scanopt.
     45 	 * Order is not important. */
     46 	OPT_7BIT = 1,
     47 	OPT_8BIT,
     48 	OPT_ALIGN,
     49 	OPT_ALWAYS_INTERACTIVE,
     50 	OPT_ARRAY,
     51 	OPT_BACKUP,
     52 	OPT_BATCH,
     53         OPT_BISON_BRIDGE,
     54         OPT_BISON_BRIDGE_LOCATIONS,
     55 	OPT_CASE_INSENSITIVE,
     56 	OPT_COMPRESSION,
     57 	OPT_CPLUSPLUS,
     58 	OPT_DEBUG,
     59 	OPT_DEFAULT,
     60 	OPT_DONOTHING,
     61 	OPT_ECS,
     62 	OPT_FAST,
     63 	OPT_FULL,
     64 	OPT_HEADER_FILE,
     65 	OPT_HELP,
     66 	OPT_HEX,
     67 	OPT_INTERACTIVE,
     68 	OPT_LEX_COMPAT,
     69 	OPT_POSIX_COMPAT,
     70 	OPT_MAIN,
     71 	OPT_META_ECS,
     72 	OPT_NEVER_INTERACTIVE,
     73 	OPT_NO_ALIGN,
     74 	OPT_NO_DEBUG,
     75 	OPT_NO_DEFAULT,
     76 	OPT_NO_ECS,
     77 	OPT_NO_LINE,
     78 	OPT_NO_MAIN,
     79 	OPT_NO_META_ECS,
     80 	OPT_NO_REENTRANT,
     81 	OPT_NO_REJECT,
     82 	OPT_NO_STDINIT,
     83 	OPT_NO_UNPUT,
     84 	OPT_NO_WARN,
     85 	OPT_NO_YYGET_EXTRA,
     86 	OPT_NO_YYGET_IN,
     87 	OPT_NO_YYGET_LENG,
     88 	OPT_NO_YYGET_LINENO,
     89 	OPT_NO_YYGET_LLOC,
     90 	OPT_NO_YYGET_LVAL,
     91 	OPT_NO_YYGET_OUT,
     92 	OPT_NO_YYGET_TEXT,
     93 	OPT_NO_YYLINENO,
     94 	OPT_NO_YYMORE,
     95 	OPT_NO_YYSET_EXTRA,
     96 	OPT_NO_YYSET_IN,
     97 	OPT_NO_YYSET_LINENO,
     98 	OPT_NO_YYSET_LLOC,
     99 	OPT_NO_YYSET_LVAL,
    100 	OPT_NO_YYSET_OUT,
    101 	OPT_NO_YYWRAP,
    102 	OPT_NO_YY_POP_STATE,
    103 	OPT_NO_YY_PUSH_STATE,
    104 	OPT_NO_YY_SCAN_BUFFER,
    105 	OPT_NO_YY_SCAN_BYTES,
    106 	OPT_NO_YY_SCAN_STRING,
    107 	OPT_NO_YY_TOP_STATE,
    108 	OPT_OUTFILE,
    109 	OPT_PERF_REPORT,
    110 	OPT_POINTER,
    111 	OPT_PREFIX,
    112 	OPT_PREPROCDEFINE,
    113 	OPT_PREPROC_LEVEL,
    114 	OPT_READ,
    115 	OPT_REENTRANT,
    116 	OPT_REJECT,
    117 	OPT_SKEL,
    118 	OPT_STACK,
    119 	OPT_STDINIT,
    120 	OPT_STDOUT,
    121 	OPT_TABLES_FILE,
    122 	OPT_TABLES_VERIFY,
    123 	OPT_TRACE,
    124 	OPT_NO_UNISTD_H,
    125 	OPT_VERBOSE,
    126 	OPT_VERSION,
    127 	OPT_WARN,
    128 	OPT_YYCLASS,
    129 	OPT_YYLINENO,
    130 	OPT_YYMORE,
    131 	OPT_YYWRAP,
    132         OPT_NO_SECT3_ESCAPE,
    133 };
    134 
    135 #endif
    136 
    137 /* vim:set tabstop=8 softtabstop=4 shiftwidth=4 textwidth=0: */
    138