Sha256: f9473238f7e20ce05dd5eb87e02b4f4e9d38650678e03431fcd3ccc481163510
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
#ifndef _PMISCDEF_H #define _PMISCDEF_H 1 #include <string.h> /* snprintf MS VC++ support; * thanks to Viacheslav Sheveliov <slavash@aha.ru> */ #ifdef _MSC_VER # define snprintf _snprintf #endif /* printf ptrdiff_t format modifier */ #if __STDC_VERSION__ >= 199901L # define TO_PTRDIFF_T(X) (X) # define MOD_TD "%td" #elif defined _MSC_VER # define TO_PTRDIFF_T(X) (X) # define MOD_TD "%Id" #else # define TO_PTRDIFF_T(X) ((long) (X)) # define MOD_TD "%ld" #endif #if ! HAVE_STRDUP && ! defined strdup # if HAVE__STRDUP # define strdup _strdup # else # define strdup(str) strcpy(malloc(strlen(str) + 1), str) # endif #endif #define COMPILE_TIME_ASSERT(x) \ void __cta_proto__(int __cta_foo__[(x) ? 1 : -1]) #ifdef __GNUC__ #define FORMAT_PRINTF(X,Y) __attribute__ ((__format__ (__printf__, X, Y))) #else #define FORMAT_PRINTF(X,Y) #endif #if defined(__GNUC__) && !(defined(PEDANTIC)) #define INLINE inline #else /* !__GNUC__ */ #define INLINE #endif /* __GNUC__ */ #endif /* pmiscdef.h */ /* * Local Variables: * mode: c * End: */
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
html-template-pro-0.0.3 | ext/html/template/pmiscdef.h |
html-template-pro-0.0.2 | ext/html/template/internal/pmiscdef.h |
html-template-pro-0.0.1 | ext/html/template/internal/pmiscdef.h |