-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Home
TAEWON-CHOI edited this page Jan 9, 2023
·
4 revisions
Notes about code changes in this port:
- each time a mutex is used (i.e. by
zmalloc.ccode) it needs to be explicitly initialized by a call topthread_mutex_init(&mutex_name, NULL), which is defined for_WIN32as a call toInitializeCriticalSectionAndSpinCount((a), 0x80000400),0; to make it easier for initializing I've made those mutexes non-static and later on introduced viaexternkeyword - original win-3.2.100 port adjusted format strings passed to
sprintfdue to a different convention for integer/long types, so each new code migrated from Redis needs to be reviewed (%ld->%Id,%lu->%Iu,%zu->%Iu,%jd->%lld, etc.) - similarly
longfields need to be translated to their counterparts (can be easily done with search&replace, but needs to be done in listed order):-
unsigned long longbecomesPORT_ULONGLONG -
long doublebecomesPORT_LONGDOUBLE -
long longbecomesPORT_LONGLONG -
longbecomesPORT_LONG.
-