| 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 |
|
|---|
| 35 | #ifndef OPTIONS_H
|
|---|
| 36 | #define OPTIONS_H
|
|---|
| 37 | #include "scanopt.h"
|
|---|
| 38 |
|
|---|
| 39 | extern optspec_t flexopts[];
|
|---|
| 40 |
|
|---|
| 41 | enum flexopt_flag_t {
|
|---|
| 42 | /* Use positive integers only, since they are return codes for scanopt.
|
|---|
| 43 | * Order is not important. */
|
|---|
| 44 | OPT_7BIT = 1,
|
|---|
| 45 | OPT_8BIT,
|
|---|
| 46 | OPT_ALIGN,
|
|---|
| 47 | OPT_ALWAYS_INTERACTIVE,
|
|---|
| 48 | OPT_ARRAY,
|
|---|
| 49 | OPT_BACKUP,
|
|---|
| 50 | OPT_BATCH,
|
|---|
| 51 | OPT_BISON_BRIDGE,
|
|---|
| 52 | OPT_BISON_BRIDGE_LOCATIONS,
|
|---|
| 53 | OPT_CASE_INSENSITIVE,
|
|---|
| 54 | OPT_COMPRESSION,
|
|---|
| 55 | OPT_CPLUSPLUS,
|
|---|
| 56 | OPT_DEBUG,
|
|---|
| 57 | OPT_DEFAULT,
|
|---|
| 58 | OPT_DONOTHING,
|
|---|
| 59 | OPT_ECS,
|
|---|
| 60 | OPT_FAST,
|
|---|
| 61 | OPT_FULL,
|
|---|
| 62 | OPT_HEADER_FILE,
|
|---|
| 63 | OPT_HELP,
|
|---|
| 64 | OPT_INTERACTIVE,
|
|---|
| 65 | OPT_LEX_COMPAT,
|
|---|
| 66 | OPT_POSIX_COMPAT,
|
|---|
| 67 | OPT_MAIN,
|
|---|
| 68 | OPT_META_ECS,
|
|---|
| 69 | OPT_NEVER_INTERACTIVE,
|
|---|
| 70 | OPT_NO_ALIGN,
|
|---|
| 71 | OPT_NO_ANSI_FUNC_DEFS,
|
|---|
| 72 | OPT_NO_ANSI_FUNC_PROTOS,
|
|---|
| 73 | OPT_NO_DEBUG,
|
|---|
| 74 | OPT_NO_DEFAULT,
|
|---|
| 75 | OPT_NO_ECS,
|
|---|
| 76 | OPT_NO_LINE,
|
|---|
| 77 | OPT_NO_MAIN,
|
|---|
| 78 | OPT_NO_META_ECS,
|
|---|
| 79 | OPT_NO_REENTRANT,
|
|---|
| 80 | OPT_NO_REJECT,
|
|---|
| 81 | OPT_NO_STDINIT,
|
|---|
| 82 | OPT_NO_UNPUT,
|
|---|
|
|---|