mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 23:33:00 +00:00
ec17f5a5b9
error handling. - Fixed: dehsupp/scanner.re defined "}" as the token RPAREN. dehsupp/parse.y also defined action_list_def as needing a RBARCE. I'm surprised it worked at all before. I guess Lemon really was too accepting. - Changed the way that xlatcc handles include statements so that I don't need to modify the logic of lempar.c. I also discovered that the grammar was improperly defined and only accepted the first statement. It worked before because Lemon used to accept multiple times before reaching the EOF token. I have also verified that it is still generating the proper lumps. - Removed some unused wadsrc files from the repository. - Fixed my re2c upgrade. - Updated lemon.c to v1.53. SVN r711 (trunk)
34 lines
750 B
C++
34 lines
750 B
C++
/*
|
|
Author: Marcus Boerger <helly@users.sourceforge.net>
|
|
*/
|
|
|
|
/* $Id: mbo_getopt.h 539 2006-05-25 13:37:38Z helly $ */
|
|
|
|
/* Define structure for one recognized option (both single char and long name).
|
|
* If short_open is '-' this is the last option.
|
|
*/
|
|
|
|
#ifndef RE2C_MBO_GETOPT_H_INCLUDE_GUARD_
|
|
#define RE2C_MBO_GETOPT_H_INCLUDE_GUARD_
|
|
|
|
namespace re2c
|
|
{
|
|
|
|
struct mbo_opt_struct
|
|
{
|
|
mbo_opt_struct(char _opt_char, int _need_param, const char * _opt_name)
|
|
: opt_char(_opt_char), need_param(_need_param), opt_name(_opt_name)
|
|
{
|
|
}
|
|
|
|
const char opt_char;
|
|
const int need_param;
|
|
const char * opt_name;
|
|
};
|
|
|
|
int mbo_getopt(int argc, char* const *argv, const mbo_opt_struct *opts, char **optarg, int *optind, int show_err);
|
|
|
|
} // end namespace re2c
|
|
|
|
#endif
|
|
|