convert main module to a C++ module
This commit is contained in:
1 parent
8733911e82
commit
07fb50bb86
3 files changed
-11
No files matched your search
File renamed without changes.
@@ -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
|
||||
Reference in new issue
Block a user