From: Rafael L. <rla...@us...> - 2005-03-08 16:16:44
|
Update of /cvsroot/plplot/plplot/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13311/include Modified Files: plcore.h Log Message: The function plP_text is now UTF-8 aware. This is implemented by calling the function unicode_get_utf8 from libunicode. The presence of this library is checked in cf/unicode.ac, which AC_DEFINEs the cpp conditional HAVE_LIBUNICODE. The UTF-8-related code in plcore.c is put inside that conditional. UTF-8 support is enabled by default in configure, but is disable when either --without-libunicode is given or the library is not found in the system. Index: plcore.h =================================================================== RCS file: /cvsroot/plplot/plplot/include/plcore.h,v retrieving revision 1.71 retrieving revision 1.72 diff -u -d -r1.71 -r1.72 --- plcore.h 6 Feb 2005 18:29:18 -0000 1.71 +++ plcore.h 8 Mar 2005 16:16:31 -0000 1.72 @@ -38,7 +38,10 @@ #else typedef void (*PLDispatchInit)( PLDispatchTable *pdt ); #endif - + +#ifdef HAVE_LIBUNICODE +#include <unicode.h> +#endif /* Static function prototypes */ @@ -92,7 +95,7 @@ * Initialize dispatch table. * * Each device is selected by the appropriate define, passed in from the - * makefile. When installing plplot you may wish to exclude devices not + * makefile. When installing plplot you may wish to exclude devices not * present on your system in order to reduce screen clutter. * * If you hit a <CR> in response to the plinit() prompt, you get the FIRST @@ -250,7 +253,7 @@ #endif #if defined(PLD_aqt) && !defined(ENABLE_DYNDRIVERS) plD_dispatch_init_aqt, -#endif +#endif NULL }; @@ -274,7 +277,7 @@ typedef struct { char *drvnam; lt_dlhandle dlhand; - + } PLLoadableDriver; static PLLoadableDevice *loadable_device_list; |