projects
/
SXSI
/
TextCollection.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small fix for index loading
[SXSI/TextCollection.git]
/
lzindex
/
lztrie.h
diff --git
a/lzindex/lztrie.h
b/lzindex/lztrie.h
index
691a2aa
..
f70c50e
100644
(file)
--- a/
lzindex/lztrie.h
+++ b/
lzindex/lztrie.h
@@
-45,11
+45,29
@@
extern "C" {
#endif
// frees LZTrie structure, including the owned data
#endif
// frees LZTrie structure, including the owned data
+#ifdef __cplusplus
+extern "C" {
+void destroyLZTrie (lztrie T);
+}
+#else
void destroyLZTrie (lztrie T);
void destroyLZTrie (lztrie T);
+#endif
// stores lztrie T on file f
// stores lztrie T on file f
+#ifdef __cplusplus
+extern "C" {
+void saveLZTrie (lztrie T, FILE *f);
+}
+#else
void saveLZTrie (lztrie T, FILE *f);
void saveLZTrie (lztrie T, FILE *f);
+#endif
// loads lztrie T from file f
// loads lztrie T from file f
+#ifdef __cplusplus
+extern "C" {
lztrie loadLZTrie (FILE *f);
lztrie loadLZTrie (FILE *f);
+}
+#else
+lztrie loadLZTrie (FILE *f);
+#endif
// letter by which node i descends
byte letterLZTrie (lztrie T, trieNode i);
// go down by letter c, if possible
// letter by which node i descends
byte letterLZTrie (lztrie T, trieNode i);
// go down by letter c, if possible