diff options
author | danglassey <danglassey> | 2002-10-02 13:02:56 +0000 |
---|---|---|
committer | danglassey <danglassey> | 2002-10-02 13:02:56 +0000 |
commit | bf167779c3051180f10188b1a988def048a8d232 (patch) | |
tree | 2ad63a7d00c094e5cee55ec056f50e5b86576a14 /utilities/mod2imp.cpp | |
parent | 44e038bb23d56043a458c29676d8ec42ee552fe0 (diff) | |
download | sword-sf-cvs-bf167779c3051180f10188b1a988def048a8d232.tar.gz |
sync with crosswire 20021002-1300
Diffstat (limited to 'utilities/mod2imp.cpp')
-rw-r--r-- | utilities/mod2imp.cpp | 20 |
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; } |