Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Change conditional tests from WIN32 to _WIN32 for lsqlite_temp_directory. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fsl_9x | trunk |
Files: | files | file ages | folders |
SHA1: |
6fc7943d1de94c973c0577d0ceff8096 |
User & Date: | e 2016-11-15 17:53:59 |
Context
2018-06-30
| ||
17:23 | Update for Lua 5.4 and SQLite 3.24.0 check-in: 21ab5cda4d user: e tags: trunk | |
2016-11-15
| ||
17:53 | Change conditional tests from WIN32 to _WIN32 for lsqlite_temp_directory. check-in: 6fc7943d1d user: e tags: fsl_9x, trunk | |
2016-11-14
| ||
14:18 | Documentation updates. check-in: f294c77828 user: e tags: trunk | |
Changes
Changes to lsqlite3.c.
2044 2044 2045 2045 static int lsqlite_complete(lua_State *L) { 2046 2046 const char *sql = luaL_checkstring(L, 1); 2047 2047 lua_pushboolean(L, sqlite3_complete(sql)); 2048 2048 return 1; 2049 2049 } 2050 2050 2051 -#ifndef WIN32 2051 +#ifndef _WIN32 2052 2052 static int lsqlite_temp_directory(lua_State *L) { 2053 2053 const char *oldtemp = sqlite3_temp_directory; 2054 2054 2055 2055 if (!lua_isnone(L, 1)) { 2056 2056 const char *temp = luaL_optstring(L, 1, NULL); 2057 2057 if (sqlite3_temp_directory) { 2058 2058 sqlite3_free((char*)sqlite3_temp_directory); ................................................................................ 2345 2345 {NULL, NULL} 2346 2346 }; 2347 2347 2348 2348 static const luaL_Reg sqlitelib[] = { 2349 2349 {"lversion", lsqlite_lversion }, 2350 2350 {"version", lsqlite_version }, 2351 2351 {"complete", lsqlite_complete }, 2352 -#ifndef WIN32 2352 +#ifndef _WIN32 2353 2353 {"temp_directory", lsqlite_temp_directory }, 2354 2354 #endif 2355 2355 {"open", lsqlite_open }, 2356 2356 {"open_memory", lsqlite_open_memory }, 2357 2357 {"open_ptr", lsqlite_open_ptr }, 2358 2358 2359 2359 {"backup_init", lsqlite_backup_init },