/* * $Id: misc.h,v 1.2 2005-05-19 16:41:10 bacon Exp $ */ #ifndef _XP_STX_MISC_H_ #define _XP_STX_MISC_H_ #include #ifdef _DOS #include #include #include #define xp_stx_assert assert #define xp_stx_malloc malloc #define xp_stx_realloc realloc #define xp_stx_free free #define xp_stx_va_list va_list #define xp_stx_va_start va_start #define xp_stx_va_end va_end #define xp_stx_va_arg va_arg #else #include #include #include #define xp_stx_assert xp_assert #define xp_stx_malloc xp_malloc #define xp_stx_realloc xp_realloc #define xp_stx_free xp_free #define xp_stx_va_list xp_va_list #define xp_stx_va_start xp_va_start #define xp_stx_va_end xp_va_end #define xp_stx_va_arg xp_va_arg #endif #ifdef __cplusplus extern "C" { #endif xp_stx_word_t xp_stx_strlen (const xp_stx_char_t* str); int xp_stx_strcmp ( const xp_stx_char_t* s1, const xp_stx_char_t* s2); int xp_stx_strxcmp ( const xp_stx_char_t* s1, xp_stx_word_t len, const xp_stx_char_t* s2); xp_stx_word_t xp_stx_strhash (const xp_stx_char_t* str); xp_stx_word_t xp_stx_strxhash (const xp_stx_char_t* str, xp_stx_word_t len); #ifdef __cplusplus } #endif #endif