Index: src/main.c ================================================================== --- src/main.c +++ src/main.c @@ -12,11 +12,11 @@ ** Main file for the SQLite library. The routines in this file ** implement the programmer interface to the library. Routines in ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** -** $Id: main.c,v 1.364 2007/03/30 07:10:51 danielk1977 Exp $ +** $Id: main.c,v 1.365 2007/03/30 11:29:32 drh Exp $ */ #include "sqliteInt.h" #include "os.h" #include @@ -38,10 +38,20 @@ ** SQLITE_ENABLE_IOTRACE is enabled, then messages describing ** I/O active are written using this function. These messages ** are intended for debugging activity only. */ void (*sqlite3_io_trace)(const char*, ...) = 0; + +/* +** If the following global variable points to a string which is the +** name of a directory, then that directory will be used to store +** temporary files. +** +** See also the "PRAGMA temp_store_directory" SQL command. +*/ +char *sqlite3_temp_directory = 0; + /* ** This is the default collating function named "BINARY" which is always ** available. */ Index: src/os_os2.c ================================================================== --- src/os_os2.c +++ src/os_os2.c @@ -222,17 +222,10 @@ const char *zDirname ){ return SQLITE_OK; } -/* -** If the following global variable points to a string which is the -** name of a directory, then that directory will be used to store -** temporary files. -*/ -char *sqlite3_temp_directory = 0; - /* ** Create a temporary file name in zBuf. zBuf must be big enough to ** hold at least SQLITE_TEMPNAME_SIZE characters. */ int sqlite3Os2TempFileName( char *zBuf ){ Index: src/os_unix.c ================================================================== --- src/os_unix.c +++ src/os_unix.c @@ -929,19 +929,10 @@ } OSTRACE3("OPENDIR %-3d %s\n", pFile->dirfd, zDirname); return SQLITE_OK; } -/* -** If the following global variable points to a string which is the -** name of a directory, then that directory will be used to store -** temporary files. -** -** See also the "PRAGMA temp_store_directory" SQL command. -*/ -char *sqlite3_temp_directory = 0; - /* ** Create a temporary file name in zBuf. zBuf must be big enough to ** hold at least SQLITE_TEMPNAME_SIZE characters. */ int sqlite3UnixTempFileName(char *zBuf){ Index: src/os_win.c ================================================================== --- src/os_win.c +++ src/os_win.c @@ -896,17 +896,10 @@ const char *zDirname ){ return SQLITE_OK; } -/* -** If the following global variable points to a string which is the -** name of a directory, then that directory will be used to store -** temporary files. -*/ -char *sqlite3_temp_directory = 0; - /* ** Create a temporary file name in zBuf. zBuf must be big enough to ** hold at least SQLITE_TEMPNAME_SIZE characters. */ int sqlite3WinTempFileName(char *zBuf){