]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/HelpGen/src/wx_extra_imps.cpp
HelpGen is a prototype of the tool for automatic generation of the .tex files
[wxWidgets.git] / utils / HelpGen / src / wx_extra_imps.cpp
diff --git a/utils/HelpGen/src/wx_extra_imps.cpp b/utils/HelpGen/src/wx_extra_imps.cpp
new file mode 100644 (file)
index 0000000..6cdc260
--- /dev/null
@@ -0,0 +1,31 @@
+////////////////////
+//
+// craeted by Alex
+//
+////////////////////
+
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#include <memory.h>
+
+#ifndef WX_PRECOMP
+    #include "wx/defs.h"
+#endif
+
+char *
+copystring (const char *s)
+{
+  if (s == NULL) s = "";
+  size_t len = strlen (s) + 1;
+
+  char *news = new char[len];
+  memcpy (news, s, len);    // Should be the fastest
+
+  return news;
+}
+
+const char *wxGetTranslation(const char *str)
+{
+    return str;
+}