#endif
#include <wx/html/htmltag.h>
+#include <stdio.h> // for vsscanf
#include <stdarg.h>
i++;
}
dummy[i] = 0;
- m_Cache[tg].Name = (char*) malloc(i+1);
+ m_Cache[tg].Name = new char[i+1];
memcpy(m_Cache[tg].Name, dummy, i+1);
while (src[pos] != '>') pos++;
// ok, we're done, now we'll free .Name members of cache - we don't need it anymore:
for (i = 0; i < m_CacheSize; i++) {
- free(m_Cache[i].Name);
+ delete[] m_Cache[i].Name;
m_Cache[i].Name = NULL;
}
}
va_start(argptr, format);
-#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__VISUALC__)
+//#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__VISUALC__)
+#ifndef HAVE_VSSCANF
sscanf((const char*)parval, format, va_arg(argptr, void *));
#else
vsscanf((const char*)parval, format, argptr);
va_end(argptr);
}
-#endif
\ No newline at end of file
+#endif