diff options
author | danglassey <danglassey> | 2002-09-07 13:01:15 +0000 |
---|---|---|
committer | danglassey <danglassey> | 2002-09-07 13:01:15 +0000 |
commit | a88d2ae0574ef1422da03fe36a0d339a2af8cd88 (patch) | |
tree | 041204e69e552ff3670767d288075986f75d43a3 /utilities/thml2gbs.cpp | |
parent | a550e4bddf5791f107f1d093599381052bb06d10 (diff) | |
download | sword-sf-cvs-a88d2ae0574ef1422da03fe36a0d339a2af8cd88.tar.gz |
sync with crosswire 20020907-1300
Diffstat (limited to 'utilities/thml2gbs.cpp')
-rw-r--r-- | utilities/thml2gbs.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/utilities/thml2gbs.cpp b/utilities/thml2gbs.cpp index e95f4ab..df85806 100644 --- a/utilities/thml2gbs.cpp +++ b/utilities/thml2gbs.cpp @@ -103,9 +103,8 @@ int main(int argc, char **argv) { char* n = new char[256]; char* type = new char[256]; char* title= new char[512]; - - char* strtmp; + char* strtmp; if (argc > 2) { strcpy (modname, argv[2]); } @@ -120,7 +119,6 @@ int main(int argc, char **argv) { exit(-1); } - FILE *infile; infile = fopen(argv[1], "r"); FILE *outfile; @@ -128,7 +126,7 @@ int main(int argc, char **argv) { strcat (modname, ".imp"); outfile = fopen(modname, "w"); } - + TreeKeyIdx * treeKey; RawGenBook *book; @@ -142,7 +140,7 @@ int main(int argc, char **argv) { //DEBUG TreeKeyIdx root = *((TreeKeyIdx *)((SWKey *)(*book))); treeKey = ((TreeKeyIdx *)((SWKey *)(*book))); } - + int c; while ((c = fgetc(infile)) != EOF) { if (c == '<') { @@ -160,7 +158,7 @@ int main(int argc, char **argv) { } if (level) { - std::cout << keybuffer << std::endl; + printf ("%s\n", keybuffer); if (exportfile) { fprintf (outfile, "$$$%s\n%s\n", keybuffer, entbuffer); } @@ -200,7 +198,7 @@ int main(int argc, char **argv) { } if (level) { - std::cout << keybuffer << std::endl; + printf ("%s\n", keybuffer); if (exportfile) { fprintf (outfile, "$$$%s\n%s\n", keybuffer, entbuffer); } @@ -227,7 +225,7 @@ int main(int argc, char **argv) { } } keybuffer[keysize] = 0; - + type[0] = 0; strtmp = strstr(keybuffer, "type=\""); if (strtmp) { @@ -303,7 +301,9 @@ int main(int argc, char **argv) { entbuffer[entrysize] = 0; } } + //DEBUG printTree(root, treeKey); + return 0; delete treeKey; delete book; |