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
Extracted safe buffer mechanism to buffer.c for reuse.
[gedcom-parse.git]
/
include
/
gedcom.h.in
diff --git
a/include/gedcom.h.in
b/include/gedcom.h.in
index 6482c97edfe337a568e4b7c6143949c492faa431..b708cf0e5c0e555ffcca0d220b41450b6446fe58 100644
(file)
--- a/
include/gedcom.h.in
+++ b/
include/gedcom.h.in
@@
-27,7
+27,9
@@
#include <stdio.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdarg.h>
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
#ifndef GEDCOM_INTERNAL
#include <gedcom-tags.h>
#ifndef GEDCOM_INTERNAL
#include <gedcom-tags.h>
@@
-35,9
+37,12
@@
__BEGIN_DECLS
#define GEDCOM_PARSE_VERSION_MAJOR @VERSION_MAJOR@
#define GEDCOM_PARSE_VERSION_MINOR @VERSION_MINOR@
#define GEDCOM_PARSE_VERSION_MAJOR @VERSION_MAJOR@
#define GEDCOM_PARSE_VERSION_MINOR @VERSION_MINOR@
+#define GEDCOM_PARSE_VERSION_PATCH 0
#define GEDCOM_PARSE_VERSION \
(GEDCOM_PARSE_VERSION_MAJOR * 1000 + GEDCOM_PARSE_VERSION_MINOR)
#define GEDCOM_PARSE_VERSION \
(GEDCOM_PARSE_VERSION_MAJOR * 1000 + GEDCOM_PARSE_VERSION_MINOR)
+int gedcom_check_version(int major, int minor, int patch);
+
/**************************************************************************/
/*** First the records and elements to subscribe upon ***/
/**************************************************************************/
/**************************************************************************/
/*** First the records and elements to subscribe upon ***/
/**************************************************************************/
@@
-470,7
+475,7
@@
typedef void
(Gedcom_elt elt, Gedcom_ctxt parent, int level, char *tag,
char *raw_value, int tag_value);
(Gedcom_elt elt, Gedcom_ctxt parent, int level, char *tag,
char *raw_value, int tag_value);
-
void
gedcom_init();
+
int
gedcom_init();
int gedcom_parse_file(const char* file_name);
int gedcom_new_model();
void gedcom_set_debug_level(int level, FILE* trace_output);
int gedcom_parse_file(const char* file_name);
int gedcom_new_model();
void gedcom_set_debug_level(int level, FILE* trace_output);
@@
-504,6
+509,8
@@
int gedcom_warning(const char* s, ...);
int gedcom_message(const char* s, ...);
int gedcom_debug_print(const char* s, ...);
int gedcom_message(const char* s, ...);
int gedcom_debug_print(const char* s, ...);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif /* __GEDCOM_H */
#endif /* __GEDCOM_H */