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