/ Check-in [d0f6973d]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Improve a local variable name.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | lsm-vtab
Files: files | file ages | folders
SHA3-256: d0f6973d93c36451bf64f47de9a88abec613a624603033bf6717f5071139b6d2
User & Date: mistachkin 2017-06-27 22:33:06
Context
2017-06-28
21:36
Implement xLock and xTestLock for lsm1 on Win32. check-in: 9112117d user: mistachkin tags: lsm-vtab
2017-06-27
22:33
Improve a local variable name. check-in: d0f6973d user: mistachkin tags: lsm-vtab
22:27
Initial work on porting lsmtest to Win32. check-in: 7e669d9b user: mistachkin tags: lsm-vtab
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/lsm1/lsm-test/lsmtest_win32.c.

     9      9   
    10     10   int win32GetTimeOfDay(
    11     11     struct timeval *tp,
    12     12     void *tzp
    13     13   ){
    14     14     FILETIME fileTime;
    15     15     ULARGE_INTEGER largeInteger;
    16         -  ULONGLONG temp;
           16  +  ULONGLONG ticks;
    17     17   
    18     18     unused_parameter(tzp);
    19     19     memset(&fileTime, 0, sizeof(FILETIME));
    20     20     GetSystemTimeAsFileTime(&fileTime);
    21     21     memset(&largeInteger, 0, sizeof(ULARGE_INTEGER));
    22     22     largeInteger.LowPart = fileTime.dwLowDateTime;
    23     23     largeInteger.HighPart = fileTime.dwHighDateTime;
    24         -  temp = largeInteger.QuadPart - TICKS_UNIX_EPOCH;
    25         -  tp->tv_sec = (long)(temp / TICKS_PER_SECOND);
    26         -  temp -= ((ULONGLONG)tp->tv_sec * TICKS_PER_SECOND);
    27         -  tp->tv_usec = (long)(temp / TICKS_PER_MICROSECOND);
           24  +  ticks = largeInteger.QuadPart - TICKS_UNIX_EPOCH;
           25  +  tp->tv_sec = (long)(ticks / TICKS_PER_SECOND);
           26  +  ticks -= ((ULONGLONG)tp->tv_sec * TICKS_PER_SECOND);
           27  +  tp->tv_usec = (long)(ticks / TICKS_PER_MICROSECOND);
    28     28     return 0;
    29     29   }
    30     30   #endif