Diffstat (limited to 'noncore/apps/opie-reader/ztxt.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/ztxt.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/noncore/apps/opie-reader/ztxt.cpp b/noncore/apps/opie-reader/ztxt.cpp index 8091d32..79c5fa4 100644 --- a/noncore/apps/opie-reader/ztxt.cpp +++ b/noncore/apps/opie-reader/ztxt.cpp @@ -5,2 +5,3 @@ #include "Bkmks.h" +#include "static.h" @@ -11,3 +12,3 @@ int ztxt::OpenFile(const char *src) { - if (!Cpdb::openfile(src)) + if (!Cpdb::openpdbfile(src)) { @@ -156,3 +157,8 @@ CList<Bkmk>* ztxt::getbkmklist() // printf("Bookmark number:%d:%.20s\n", i, bkmk.title); - t->push_back(Bkmk(bkmk.title, NULL, ntohl(bkmk.offset))); + tchar title[MAX_BMRK_LENGTH]; + for (int j = 0; j < MAX_BMRK_LENGTH; j++) + { + title[j] = bkmk.title[j]; + } + t->push_back(Bkmk(title, NULL, ntohl(bkmk.offset))); } @@ -161 +167,8 @@ CList<Bkmk>* ztxt::getbkmklist() } + +#ifndef __STATIC +extern "C" +{ + CExpander* newcodec() { return new ztxt; } +} +#endif |