convert main module to a C++ module
This commit is contained in:
parent
8733911e82
commit
07fb50bb86
@ -10,7 +10,6 @@ extern FILE * yyin;
|
||||
|
||||
static const char * input_fname;
|
||||
|
||||
extern "C" {
|
||||
void parse(const char * filename)
|
||||
{
|
||||
input_fname = filename;
|
||||
@ -26,7 +25,6 @@ void parse(const char * filename)
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static char * read_file(const char * filename, size_t * length)
|
||||
{
|
||||
|
@ -6,16 +6,7 @@
|
||||
|
||||
#define YYSTYPE Node *
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void parse(const char * filename);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
void handle_parse_error(const char * str, const YYLTYPE * yylloc);
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user