-int gedcom_error(char* s, ...);
-int gedcom_warning(char* s, ...);
-int gedcom_message(char* s, ...);
-int gedcom_debug_print(char* s, ...);
+typedef enum _PARSE_STATE {
+ STATE_NORMAL,
+ STATE_INITIAL,
+ STATE_EXPECT_TAG
+} ParseState;
+
+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);