#include <unistd.h>
#endif
+// ----------------------------------------------------------------------------
+// constants
+// ----------------------------------------------------------------------------
+
+/// Name for map file.
+#define WXEXTHELP_MAPFILE _T("wxhelp.map")
+/// Maximum line length in map file.
+#define WXEXTHELP_BUFLEN 512
+/// Character introducing comments/documentation field in map file.
+#define WXEXTHELP_COMMENTCHAR ';'
+
#define CONTENTS_ID 0
class wxExtHelpMapEntry : public wxObject
wxChar* f = wxGetWorkingDirectory();
file = f;
delete[] f; // wxGetWorkingDirectory returns new memory
+#ifdef __WXMAC__
+ file << ifile;
+#else
file << WXEXTHELP_SEPARATOR << ifile;
+#endif
}
else
file = ifile;
m_MapList = new wxList;
m_NumOfEntries = 0;
- FILE *input = wxFopen(mapFile.fn_str(),wxT("rt"));
+ FILE *input = wxFopen(mapFile,wxT("rt"));
if(! input)
return FALSE;
do