-
-
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.c
code) it needs to be explicitly initialized by a call topthread_mutex_init(&mutex_name, NULL)
, which is defined for_WIN32
as a call toInitializeCriticalSectionAndSpinCount((a), 0x80000400),0
; to make it easier for initializing I've made those mutexes non-static and later on introduced viaextern
keyword - original win-3.2.100 port adjusted format strings passed to
sprintf
due 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
long
fields need to be translated to their counterparts (can be easily done with search&replace, but needs to be done in listed order):-
unsigned long long
becomesPORT_ULONGLONG
-
long double
becomesPORT_LONGDOUBLE
-
long long
becomesPORT_LONGLONG
-
long
becomesPORT_LONG
.
-