X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fstkstring.h;h=6ce9b6675b5aa1a8a8d6fbc3020893e578785a37;hb=77c84c65dc22afe21bc52d95cd3996b8e1c7d065;hp=62f9a514b9200fed4b6e2eb4fef8f4ebcf3ad4f1;hpb=fa7aa6d9457616ce28f97c83eaa616d0ff276870;p=libucw.git diff --git a/ucw/stkstring.h b/ucw/stkstring.h index 62f9a514..6ce9b667 100644 --- a/ucw/stkstring.h +++ b/ucw/stkstring.h @@ -17,6 +17,15 @@ #include #include +#ifdef CONFIG_UCW_CLEAN_ABI +#define stk_array_join ucw_stk_array_join +#define stk_array_len ucw_stk_array_len +#define stk_fsize_internal ucw_stk_fsize_internal +#define stk_hexdump_internal ucw_stk_hexdump_internal +#define stk_printf_internal ucw_stk_printf_internal +#define stk_vprintf_internal ucw_stk_vprintf_internal +#endif + #define stk_strdup(s) ({ const char *_s=(s); uns _l=strlen(_s)+1; char *_x=alloca(_l); memcpy(_x, _s, _l); _x; }) #define stk_strndup(s,n) ({ const char *_s=(s); uns _l=strnlen(_s,(n)); char *_x=alloca(_l+1); memcpy(_x, _s, _l); _x[_l]=0; _x; }) #define stk_strcat(s1,s2) ({ const char *_s1=(s1); const char *_s2=(s2); uns _l1=strlen(_s1); uns _l2=strlen(_s2); char *_x=alloca(_l1+_l2+1); memcpy(_x,_s1,_l1); memcpy(_x+_l1,_s2,_l2+1); _x; })