+#define INTERNAL_ENCODING "UTF-8"
+
+#define GEDCOM_INTERNAL 1
+
+#ifdef __GNUC__
+#define UNUSED __attribute__((unused))
+#else
+#define UNUSED
+#endif
+
+struct tag_struct {
+ char *string;
+ int value;
+};
+
+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);