1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00
os-k/kaleid/include/base/masks.h

131 lines
3.2 KiB
C
Raw Normal View History

2019-01-21 15:00:04 +01:00
//----------------------------------------------------------------------------//
// GNU GPL OS/K //
// //
// Authors: spectral` //
// NeoX //
// //
// Desc: Masks for the functions in the KCRL //
//----------------------------------------------------------------------------//
#ifndef _KALBASE_MASKS_H
#define _KALBASE_MASKS_H
//------------------------------------------//
#define div_t _osk_div_t
#define ldiv_t _osk_ldiv_t
//------------------------------------------//
#define memset _osk_memsetb
#define memchr _osk_memchrb
#define memsetb _osk_memsetb
#define memsetw _osk_memsetw
#define memsetd _osk_memsetd
#define memsetq _osk_memsetq
#define memchr _osk_memchrb
#define memchrw _osk_memchrw
#define memchrd _osk_memchrd
#define memchrq _osk_memchrq
#define memcpy _osk_memcpy
#define memmove _osk_memmove
#define memcmp _osk_memcmp
#define memzero _osk_memzero
//------------------------------------------//
2019-02-06 14:07:38 +01:00
#undef strspn
#undef strcspn
2019-01-21 15:00:04 +01:00
#define strlen _osk_strlen
#define strspn _osk_strspn
#define strcspn _osk_strcspn
2019-02-06 14:07:38 +01:00
#undef strcmp
#undef strncmp
2019-01-21 15:00:04 +01:00
#define strcmp _osk_strcmp
#define strncmp _osk_strncmp
2019-02-06 14:07:38 +01:00
#undef strchr
#undef strrchr
2019-01-21 15:00:04 +01:00
#define strchr _osk_strchr
#define strrchr _osk_strrchr
2019-02-06 14:07:38 +01:00
#undef strstr
#undef strpbrk
2019-01-21 15:00:04 +01:00
#define strstr _osk_strstr
#define strpbrk _osk_strpbrk
2019-02-06 14:07:38 +01:00
#undef strtok
#undef strtok_r
2019-01-21 15:00:04 +01:00
#define strtok _osk_strtok
#define strtok_r _osk_strtok_r
2019-02-06 14:07:38 +01:00
#undef strcpy
#undef strncpy
2019-01-21 15:00:04 +01:00
#define strcpy _osk_strcpy
#define strncpy _osk_strncpy
#define strnzcpy _osk_strnzcpy
2019-02-06 14:07:38 +01:00
#undef strcat
#undef strncat
2019-01-21 15:00:04 +01:00
#define strcat _osk_strcat
#define strncat _osk_strncat
#define strnzcat _osk_strnzcat
#define strrev _osk_strrev
#define strrev2 _osk_strrev2
#define sprintf _osk_sprintf
#define snprintf _osk_snprintf
#define vsprintf _osk_vsprintf
#define vsnprintf _osk_vsnprintf
//------------------------------------------//
#define itoa _osk_itoa
#define ltoa _osk_ltoa
#define utoa _osk_utoa
#define ultoa _osk_ultoa
#define atoi _osk_atoi
#define atol _osk_atol
#define atou _osk_atou
#define atoul _osk_atoul
#define strtol _osk_strtol
#define strtoul _osk_strtoul
//------------------------------------------//
#define rand _osk_rand
#define srand _osk_srand
//------------------------------------------//
#define abs _osk_abs
#define labs _osk_labs
#define min _osk_min
#define lmin _osk_lmin
#define max _osk_max
#define lmax _osk_lmax
#define __div
#define __ldiv
#define div _osk_div
#define ldiv _osk_ldiv
//------------------------------------------//
#define strerror _osk_strerror
//------------------------------------------//
#endif