[MSCTF][CICERO][DOC] Fork MSCTF from Wine (#8245)

JIRA issue: CORE-19361
- Delete msctf.c and add msctf.cpp.
- Modify precomp.h and enable precompiled header.
- Modify media/doc/WINESYNC.txt.
- Add cicMemReCalloc function to cicero.
This commit is contained in:
Katayama Hirofumi MZ 2025-07-13 18:30:42 +09:00 committed by GitHub
parent 853b446e38
commit a18a5734ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 539 additions and 759 deletions

View file

@ -17,19 +17,26 @@ static inline LPVOID cicMemAllocClear(SIZE_T size)
return LocalAlloc(LMEM_ZEROINIT, size);
}
static inline LPVOID cicMemReAlloc(LPVOID ptr, SIZE_T newSize)
{
if (!ptr)
return LocalAlloc(LMEM_ZEROINIT, newSize);
return LocalReAlloc(ptr, newSize, LMEM_ZEROINIT);
}
static inline void cicMemFree(LPVOID ptr)
{
if (ptr)
LocalFree(ptr);
}
static inline LPVOID cicMemReAlloc(LPVOID ptr, SIZE_T newSize)
{
if (!newSize)
{
cicMemFree(ptr);
return NULL;
}
if (!ptr)
return LocalAlloc(LMEM_ZEROINIT, newSize);
return LocalReAlloc(ptr, newSize, LMEM_ZEROINIT | LMEM_MOVEABLE);
}
LPVOID cicMemReCalloc(LPVOID mem, SIZE_T num, SIZE_T size) noexcept;
static inline bool cicIsNullPtr(LPCVOID ptr)
{
return !ptr;