/ Check-in [6f79e6ae]
Login

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

Overview
Comment:Change "... myfunction() { ... }" to "... myfunction(void) { ... }" in a few pla ces. Ticket #3783. (CVS 6462)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6f79e6ae0d30948db4ba26bb5b448c15c470464f
User & Date: danielk1977 2009-04-07 11:21:29
Context
2009-04-07
13:48
Only enable WHERE-tracing when both TEST and DEBUG are enabled. (CVS 6463) check-in: 55b93649 user: drh tags: trunk
11:21
Change "... myfunction() { ... }" to "... myfunction(void) { ... }" in a few pla ces. Ticket #3783. (CVS 6462) check-in: 6f79e6ae user: danielk1977 tags: trunk
09:16
Have OP_IdxRowid handle the case where the index entry it is reading from is deleted. (CVS 6461) check-in: cdad29b5 user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/notify.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** This file contains the implementation of the sqlite3_unlock_notify()
    14     14   ** API method and its associated functionality.
    15     15   **
    16         -** $Id: notify.c,v 1.2 2009/03/25 16:51:43 drh Exp $
           16  +** $Id: notify.c,v 1.3 2009/04/07 11:21:29 danielk1977 Exp $
    17     17   */
    18     18   #include "sqliteInt.h"
    19     19   #include "btreeInt.h"
    20     20   
    21     21   /* Omit this entire file if SQLITE_ENABLE_UNLOCK_NOTIFY is not defined. */
    22     22   #ifdef SQLITE_ENABLE_UNLOCK_NOTIFY
    23     23   
