1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-24 09:53:10 +03:00

More code obfuscation designed to thwart compiler warning messages. (CVS 6015)

FossilOrigin-Name: 0a1888a7e6fb56e56d8078e7792379d908ba7a70
This commit is contained in:
drh
2008-12-10 23:04:13 +00:00
parent 9c1905fb77
commit 3abbd39a87
6 changed files with 20 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
C Try\sto\sremove\scompiler\swarnings\sfrom\svdbe.c.\s(CVS\s6014) C More\scode\sobfuscation\sdesigned\sto\sthwart\scompiler\swarning\smessages.\s(CVS\s6015)
D 2008-12-10T22:32:56 D 2008-12-10T23:04:13
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in f7e4c81c347b04f7b0f1c1b081a168645d7b8af7 F Makefile.in f7e4c81c347b04f7b0f1c1b081a168645d7b8af7
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -110,7 +110,7 @@ F src/date.c 3dbac3eac2848af416786b6e1e3150f7c740dac6
F src/delete.c e2392b6808496fc0a7f54662af3ba677a3e8e44a F src/delete.c e2392b6808496fc0a7f54662af3ba677a3e8e44a
F src/expr.c f13ad5563470481eaa1e8016bfa9ed1b4c996574 F src/expr.c f13ad5563470481eaa1e8016bfa9ed1b4c996574
F src/fault.c dc88c821842157460750d2d61a8a8b4197d047ff F src/fault.c dc88c821842157460750d2d61a8a8b4197d047ff
F src/func.c 8b5f6807f05f50d88fc4efca5e9541bcf569f988 F src/func.c b0e1c61301f33d67b72ab15d85c80ed76e7c98ac
F src/global.c 91723e45a2ad03ae5bb97a0a0d2dbb1a0e69527b F src/global.c 91723e45a2ad03ae5bb97a0a0d2dbb1a0e69527b
F src/hash.c 831e9c199d8de5976c698e5aca278e2de74ff93b F src/hash.c 831e9c199d8de5976c698e5aca278e2de74ff93b
F src/hash.h 28f38ebb1006a5beedcb013bcdfe31befe7437ae F src/hash.h 28f38ebb1006a5beedcb013bcdfe31befe7437ae
@@ -119,7 +119,7 @@ F src/insert.c f6db1e6f43aae337e64a755208abb6ff124edc19
F src/journal.c cffd2cd214e58c0e99c3ff632b3bee6c7cbb260e F src/journal.c cffd2cd214e58c0e99c3ff632b3bee6c7cbb260e
F src/legacy.c 4f7410b29598d991628ca40b150aa089649f17d8 F src/legacy.c 4f7410b29598d991628ca40b150aa089649f17d8
F src/loadext.c 2f53996c693a347edc2d773e9217dde49d96ae64 F src/loadext.c 2f53996c693a347edc2d773e9217dde49d96ae64
F src/main.c 1bb24c0720080e3258c7a9ed93d42c3da98c18d5 F src/main.c 64857582ae00cc638973cbc47997d25fdbf26cf6
F src/malloc.c 1e5eeb5a3074a6935bbe7b04bc058f630bfffd7e F src/malloc.c 1e5eeb5a3074a6935bbe7b04bc058f630bfffd7e
F src/mem0.c f2f84062d1f35814d6535c9f9e33de3bfb3b132c F src/mem0.c f2f84062d1f35814d6535c9f9e33de3bfb3b132c
F src/mem1.c 3bfb39e4f60b0179713a7c087b2d4f0dc205735f F src/mem1.c 3bfb39e4f60b0179713a7c087b2d4f0dc205735f
@@ -145,7 +145,7 @@ F src/parse.y 3dfd941533cdc6ce0b09b905b25c4eb73858400b
F src/pcache.c 16dc8da6e6ba6250f8dfd9ee46036db1cbceedc6 F src/pcache.c 16dc8da6e6ba6250f8dfd9ee46036db1cbceedc6
F src/pcache.h f20c3e82dd6da622c3fe296170cb1801f9a2d75a F src/pcache.h f20c3e82dd6da622c3fe296170cb1801f9a2d75a
F src/pcache1.c 533b18aa2456b0f135e376289443e0a342e0c456 F src/pcache1.c 533b18aa2456b0f135e376289443e0a342e0c456
F src/pragma.c c77ac9952d0a273de003e40cac0278af31e8d5f5 F src/pragma.c d6dfc47979623cf593d0db926daff49d214a8eb3
F src/prepare.c 51d11eb1eece7548038e7e33c33ee95dc7f82e2d F src/prepare.c 51d11eb1eece7548038e7e33c33ee95dc7f82e2d
F src/printf.c 9866a9a9c4a90f6d4147407f373df3fd5d5f9b6f F src/printf.c 9866a9a9c4a90f6d4147407f373df3fd5d5f9b6f
F src/random.c 676b9d7ac820fe81e6fb2394ac8c10cff7f38628 F src/random.c 676b9d7ac820fe81e6fb2394ac8c10cff7f38628
@@ -642,7 +642,7 @@ F tool/genfkey.README 080ca2269f727fcf14c8e76d52e85d157e3a8e9a
F tool/genfkey.c e1b9c93da828db10c1109c7b4fa611aec8adc407 F tool/genfkey.c e1b9c93da828db10c1109c7b4fa611aec8adc407
F tool/genfkey.test 182829596fb15785b94b2493c5f735b847d91076 F tool/genfkey.test 182829596fb15785b94b2493c5f735b847d91076
F tool/lemon.c 9f21067ff5f0ba1780d39a069da65d54789ae15b F tool/lemon.c 9f21067ff5f0ba1780d39a069da65d54789ae15b
F tool/lempar.c fece0da829c0e425f13e6da1671619bed43d0f70 F tool/lempar.c 8b91df351eb612c1d30b6bbd1224c2153b5dd941
F tool/memleak.awk 4e7690a51bf3ed757e611273d43fe3f65b510133 F tool/memleak.awk 4e7690a51bf3ed757e611273d43fe3f65b510133
F tool/memleak2.awk 9cc20c8e8f3c675efac71ea0721ee6874a1566e8 F tool/memleak2.awk 9cc20c8e8f3c675efac71ea0721ee6874a1566e8
F tool/memleak3.tcl 7707006ee908cffff210c98158788d85bb3fcdbf F tool/memleak3.tcl 7707006ee908cffff210c98158788d85bb3fcdbf
@@ -664,7 +664,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224 F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
P 715dcd52c1372c62873cff5db97fdbdfce617808 P 50352950df5d5a8b7da8c18b6667b8242a359f7d
R 0f99e848da66cc92e6476870d8914a43 R 08b81fae14acbda8dbae9057ab66ca39
U drh U drh
Z 6df9968b324418ad895c6522dab08551 Z fda37b4935fd54d9a340ba2d7b6cddb0

