/ Check-in [17e4fde5]
Login

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

Overview
Comment:Make sure all non-API functions in os_win.c have file scope. Ticket [35c54c874987]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 17e4fde5c541f1bba723386938b6123b2431bffc
User & Date: drh 2011-10-13 14:05:32
Context
2011-10-13
14:18
Adjust the symbols.sh script for STAT3. Add the symbols-mingw.sh script for testing on windows with MinGW. check-in: c41d1d46 user: drh tags: trunk
14:05
Make sure all non-API functions in os_win.c have file scope. Ticket [35c54c874987] check-in: 17e4fde5 user: drh tags: trunk
13:34
Do the ".dump" command inside of a transaction to prevent other processes from modifying the database while the dump is underway. Ticket [2466653295e65] check-in: 1c00d545 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

  2977   2977     free(zConverted);
  2978   2978     return (void*)h;
  2979   2979   }
  2980   2980   static void winDlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
  2981   2981     UNUSED_PARAMETER(pVfs);
  2982   2982     getLastErrorMsg(nBuf, zBufOut);
  2983   2983   }
  2984         -void (*winDlSym(sqlite3_vfs *pVfs, void *pHandle, const char *zSymbol))(void){
         2984  +static void (*winDlSym(sqlite3_vfs *pVfs, void *pHandle, const char *zSymbol))(void){
  2985   2985     UNUSED_PARAMETER(pVfs);
  2986   2986   #if SQLITE_OS_WINCE
  2987   2987     /* The GetProcAddressA() routine is only available on wince. */
  2988   2988     return (void(*)(void))GetProcAddressA((HANDLE)pHandle, zSymbol);
  2989   2989   #else
  2990   2990     /* All other windows platforms expect GetProcAddress() to take
  2991   2991     ** an Ansi string regardless of the _UNICODE setting */
  2992   2992     return (void(*)(void))GetProcAddress((HANDLE)pHandle, zSymbol);
  2993   2993   #endif
  2994   2994   }
  2995         -void winDlClose(sqlite3_vfs *pVfs, void *pHandle){
         2995  +static void winDlClose(sqlite3_vfs *pVfs, void *pHandle){
  2996   2996     UNUSED_PARAMETER(pVfs);
  2997   2997     FreeLibrary((HANDLE)pHandle);
  2998   2998   }
  2999   2999   #else /* if SQLITE_OMIT_LOAD_EXTENSION is defined: */
  3000   3000     #define winDlOpen  0
  3001   3001     #define winDlError 0
  3002   3002     #define winDlSym   0
................................................................................
  3107   3107   }
  3108   3108   
  3109   3109   /*
  3110   3110   ** Find the current time (in Universal Coordinated Time).  Write the
  3111   3111   ** current time and date as a Julian Day number into *prNow and
  3112   3112   ** return 0.  Return 1 if the time and date cannot be found.
  3113   3113   */
  3114         -int winCurrentTime(sqlite3_vfs *pVfs, double *prNow){
         3114  +static int winCurrentTime(sqlite3_vfs *pVfs, double *prNow){
  3115   3115     int rc;
  3116   3116     sqlite3_int64 i;
  3117   3117     rc = winCurrentTimeInt64(pVfs, &i);
  3118   3118     if( !rc ){
  3119   3119       *prNow = i/86400000.0;
  3120   3120     }
  3121   3121     return rc;