aboutsummaryrefslogtreecommitdiffstats
path: root/utilities/mod2imp.cpp
diff options
context:
space:
mode:
authordanglassey <danglassey>2002-10-02 13:02:56 +0000
committerdanglassey <danglassey>2002-10-02 13:02:56 +0000
commitbf167779c3051180f10188b1a988def048a8d232 (patch)
tree2ad63a7d00c094e5cee55ec056f50e5b86576a14 /utilities/mod2imp.cpp
parent44e038bb23d56043a458c29676d8ec42ee552fe0 (diff)
downloadsword-sf-cvs-bf167779c3051180f10188b1a988def048a8d232.tar.gz
sync with crosswire 20021002-1300
Diffstat (limited to 'utilities/mod2imp.cpp')
-rw-r--r--utilities/mod2imp.cpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/utilities/mod2imp.cpp b/utilities/mod2imp.cpp
index 1bc5ece..a979407 100644
--- a/utilities/mod2imp.cpp
+++ b/utilities/mod2imp.cpp
@@ -20,10 +20,20 @@
#include <versekey.h>
#include <stdio.h>
+#ifndef NO_SWORD_NAMESPACE
+using sword::SWModule;
+using sword::SWMgr;
+using sword::ModMap;
+using sword::SWKey;
+using sword::VerseKey;
+using sword::SW_POSITION;
+#endif
+
+
void errorOutHelp(char *appName) {
- cerr << appName << " - a tool to output a Sword module in SWORD's 'imp' import format\n";
- cerr << "usage: "<< appName << " <modname> \n";
- cerr << "\n\n";
+ std::cerr << appName << " - a tool to output a Sword module in SWORD's 'imp' import format\n";
+ std::cerr << "usage: "<< appName << " <modname> \n";
+ std::cerr << "\n\n";
exit(-1);
}
@@ -57,8 +67,8 @@ int main(int argc, char **argv)
vkey->Headings(1);
for ((*inModule) = TOP; !inModule->Error(); (*inModule)++) {
- cout << "$$$" << inModule->KeyText() << endl;
- cout << inModule->getRawEntry() << endl;
+ std::cout << "$$$" << inModule->KeyText() << std::endl;
+ std::cout << inModule->getRawEntry() << std::endl;
}
return 0;
}