Skip to content

Commit

Permalink
Remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
utelle committed Jun 7, 2024
1 parent ec04fad commit d55dcd0
Show file tree
Hide file tree
Showing 12 changed files with 417 additions and 417 deletions.
14 changes: 7 additions & 7 deletions src/carray.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
** ctype TEXT HIDDEN
** );
**
** If the hidden columns "pointer" and "count" are unconstrained, then
** If the hidden columns "pointer" and "count" are unconstrained, then
** the virtual table has no rows. Otherwise, the virtual table interprets
** the integer value of "pointer" as a pointer to the array and "count"
** as the number of elements in the array. The virtual table steps through
Expand All @@ -64,7 +64,7 @@ SQLITE_EXTENSION_INIT1
#else
# include <sys/uio.h>
#endif

/* Allowed values for the mFlags parameter to sqlite3_carray_bind().
** Must exactly match the definitions in carray.h.
*/
Expand Down Expand Up @@ -271,7 +271,7 @@ static int carrayEof(sqlite3_vtab_cursor *cur){
** to the first row of output.
*/
static int carrayFilter(
sqlite3_vtab_cursor *pVtabCursor,
sqlite3_vtab_cursor *pVtabCursor,
int idxNum, const char *idxStr,
int argc, sqlite3_value **argv
){
Expand Down Expand Up @@ -385,7 +385,7 @@ static int carrayBestIndex(
}

/*
** This following structure defines all the methods for the
** This following structure defines all the methods for the
** carray virtual table.
*/
static sqlite3_module carrayModule = {
Expand Down Expand Up @@ -468,7 +468,7 @@ SQLITE_API int sqlite3_carray_bind(
for(i=0; i<nData; i++){
sz += ((struct iovec*)aData)[i].iov_len;
}
}
}
pNew->aData = sqlite3_malloc64( sz );
if( pNew->aData==0 ){
sqlite3_free(pNew);
Expand Down Expand Up @@ -542,8 +542,8 @@ static void inttoptrFunc(
#endif /* SQLITE_OMIT_VIRTUALTABLE */

SQLITE_API int sqlite3_carray_init(
sqlite3 *db,
char **pzErrMsg,
sqlite3 *db,
char **pzErrMsg,
const sqlite3_api_routines *pApi
){
int rc = SQLITE_OK;
Expand Down
20 changes: 10 additions & 10 deletions src/csv.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static int csv_getc(CsvReader *p){
return ((unsigned char*)p->zIn)[p->iIn++];
}

/* Increase the size of p->z and append character c to the end.
/* Increase the size of p->z and append character c to the end.
** Return 0 on success and non-zero if there is an OOM error */
static CSV_NOINLINE int csv_resize_and_append(CsvReader *p, char c){
char *zNew;
Expand Down Expand Up @@ -289,9 +289,9 @@ static char *csv_read_one_field(CsvReader *p){

/* Forward references to the various virtual table methods implemented
** in this file. */
static int csvtabCreate(sqlite3*, void*, int, const char*const*,
static int csvtabCreate(sqlite3*, void*, int, const char*const*,
sqlite3_vtab**,char**);
static int csvtabConnect(sqlite3*, void*, int, const char*const*,
static int csvtabConnect(sqlite3*, void*, int, const char*const*,
sqlite3_vtab**,char**);
static int csvtabBestIndex(sqlite3_vtab*,sqlite3_index_info*);
static int csvtabDisconnect(sqlite3_vtab*);
Expand Down Expand Up @@ -476,7 +476,7 @@ static int csv_boolean_parameter(
** columns=N Assume the CSV file contains N columns.
**
** Only available if compiled with SQLITE_TEST:
**
**
** testflags=N Bitmask of test flags. Optional
**
** If schema= is omitted, then the columns are named "c0", "c1", "c2",
Expand All @@ -503,7 +503,7 @@ static int csvtabConnect(
CsvReader sRdr; /* A CSV file reader used to store an error
** message and/or to count the number of columns */
static const char *azParam[] = {
"filename", "data", "schema",
"filename", "data", "schema",
};
char *azPValue[3]; /* Parameter values */
# define CSV_FILENAME (azPValue[0])
Expand Down Expand Up @@ -805,7 +805,7 @@ static int csvtabEof(sqlite3_vtab_cursor *cur){
** the beginning.
*/
static int csvtabFilter(
sqlite3_vtab_cursor *pVtabCursor,
sqlite3_vtab_cursor *pVtabCursor,
int idxNum, const char *idxStr,
int argc, sqlite3_value **argv
){
Expand Down Expand Up @@ -861,7 +861,7 @@ static int csvtabBestIndex(
unsigned char op;
if( pIdxInfo->aConstraint[i].usable==0 ) continue;
op = pIdxInfo->aConstraint[i].op;
if( op==SQLITE_INDEX_CONSTRAINT_EQ
if( op==SQLITE_INDEX_CONSTRAINT_EQ
|| op==SQLITE_INDEX_CONSTRAINT_LIKE
|| op==SQLITE_INDEX_CONSTRAINT_GLOB
){
Expand Down Expand Up @@ -948,14 +948,14 @@ static sqlite3_module CsvModuleFauxWrite = {
#ifdef _WIN32
__declspec(dllexport)
#endif
/*
/*
** This routine is called when the extension is loaded. The new
** CSV virtual table module is registered with the calling database
** connection.
*/
int sqlite3_csv_init(
sqlite3 *db,
char **pzErrMsg,
sqlite3 *db,
char **pzErrMsg,
const sqlite3_api_routines *pApi
){
#ifndef SQLITE_OMIT_VIRTUALTABLE
Expand Down
30 changes: 15 additions & 15 deletions src/fileio.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
** directory, NULL.
**
** If a non-NULL value is specified for the optional $dir parameter and
** $path is a relative path, then $path is interpreted relative to $dir.
** And the paths returned in the "name" column of the table are also
** $path is a relative path, then $path is interpreted relative to $dir.
** And the paths returned in the "name" column of the table are also
** relative to directory $dir.
**
** Notes on building this extension for Windows:
Expand Down Expand Up @@ -125,7 +125,7 @@ SQLITE_EXTENSION_INIT1


/*
** Set the result stored by context ctx to a blob containing the
** Set the result stored by context ctx to a blob containing the
** contents of file zName. Or, leave the result unchanged (NULL)
** if the file does not exist or is unreadable.
**
Expand Down Expand Up @@ -358,7 +358,7 @@ static int makeDirectory(
}

/*
** This function does the work for the writefile() UDF. Refer to
** This function does the work for the writefile() UDF. Refer to
** header comments at the top of this file for details.
*/
static int writeFile(
Expand Down Expand Up @@ -460,10 +460,10 @@ static int writeFile(
return 1;
}
#else
/* Legacy unix.
/* Legacy unix.
**
** Do not use utimes() on a symbolic link - it sees through the link and
** modifies the timestamps on the target. Or fails if the target does
** modifies the timestamps on the target. Or fails if the target does
** not exist. */
if( 0==S_ISLNK(mode) ){
struct timeval times[2];
Expand All @@ -481,7 +481,7 @@ static int writeFile(
}

/*
** Implementation of the "writefile(W,X[,Y[,Z]]])" SQL function.
** Implementation of the "writefile(W,X[,Y[,Z]]])" SQL function.
** Refer to header comments at the top of this file for details.
*/
static void writefileFunc(
Expand All @@ -495,7 +495,7 @@ static void writefileFunc(
sqlite3_int64 mtime = -1;

if( argc<2 || argc>4 ){
sqlite3_result_error(context,
sqlite3_result_error(context,
"wrong number of arguments to function writefile()", -1
);
return;
Expand Down Expand Up @@ -565,7 +565,7 @@ static void lsModeFunc(

#ifndef SQLITE_OMIT_VIRTUALTABLE

/*
/*
** Cursor type for recursively iterating through a directory structure.
*/
typedef struct fsdir_cursor fsdir_cursor;
Expand Down Expand Up @@ -713,7 +713,7 @@ static int fsdirNext(sqlite3_vtab_cursor *cur){
}
pCur->iLvl = iNew;
pLvl = &pCur->aLvl[iNew];

pLvl->zDir = pCur->zPath;
pCur->zPath = 0;
pLvl->pDir = opendir(pLvl->zDir);
Expand Down Expand Up @@ -844,7 +844,7 @@ static int fsdirEof(sqlite3_vtab_cursor *cur){
** idxNum==2 Both PATH and DIR supplied
*/
static int fsdirFilter(
sqlite3_vtab_cursor *cur,
sqlite3_vtab_cursor *cur,
int idxNum, const char *idxStr,
int argc, sqlite3_value **argv
){
Expand Down Expand Up @@ -933,7 +933,7 @@ static int fsdirBestIndex(
}
break;
}
}
}
}
if( seenPath || seenDir ){
/* If input parameters are unusable, disallow this plan */
Expand Down Expand Up @@ -1005,14 +1005,14 @@ static int fsdirRegister(sqlite3 *db){
__declspec(dllexport)
#endif
int sqlite3_fileio_init(
sqlite3 *db,
char **pzErrMsg,
sqlite3 *db,
char **pzErrMsg,
const sqlite3_api_routines *pApi
){
int rc = SQLITE_OK;
SQLITE_EXTENSION_INIT2(pApi);
(void)pzErrMsg; /* Unused parameter */
rc = sqlite3_create_function(db, "readfile", 1,
rc = sqlite3_create_function(db, "readfile", 1,
SQLITE_UTF8|SQLITE_DIRECTONLY, 0,
readfileFunc, 0, 0);
if( rc==SQLITE_OK ){
Expand Down
12 changes: 6 additions & 6 deletions src/regexp.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ static void re_add_state(ReStateSet *pSet, int newState){

/* Extract the next unicode character from *pzIn and return it. Advance
** *pzIn to the first byte past the end of the character returned. To
** be clear: this routine converts utf8 to unicode. This routine is
** be clear: this routine converts utf8 to unicode. This routine is
** optimized for the common case where the next character is a single byte.
*/
static unsigned re_next_char(ReInput *p){
Expand Down Expand Up @@ -240,7 +240,7 @@ static int re_match(ReCompiled *pRe, const unsigned char *zIn, int nIn){
/* Look for the initial prefix match, if there is one. */
if( pRe->nInit ){
unsigned char x = pRe->zInit[0];
while( in.i+pRe->nInit<=in.mx
while( in.i+pRe->nInit<=in.mx
&& (zIn[in.i]!=x ||
strncmp((const char*)zIn+in.i, (const char*)pRe->zInit, pRe->nInit)!=0)
){
Expand Down Expand Up @@ -710,7 +710,7 @@ static const char *re_compile(ReCompiled **ppRe, const char *zIn, int noCase){
/* The following is a performance optimization. If the regex begins with
** ".*" (if the input regex lacks an initial "^") and afterwards there are
** one or more matching characters, enter those matching characters into
** zInit[]. The re_match() routine can then search ahead in the input
** zInit[]. The re_match() routine can then search ahead in the input
** string looking for the initial match without having to run the whole
** regex engine over the string. Do not worry about trying to match
** unicode characters beyond plane 0 - those are very rare and this is
Expand Down Expand Up @@ -853,14 +853,14 @@ static void re_bytecode_func(
__declspec(dllexport)
#endif
int sqlite3_regexp_init(
sqlite3 *db,
char **pzErrMsg,
sqlite3 *db,
char **pzErrMsg,
const sqlite3_api_routines *pApi
){
int rc = SQLITE_OK;
SQLITE_EXTENSION_INIT2(pApi);
(void)pzErrMsg; /* Unused */
rc = sqlite3_create_function(db, "regexp", 2,
rc = sqlite3_create_function(db, "regexp", 2,
SQLITE_UTF8|SQLITE_INNOCUOUS|SQLITE_DETERMINISTIC,
0, re_sql_func, 0, 0);
if( rc==SQLITE_OK ){
Expand Down
2 changes: 1 addition & 1 deletion src/rijndael.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ typedef unsigned short UINT16;
*/

typedef struct _Rijndael
{
{
int m_state;
int m_mode;
int m_direction;
Expand Down
8 changes: 4 additions & 4 deletions src/series.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ static int seriesBestIndex(
return SQLITE_CONSTRAINT;
}
if( (idxNum & 0x03)==0x03 ){
/* Both start= and stop= boundaries are available. This is the
/* Both start= and stop= boundaries are available. This is the
** the preferred case */
pIdxInfo->estimatedCost = (double)(2 - ((idxNum&4)!=0));
pIdxInfo->estimatedRows = 1000;
Expand All @@ -586,7 +586,7 @@ static int seriesBestIndex(
}

/*
** This following structure defines all the methods for the
** This following structure defines all the methods for the
** generate_series virtual table.
*/
static sqlite3_module seriesModule = {
Expand Down Expand Up @@ -623,8 +623,8 @@ static sqlite3_module seriesModule = {
__declspec(dllexport)
#endif
int sqlite3_series_init(
sqlite3 *db,
char **pzErrMsg,
sqlite3 *db,
char **pzErrMsg,
const sqlite3_api_routines *pApi
){
int rc = SQLITE_OK;
Expand Down
2 changes: 1 addition & 1 deletion src/shathree.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ static unsigned char *SHA3Final(SHA3Context *p){
** Implementation of the sha3(X,SIZE) function.
**
** Return a BLOB which is the SIZE-bit SHA3 hash of X. The default
** size is 256. If X is a BLOB, it is hashed as is.
** size is 256. If X is a BLOB, it is hashed as is.
** For all other non-NULL types of input, X is converted into a UTF-8 string
** and the string is hashed without the trailing 0x00 terminator. The hash
** of a NULL value is NULL.
Expand Down
Loading

0 comments on commit d55dcd0

Please sign in to comment.