diff dw.h @ 1783:9de6d1cc8fb8

Put test program code into DEPRECATED #ifdef again to avoid build warnings. Added UTF-8/Wide string conversion functions which will be used in an editor.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 24 Jul 2012 22:52:57 +0000
parents d81bebc5c8cc
children 9d499b162fe1
line wrap: on
line diff
--- a/dw.h	Mon Jul 23 16:56:08 2012 +0000
+++ b/dw.h	Tue Jul 24 22:52:57 2012 +0000
@@ -1415,6 +1415,8 @@
 #define _DW_SCROLLED_MAX_WIDTH   500
 #define _DW_SCROLLED_MAX_HEIGHT  400
 
+#include <wchar.h>
+
 /* Let other APIs know what types we've defined,
  * Regina REXX in particular, on Unix.
  */
@@ -1724,5 +1726,7 @@
 HPRINT API dw_print_new(char *jobname, unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata);
 int API dw_print_run(HPRINT print, unsigned long flags);
 void API dw_print_cancel(HPRINT print);
+wchar_t * API dw_utf8_to_wchar(char *utf8string);
+char * API dw_wchar_to_utf8(wchar_t *wstring);
 
 #endif