Add missing prototypes to lemon-generated code.
Add static prototypes for the parser interface functions. Fixes -Wmissing-prototypes found by clang.
This commit is contained in:
parent
23a82b040e
commit
c92637bcd8
|
@ -32,6 +32,10 @@
|
||||||
#define NAME_TO_BE_SET "<NAME_TO_BE_SET>"
|
#define NAME_TO_BE_SET "<NAME_TO_BE_SET>"
|
||||||
#define NEED_NOT_NAME "<NEED_NOT_NAME>"
|
#define NEED_NOT_NAME "<NEED_NOT_NAME>"
|
||||||
|
|
||||||
|
static void *ProtobufLangParserAlloc(void *(*mallocProc)(size_t));
|
||||||
|
static void ProtobufLangParser(void *yyp, int yymajor, protobuf_lang_token_t *yyminor, protobuf_lang_state_t *state);
|
||||||
|
static void ProtobufLangParserFree(void *p, void (*freeProc)(void*));
|
||||||
|
|
||||||
/* Error handling function for parser */
|
/* Error handling function for parser */
|
||||||
void protobuf_lang_error(void* yyscanner, protobuf_lang_state_t *state, const char *msg);
|
void protobuf_lang_error(void* yyscanner, protobuf_lang_state_t *state, const char *msg);
|
||||||
|
|
||||||
|
|
|
@ -127,6 +127,10 @@ XMIT-Max7:20: (task "_brouterControlTask" at 0xb094ac20, time: 1481.51) 20 octet
|
||||||
|
|
||||||
#define NO_USER "<none>"
|
#define NO_USER "<none>"
|
||||||
|
|
||||||
|
static void *AscendParserAlloc(void *(*mallocProc)(size_t));
|
||||||
|
static void AscendParser(void *yyp, int yymajor, ascend_token_t yyminor, ascend_state_t *state);
|
||||||
|
static void AscendParserFree(void *p, void (*freeProc)(void*));
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
#define ASCEND_PARSER_DEBUG 1
|
#define ASCEND_PARSER_DEBUG 1
|
||||||
#undef NDEBUG
|
#undef NDEBUG
|
||||||
|
|
Loading…
Reference in New Issue