................................................................................
   108    108     db->pNextBlocked = *pp;
   109    109     *pp = db;
   110    110   }
   111    111   
   112    112   /*
   113    113   ** Obtain the STATIC_MASTER mutex.
   114    114   */
   115         -static void enterMutex(){
          115  +static void enterMutex(void){
   116    116     sqlite3_mutex_enter(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
   117    117     checkListProperties(0);
   118    118   }
   119    119   
   120    120   /*
   121    121   ** Release the STATIC_MASTER mutex.
   122    122   */
   123         -static void leaveMutex(){
          123  +static void leaveMutex(void){
   124    124     assertMutexHeld();
   125    125     checkListProperties(0);
   126    126     sqlite3_mutex_leave(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
   127    127   }
   128    128   
   129    129   /*
   130    130   ** Register an unlock-notify callback.

Changes to src/test_async.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13         -** $Id: test_async.c,v 1.56 2009/03/28 18:56:14 drh Exp $
           13  +** $Id: test_async.c,v 1.57 2009/04/07 11:21:29 danielk1977 Exp $
    14     14   **
    15     15   ** This file contains an example implementation of an asynchronous IO 
    16     16   ** backend for SQLite.
    17     17   **
    18     18   ** WHAT IS ASYNCHRONOUS I/O?
    19     19   **
    20     20   ** With asynchronous I/O, write requests are handled by a separate thread
................................................................................
   638    638     ** on the write-op queue for it to do.  So wake it up. */
   639    639     pthread_cond_signal(&async.queueSignal);
   640    640   }
   641    641   
   642    642   /*
   643    643   ** Increment async.nFile in a thread-safe manner.
   644    644   */
   645         -static void incrOpenFileCount(){
          645  +static void incrOpenFileCount(void){
   646    646     /* We must hold the queue mutex in order to modify async.nFile */
   647    647     pthread_mutex_lock(&async.queueMutex);
   648    648     if( async.nFile==0 ){
   649    649       async.ioError = SQLITE_OK;
   650    650     }
   651    651     async.nFile++;
   652    652     pthread_mutex_unlock(&async.queueMutex);

Changes to src/test_journal.c.

    11     11   ******************************************************************************
    12     12   **
    13     13   ** This file contains code for a VFS layer that acts as a wrapper around
    14     14   ** an existing VFS. The code in this file attempts to verify that SQLite
    15     15   ** correctly populates and syncs a journal file before writing to a
    16     16   ** corresponding database file.
    17     17   **
    18         -** $Id: test_journal.c,v 1.14 2009/03/28 17:21:52 danielk1977 Exp $
           18  +** $Id: test_journal.c,v 1.15 2009/04/07 11:21:29 danielk1977 Exp $
    19     19   */
    20     20   #if SQLITE_TEST          /* This file is used for testing only */
    21     21   
    22     22   #include "sqlite3.h"
    23     23   #include "sqliteInt.h"
    24     24   
    25     25   /*
................................................................................
   810    810     sqlite3_vfs_register(&jt_vfs, isDefault);
   811    811     return SQLITE_OK;
   812    812   }
   813    813   
   814    814   /*
   815    815   ** Uninstall the jt VFS, if it is installed.
   816    816   */
   817         -void jt_unregister(){
          817  +void jt_unregister(void){
   818    818     sqlite3_vfs_unregister(&jt_vfs);
   819    819   }
   820    820   
   821    821   #endif

Changes to src/test_malloc.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** This file contains code used to implement test interfaces to the
    14     14   ** memory allocation subsystem.
    15     15   **
    16         -** $Id: test_malloc.c,v 1.53 2009/02/04 15:27:40 danielk1977 Exp $
           16  +** $Id: test_malloc.c,v 1.54 2009/04/07 11:21:29 danielk1977 Exp $
    17     17   */
    18     18   #include "sqliteInt.h"
    19     19   #include "tcl.h"
    20     20   #include <stdlib.h>
    21     21   #include <string.h>
    22     22   #include <assert.h>
    23     23   
................................................................................
    45     45     cnt++;
    46     46   }
    47     47   
    48     48   /*
    49     49   ** Check to see if a fault should be simulated.  Return true to simulate
    50     50   ** the fault.  Return false if the fault should not be simulated.
    51     51   */
    52         -static int faultsimStep(){
           52  +static int faultsimStep(void){
    53     53     if( likely(!memfault.enable) ){
    54     54       return 0;
    55     55     }
    56     56     if( memfault.iCountdown>0 ){
    57     57       memfault.iCountdown--;
    58     58       return 0;
    59     59     }
................................................................................
   767    767   
   768    768       pLog->nCall++;
   769    769       pLog->nByte += nByte;
   770    770     }
   771    771   }
   772    772   #endif /* SQLITE_MEMDEBUG */
   773    773   
   774         -static void test_memdebug_log_clear(){
          774  +static void test_memdebug_log_clear(void){
   775    775     Tcl_HashSearch search;
   776    776     Tcl_HashEntry *pEntry;
   777    777     for(
   778    778       pEntry=Tcl_FirstHashEntry(&aMallocLog, &search);
   779    779       pEntry;
   780    780       pEntry=Tcl_NextHashEntry(&search)
   781    781     ){

Changes to src/test_onefile.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13         -** $Id: test_onefile.c,v 1.11 2009/02/10 18:54:03 danielk1977 Exp $
           13  +** $Id: test_onefile.c,v 1.12 2009/04/07 11:21:29 danielk1977 Exp $
    14     14   **
    15     15   ** OVERVIEW:
    16     16   **
    17     17   **   This file contains some example code demonstrating how the SQLite 
    18     18   **   vfs feature can be used to have SQLite operate directly on an 
    19     19   **   embedded media, without using an intermediate file system.
    20     20   **
................................................................................
   806    806   }
   807    807   
   808    808   /*
   809    809   ** This procedure registers the fs vfs with SQLite. If the argument is
   810    810   ** true, the fs vfs becomes the new default vfs. It is the only publicly
   811    811   ** available function in this file.
   812    812   */
   813         -int fs_register(){
          813  +int fs_register(void){
   814    814     if( fs_vfs.pParent ) return SQLITE_OK;
   815    815     fs_vfs.pParent = sqlite3_vfs_find(0);
   816    816     fs_vfs.base.mxPathname = fs_vfs.pParent->mxPathname;
   817    817     fs_vfs.base.szOsFile = MAX(sizeof(tmp_file), sizeof(fs_file));
   818    818     return sqlite3_vfs_register(&fs_vfs.base, 0);
   819    819   }
   820    820   
   821    821   #ifdef SQLITE_TEST
   822    822     int SqlitetestOnefile_Init() {return fs_register();}
   823    823   #endif