--- configure.ac 1 Aug 2005 09:54:56 -0000 1.37 +++ configure.ac 11 Aug 2005 18:42:00 -0000 @@ -437,6 +437,7 @@ AC_SUBST(LIBLDFLAGS)dnl AC_PROG_CPP dnl Figure out how to run C preprocessor. AC_PROG_GCC_TRADITIONAL dnl Do we need -traditional flag for gcc. AC_C_CONST dnl Does compiler support `const'. +AC_C_INLINE dnl Default preprocessing on Mac OS X produces warnings case "$host_os" in --- Src/Zle/zle.h 10 Aug 2005 10:56:41 -0000 1.15 +++ Src/Zle/zle.h 11 Aug 2005 18:42:00 -0000 @@ -89,10 +89,20 @@ typedef int ZLE_INT_T; #define ZS_memmove memmove #define ZS_memset memset #define ZS_memcmp memcmp -#define ZS_strlen strlen -#define ZS_strcpy strcpy -#define ZS_strncpy strncpy -#define ZS_strncmp strncmp + +static inline size_t ZS_strlen(ZLE_STRING_T s); +static inline ZLE_STRING_T ZS_strcpy(ZLE_STRING_T t, ZLE_STRING_T f); +static inline ZLE_STRING_T ZS_strncpy(ZLE_STRING_T t, ZLE_STRING_T f, size_t l); +static inline int ZS_strncmp(ZLE_STRING_T s1, ZLE_STRING_T s2, size_t l); + +static inline size_t ZS_strlen(ZLE_STRING_T s) +{ return strlen((char*)s); } +static inline ZLE_STRING_T ZS_strcpy(ZLE_STRING_T t, ZLE_STRING_T f) +{ return (ZLE_STRING_T)strcpy((char*)t, (char*)f); } +static inline ZLE_STRING_T ZS_strncpy(ZLE_STRING_T t, ZLE_STRING_T f, size_t l) +{ return (ZLE_STRING_T)strncpy((char*)t, (char*)f, l); } +static inline int ZS_strncmp(ZLE_STRING_T s1, ZLE_STRING_T s2, size_t l) +{ return strncmp((char*)s1, (char*)s2, l); } #define ZC_iblank iblank #define ZC_icntrl icntrl