Mercurial > games > semicongine
comparison fuhtark_test/include/winapi/uastrfnc.h @ 1500:91c8c3b7cbf0
add: futhark tests for generating vulkan api
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 21:36:48 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1499:1f58458b7ef7 | 1500:91c8c3b7cbf0 |
|---|---|
| 1 /** | |
| 2 * This file has no copyright assigned and is placed in the Public Domain. | |
| 3 * This file is part of the w64 mingw-runtime package. | |
| 4 * No warranty is given; refer to the file DISCLAIMER within this package. | |
| 5 */ | |
| 6 #ifndef _UASTRFNC_H_ | |
| 7 #define _UASTRFNC_H_ | |
| 8 | |
| 9 #ifdef __cplusplus | |
| 10 extern "C" { | |
| 11 #endif | |
| 12 | |
| 13 #ifndef I_X86_ | |
| 14 #define ALIGNMENT_MACHINE | |
| 15 #endif | |
| 16 | |
| 17 #ifdef ALIGNMENT_MACHINE | |
| 18 #define IS_ALIGNED(p) (((ULONG_PTR)(p) & (sizeof(*(p))-1))==0) | |
| 19 | |
| 20 UNALIGNED WCHAR *ualstrcpynW(UNALIGNED WCHAR *lpString1,UNALIGNED const WCHAR *lpString2,int iMaxLength); | |
| 21 int ualstrcmpiW(UNALIGNED const WCHAR *dst,UNALIGNED const WCHAR *src); | |
| 22 int ualstrcmpW(UNALIGNED const WCHAR *src,UNALIGNED const WCHAR *dst); | |
| 23 size_t ualstrlenW(UNALIGNED const WCHAR *wcs); | |
| 24 UNALIGNED WCHAR *ualstrcpyW(UNALIGNED WCHAR *dst,UNALIGNED const WCHAR *src); | |
| 25 #else | |
| 26 #define ualstrcpynW StrCpyNW | |
| 27 #define ualstrcmpiW StrCmpIW | |
| 28 #define ualstrcmpW StrCmpW | |
| 29 #define ualstrlenW lstrlenW | |
| 30 #define ualstrcpyW StrCpyW | |
| 31 #endif | |
| 32 | |
| 33 #define ualstrcpynA lstrcpynA | |
| 34 #define ualstrcmpiA lstrcmpiA | |
| 35 #define ualstrcmpA lstrcmpA | |
| 36 #define ualstrlenA lstrlenA | |
| 37 #define ualstrcpyA lstrcpyA | |
| 38 | |
| 39 #ifdef UNICODE | |
| 40 #define ualstrcpyn ualstrcpynW | |
| 41 #define ualstrcmpi ualstrcmpiW | |
| 42 #define ualstrcmp ualstrcmpW | |
| 43 #define ualstrlen ualstrlenW | |
| 44 #define ualstrcpy ualstrcpyW | |
| 45 #else | |
| 46 #define ualstrcpyn ualstrcpynA | |
| 47 #define ualstrcmpi ualstrcmpiA | |
| 48 #define ualstrcmp ualstrcmpA | |
| 49 #define ualstrlen ualstrlenA | |
| 50 #define ualstrcpy ualstrcpyA | |
| 51 #endif | |
| 52 | |
| 53 #ifdef __cplusplus | |
| 54 } | |
| 55 #endif | |
| 56 #endif |