View File

@@ -1 +1 @@
50352950df5d5a8b7da8c18b6667b8242a359f7d 0a1888a7e6fb56e56d8078e7792379d908ba7a70

View File

@@ -16,7 +16,7 @@
** sqliteRegisterBuildinFunctions() found at the bottom of the file. ** sqliteRegisterBuildinFunctions() found at the bottom of the file.
** All other code has file scope. ** All other code has file scope.
** **
** $Id: func.c,v 1.208 2008/12/10 21:19:57 drh Exp $ ** $Id: func.c,v 1.209 2008/12/10 23:04:13 drh Exp $
*/ */
#include "sqliteInt.h" #include "sqliteInt.h"
#include <ctype.h> #include <ctype.h>
@@ -915,7 +915,7 @@ static void trimFunc(
for(z=zCharSet, nChar=0; *z; nChar++){ for(z=zCharSet, nChar=0; *z; nChar++){
azChar[nChar] = (unsigned char *)z; azChar[nChar] = (unsigned char *)z;
SQLITE_SKIP_UTF8(z); SQLITE_SKIP_UTF8(z);
aLen[nChar] = (int)(z - azChar[nChar]); aLen[nChar] = (u8)(z - azChar[nChar]);
} }
} }
} }

View File

@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be ** other files are for internal use by SQLite and should not be
** accessed by users of the library. ** accessed by users of the library.
** **
** $Id: main.c,v 1.518 2008/12/10 21:19:57 drh Exp $ ** $Id: main.c,v 1.519 2008/12/10 23:04:13 drh Exp $
*/ */
#include "sqliteInt.h" #include "sqliteInt.h"
#include <ctype.h> #include <ctype.h>
@@ -920,7 +920,7 @@ int sqlite3CreateFunc(
** is being overridden/deleted but there are no active VMs, allow the ** is being overridden/deleted but there are no active VMs, allow the
** operation to continue but invalidate all precompiled statements. ** operation to continue but invalidate all precompiled statements.
*/ */
p = sqlite3FindFunction(db, zFunctionName, nName, (u16)nArg, enc, 0); p = sqlite3FindFunction(db, zFunctionName, nName, nArg, (u8)enc, 0);
if( p && p->iPrefEnc==enc && p->nArg==nArg ){ if( p && p->iPrefEnc==enc && p->nArg==nArg ){
if( db->activeVdbeCnt ){ if( db->activeVdbeCnt ){
sqlite3Error(db, SQLITE_BUSY, sqlite3Error(db, SQLITE_BUSY,
@@ -932,7 +932,7 @@ int sqlite3CreateFunc(
} }
} }
p = sqlite3FindFunction(db, zFunctionName, nName, (u16)nArg, enc, 1); p = sqlite3FindFunction(db, zFunctionName, nName, nArg, (u8)enc, 1);
assert(p || db->mallocFailed); assert(p || db->mallocFailed);
if( !p ){ if( !p ){
return SQLITE_NOMEM; return SQLITE_NOMEM;

View File

@@ -11,7 +11,7 @@
************************************************************************* *************************************************************************
** This file contains code used to implement the PRAGMA command. ** This file contains code used to implement the PRAGMA command.
** **
** $Id: pragma.c,v 1.198 2008/12/10 22:15:00 drh Exp $ ** $Id: pragma.c,v 1.199 2008/12/10 23:04:13 drh Exp $
*/ */
#include "sqliteInt.h" #include "sqliteInt.h"
#include <ctype.h> #include <ctype.h>
@@ -38,7 +38,7 @@ static u8 getSafetyLevel(const char *z){
static const u8 iValue[] = {1, 0, 0, 0, 1, 1, 2}; static const u8 iValue[] = {1, 0, 0, 0, 1, 1, 2};
int i, n; int i, n;
if( isdigit(*z) ){ if( isdigit(*z) ){
return atoi(z); return (u8)atoi(z);
} }
n = sqlite3Strlen30(z); n = sqlite3Strlen30(z);
for(i=0; i<ArraySize(iLength); i++){ for(i=0; i<ArraySize(iLength); i++){

View File

@@ -62,7 +62,7 @@
/* The yyzerominor constant is used to initialize instances of /* The yyzerominor constant is used to initialize instances of
** YYMINORTYPE objects to zero. */ ** YYMINORTYPE objects to zero. */
#ifdef __cplusplus #if 1
static YYMINORTYPE yyzerominor; static YYMINORTYPE yyzerominor;
#else #else
static const YYMINORTYPE yyzerominor; static const YYMINORTYPE yyzerominor;
@@ -584,7 +584,7 @@ static void yy_reduce(
yygoto = yyRuleInfo[yyruleno].lhs; yygoto = yyRuleInfo[yyruleno].lhs;
yysize = yyRuleInfo[yyruleno].nrhs; yysize = yyRuleInfo[yyruleno].nrhs;
yypParser->yyidx -= yysize; yypParser->yyidx -= yysize;
yyact = yy_find_reduce_action(yymsp[-yysize].stateno,yygoto); yyact = yy_find_reduce_action(yymsp[-yysize].stateno,(YYCODETYPE)yygoto);
if( yyact < YYNSTATE ){ if( yyact < YYNSTATE ){
#ifdef NDEBUG #ifdef NDEBUG
/* If we are not debugging and the reduce action popped at least /* If we are not debugging and the reduce action popped at least
@@ -720,7 +720,7 @@ void Parse(
#endif #endif
do{ do{
yyact = yy_find_shift_action(yypParser,yymajor); yyact = yy_find_shift_action(yypParser,(YYCODETYPE)yymajor);
if( yyact<YYNSTATE ){ if( yyact<YYNSTATE ){
assert( !yyendofinput ); /* Impossible to shift the $ token */ assert( !yyendofinput ); /* Impossible to shift the $ token */
yy_shift(yypParser,yyact,yymajor,&yyminorunion); yy_shift(yypParser,yyact,yymajor,&yyminorunion);