24 #include "SidTuneCfg.h"
25 #include "sidplayfp/sidtypes.h"
28 #if defined(HAVE_SSTREAM)
33 # define istringstream istrstream
36 #if defined(HAVE_STRINGS_H)
40 #if defined(HAVE_STRCASECMP)
41 # define MYSTRICMP strcasecmp
43 # define MYSTRICMP stricmp
46 #if defined(HAVE_STRNCASECMP)
47 # define MYSTRNICMP strncasecmp
49 # define MYSTRNICMP strnicmp
57 static int myStrNcaseCmp(
const char* s1,
const char* s2)
59 return MYSTRNICMP(s1,s2,strlen(s2));
63 static char* myStrDup(
const char *source);
66 static char* fileNameWithoutPath(
char* s);
70 static char* slashedFileNameWithoutPath(
char* s);
74 static char* fileExtOfPath(
char* s);
78 static uint_least32_t readHex(std::istringstream& parseStream);
82 static uint_least32_t readDec(std::istringstream& parseStream);
86 static const char* returnNextLine(
const char* s, uint_least32_t len);
89 static void skipToEqu(std::istringstream& parseStream);
92 static void copyStringValueToEOL(
const char* pSourceStr,
char* pDestStr,
int destMaxLen);