[sword-devel] help porting app to 1.7.3 lib
Matthias Lindner
matthias.lindner at heilsarmee.de
Sat Nov 1 13:05:31 MST 2014
Hi all toghere,
i managed to port sword lib 1.7.3 to haiku os.
I now try to bring the Bibel app (called Scripture guide) to
compile with the new api. because it was for 3 or even more years not
touched it uses fairly old calls..
i manged - thanks to the creat documentation - to port most calles to
the new api but now a ran into some issues:
i get this error during compiling:
SwordBackend.cpp: In function 'std::vector<const char*> GetBookNames()':
SwordBackend.cpp:363:18: error: 'builtin_BMAX' is not a member of
'sword::VerseKey'
for(int j=0; j<VerseKey::builtin_BMAX[i]; j++)
^
SwordBackend.cpp:364:33: error: 'builtin_books' is not a member of
'sword::VerseKey'
books.push_back((const char*)VerseKey::builtin_books[i][j].name);
the variables he used are not documented at all in 1.7.3 i figured out
that i can replace bultin_BMAX with BMAX
but whtas with bultin_books[i].name?
the source looks like:
vector<const char*> GetBookNames(void)
{
vector<const char*> books;
for(int i=0; i<2; i++)
for(int j=0; j<VerseKey::builtin_BMAX[i]; j++)
books.push_back((const
char*)VerseKey::builtin_books[i][j].name);
return books;
}
(full source http://sourceforge.net/p/be-logos/mercurial/ci/default/tree/be-logos/SwordBackend.cpp)
maybe you can help me there to find a more elegant solution .
Thanks and much blessings
Matthias aka Paradoxon
More information about the sword-devel
mailing list