]> pd.if.org Git - pdclib.old/blobdiff - platform/win32/internals/_PDCLIB_config.h
PDCLIB-2 PDCLIB-8: Implement mbrtowc using mbrtoc32/mbrtoc16 depending upon definitio...
[pdclib.old] / platform / win32 / internals / _PDCLIB_config.h
index abefef934233fddbb9eb890417ab3ddfbeb8a8ec..c6da3ef5a02afea68a3c4ab3aa36722bd7ea1398 100644 (file)
 /* specific platforms, e.g. by swapping int instead of char.                  */
 #define _PDCLIB_memswp( i, j, size ) char tmp; do { tmp = *i; *i++ = *j; *j++ = tmp; } while ( --size );
 
-/* Define this to some compiler directive that can be written after the       */
-/* parameter list of a function declaration to indicate the function does     */
-/* never return. If your compiler does not support such a directive, define   */
-/* to nothing. (This is to avoid warnings with the exit functions under GCC.) */
-#define _PDCLIB_NORETURN __attribute__(( noreturn ))
-
 /* The maximum value that errno can be set to. This is used to set the size   */
 /* of the array in struct lconv (<locale.h>) holding error messages for the   */
 /* strerror() and perror() functions. (If you change this value because you   */
@@ -339,15 +333,15 @@ struct _PDCLIB_imaxdiv_t
 
 /* TODO: Better document these */
 
-/* I/O ---------------------------------------------------------------------- */
+/* Locale --------------------------------------------------------------------*/
 
-/* The type of the file descriptor returned by _PDCLIB_open(). */
-typedef void * _PDCLIB_fd_t;
+/* Locale method. See _PDCLIB_locale.h */
+#define _PDCLIB_LOCALE_METHOD _PDCLIB_LOCALE_METHOD_TSS
 
-/* The value (of type _PDCLIB_fd_t) returned by _PDCLIB_open() if the operation
-   failed.
-*/
-#define _PDCLIB_NOHANDLE NULL
+/* wchar_t encoding */
+#define _PDCLIB_WCHAR_ENCODING _PDCLIB_WCHAR_ENCODING_UTF16
+
+/* I/O ---------------------------------------------------------------------- */
 
 /* The default size for file buffers. Must be at least 256. */
 #define _PDCLIB_BUFSIZ 1024
@@ -360,7 +354,7 @@ typedef void * _PDCLIB_fd_t;
 #define _PDCLIB_FOPEN_MAX 8
 
 /* Length of the longest filename the implementation guarantees to support. */
-#define _PDCLIB_FILENAME_MAX 128
+#define _PDCLIB_FILENAME_MAX 260
 
 /* Maximum length of filenames generated by tmpnam(). (See tmpfile.c.) */
 #define _PDCLIB_L_tmpnam 260