convert main module to a C++ module

This commit is contained in:
Josh Holtrop 2018-05-08 19:59:57 -04:00
parent 8733911e82
commit 07fb50bb86
3 changed files with 0 additions and 11 deletions

View File

@ -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)
{

View File

@ -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