Declare unused parameters directly instead of relying on -Wno-unused-parameter.
[gedcom-parse.git] / gedcom / gedcom_internal.h
index 5a199dd65c62e78853f79785919a0103006e4363..ea2bd6ef76599e1c2af3db4d945ddbc76a9e3619 100644 (file)
@@ -54,12 +54,20 @@ struct tag_struct {
   int value;
 };
 
-int        gedcom_parse();
-int        gedcom_lex();
+typedef enum _PARSE_STATE {
+  STATE_NORMAL,
+  STATE_INITIAL,
+  STATE_EXPECT_TAG
+} ParseState;
 
-void       gedcom_mem_error(char *filename, int line);
+int  gedcom_parse();
+int  gedcom_lex();
+int  gedcom_check_token(const char* str, ParseState state, int check_token);
+
+void gedcom_mem_error(const char *filename, int line);
 
 #define MEMORY_ERROR gedcom_mem_error(__FILE__, __LINE__)
 
 extern int line_no;
+extern int init_called;
 #endif /* __GEDCOM_INTERNAL_H */