dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generate via normal configure mechanism (portability).
[gedcom-parse.git]
/
gedcom
/
gedcom_internal.h
diff --git
a/gedcom/gedcom_internal.h
b/gedcom/gedcom_internal.h
index e34318144869dede3c2e6b7870fd1cce6f823ca8..a8c3044c1d2e85a5c0ed865b49c06687e3c6e676 100644
(file)
--- a/
gedcom/gedcom_internal.h
+++ b/
gedcom/gedcom_internal.h
@@
-45,21
+45,31
@@
#define MAXSTDTAGLEN 4
#define MAXGEDCPTRLEN 22
#define GEDCOMTAGOFFSET 257
#define MAXSTDTAGLEN 4
#define MAXGEDCPTRLEN 22
#define GEDCOMTAGOFFSET 257
-#define INTERNAL_ENCODING "UTF8"
+#define INTERNAL_ENCODING "UTF
-
8"
#define GEDCOM_INTERNAL 1
#define GEDCOM_INTERNAL 1
+#define UNUSED __attribute__((unused))
+
struct tag_struct {
char *string;
int value;
};
struct tag_struct {
char *string;
int value;
};
-int gedcom_parse();
-int gedcom_lex();
+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);
+void gedcom_mem_error(const char *filename, int line);
#define MEMORY_ERROR gedcom_mem_error(__FILE__, __LINE__)
extern int line_no;
#define MEMORY_ERROR gedcom_mem_error(__FILE__, __LINE__)
extern int line_no;
+extern int init_called;
#endif /* __GEDCOM_INTERNAL_H */
#endif /* __GEDCOM_INTERNAL_H */