aboutsummaryrefslogtreecommitdiffstats
path: root/utilities/imp2gbs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utilities/imp2gbs.cpp')
-rw-r--r--utilities/imp2gbs.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/utilities/imp2gbs.cpp b/utilities/imp2gbs.cpp
index 73d72ea..b693e0f 100644
--- a/utilities/imp2gbs.cpp
+++ b/utilities/imp2gbs.cpp
@@ -19,6 +19,12 @@
#define O_BINARY 0
#endif
+#ifndef NO_SWORD_NAMESPACE
+using sword::TreeKeyIdx;
+using sword::RawGenBook;
+using sword::SWKey;
+#endif
+
void printTree(TreeKeyIdx treeKey, TreeKeyIdx *target = 0, int level = 1) {
if (!target)
target = &treeKey;
@@ -64,7 +70,7 @@ void setkey (TreeKeyIdx * treeKey, char* keybuffer) {
treeKey->save();
}
- //DEBUG std::cout << treeKey->getLocalName() << " : " << tok << endl;
+ //DEBUG std::cout << treeKey->getLocalName() << " : " << tok << std::endl;
tok = strtok(NULL, "/");
@@ -126,7 +132,7 @@ int main(int argc, char **argv) {
while (readline(infile, linebuffer)) {
if (!strncmp(linebuffer, "$$$", 3)) {
if (strlen(keybuffer) && strlen(entbuffer)) {
- std::cout << keybuffer << endl;
+ std::cout << keybuffer << std::endl;
treeKey->root();
setkey(treeKey, keybuffer);
book->setEntry(entbuffer, strlen(entbuffer));
@@ -142,7 +148,7 @@ int main(int argc, char **argv) {
//handle final entry
if (strlen(keybuffer) && strlen(entbuffer)) {
- std::cout << keybuffer << endl;
+ std::cout << keybuffer << std::endl;
treeKey->root();
setkey(treeKey, keybuffer);
book->setEntry(entbuffer, strlen(entbuffer));