From: Owen Shepherd Date: Wed, 26 Dec 2012 18:53:47 +0000 (+0000) Subject: win32: _PDCLIB_config.h cleaned up: X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=0bd5eb227b6f2d515b90fe88087f58ed74286348 win32: _PDCLIB_config.h cleaned up: * _PDCLIB_NOHANDLE removed (obsolete) * _PDCLIB_NORETURN removed (obsolete) * Temp name length was greated than max guaranteed file name length. This has obvious issus. --- diff --git a/platform/win32/internals/_PDCLIB_config.h b/platform/win32/internals/_PDCLIB_config.h index 57a2d29..5e91db5 100644 --- a/platform/win32/internals/_PDCLIB_config.h +++ b/platform/win32/internals/_PDCLIB_config.h @@ -27,12 +27,6 @@ /* 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 () holding error messages for the */ /* strerror() and perror() functions. (If you change this value because you */ @@ -341,11 +335,6 @@ struct _PDCLIB_imaxdiv_t /* I/O ---------------------------------------------------------------------- */ -/* The value (of type _PDCLIB_fd_t) returned by _PDCLIB_open() if the operation - failed. -*/ -#define _PDCLIB_NOHANDLE NULL - /* The default size for file buffers. Must be at least 256. */ #define _PDCLIB_BUFSIZ 1024 @@ -357,7 +346,7 @@ struct _PDCLIB_imaxdiv_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