mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-08 03:22:21 +03:00
Change the name of sqlite3_atoi64 back to sqlite3Atoi64 so that it is clearly
and internal API. Modify the amalgamation to use a macro SQLITE_PRIVATE instead of the keyword "static" so the macro can be overridden to by nothing. (CVS 4124) FossilOrigin-Name: 96190cf13dd7219f483308fea92d703328aac4c7
This commit is contained in:
22
manifest
22
manifest
@@ -1,5 +1,5 @@
|
|||||||
C Rework\sthe\sstring\sto\sinteger\sconversion\slogic\sto\saddress\stickets\n#2344\sand\s#2454.\s(CVS\s4123)
|
C Change\sthe\sname\sof\ssqlite3_atoi64\sback\sto\ssqlite3Atoi64\sso\sthat\sit\sis\sclearly\nand\sinternal\sAPI.\s\sModify\sthe\samalgamation\sto\suse\sa\smacro\sSQLITE_PRIVATE\ninstead\sof\sthe\skeyword\s"static"\sso\sthe\smacro\scan\sbe\soverridden\sto\sby\snothing.\s(CVS\s4124)
|
||||||
D 2007-06-25T17:28:01
|
D 2007-06-26T00:37:28
|
||||||
F Makefile.in 7f7485a4cc039476a42e534b3f26ec90e2f9753e
|
F Makefile.in 7f7485a4cc039476a42e534b3f26ec90e2f9753e
|
||||||
F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935
|
F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935
|
||||||
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
|
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
|
||||||
@@ -109,11 +109,11 @@ F src/server.c 087b92a39d883e3fa113cae259d64e4c7438bc96
|
|||||||
F src/shell.c 4b0fc3c76a9f23a1c963e01703c0fbbca1b5c34d
|
F src/shell.c 4b0fc3c76a9f23a1c963e01703c0fbbca1b5c34d
|
||||||
F src/sqlite.h.in 6f290b660b2e7c3359968bb4b344ec31a1178746
|
F src/sqlite.h.in 6f290b660b2e7c3359968bb4b344ec31a1178746
|
||||||
F src/sqlite3ext.h 95575e0d175a0271fe2c3232c0d11e8720ed6887
|
F src/sqlite3ext.h 95575e0d175a0271fe2c3232c0d11e8720ed6887
|
||||||
F src/sqliteInt.h 475c538baf1105c00ae50c3564dbd20159418f9b
|
F src/sqliteInt.h db7e6fafc4c2d02eaebdd1c94aa235f0b5cc1892
|
||||||
F src/sqliteLimit.h f14609c27636ebc217c9603ade26dbdd7d0f6afa
|
F src/sqliteLimit.h f14609c27636ebc217c9603ade26dbdd7d0f6afa
|
||||||
F src/table.c a8de75bcedf84d4060d804264b067ab3b1a3561d
|
F src/table.c a8de75bcedf84d4060d804264b067ab3b1a3561d
|
||||||
F src/tclsqlite.c 4bffe56752d2c24ade23340e46a91fd92c316e08
|
F src/tclsqlite.c 4bffe56752d2c24ade23340e46a91fd92c316e08
|
||||||
F src/test1.c 9017dab5bfe2b22e9bc8e81ba999a8ae22c61976
|
F src/test1.c 0024d7069ecabe0ccc4e2f491e4a43ed5d3f4196
|
||||||
F src/test2.c 24458b17ab2f3c90cbc1c8446bd7ffe69be62f88
|
F src/test2.c 24458b17ab2f3c90cbc1c8446bd7ffe69be62f88
|
||||||
F src/test3.c a280931fb40222b7c90da45eea926459beee8904
|
F src/test3.c a280931fb40222b7c90da45eea926459beee8904
|
||||||
F src/test4.c 8b784cd82de158a2317cb4ac4bc86f91ad315e25
|
F src/test4.c 8b784cd82de158a2317cb4ac4bc86f91ad315e25
|
||||||
@@ -136,16 +136,16 @@ F src/tokenize.c 6cef9e6fc454d789a32c5b509ccb193a2b01977b
|
|||||||
F src/trigger.c 420192efe3e6f03addf7897c60c3c8bf913d3493
|
F src/trigger.c 420192efe3e6f03addf7897c60c3c8bf913d3493
|
||||||
F src/update.c 6b10becb6235ea314ed245fbfbf8b38755e3166e
|
F src/update.c 6b10becb6235ea314ed245fbfbf8b38755e3166e
|
||||||
F src/utf.c 01b2aba02b10d12903e9e1ff897215c9faf6b662
|
F src/utf.c 01b2aba02b10d12903e9e1ff897215c9faf6b662
|
||||||
F src/util.c f58a68d062608eeed6d8229bb22a61b87e530d68
|
F src/util.c 9e81d417fc60bd2fe156f8f2317aa4845bc6cc90
|
||||||
F src/vacuum.c 8bd895d29e7074e78d4e80f948e35ddc9cf2beef
|
F src/vacuum.c 8bd895d29e7074e78d4e80f948e35ddc9cf2beef
|
||||||
F src/vdbe.c 251e0121040768fd801920cfecbcb159a891d4af
|
F src/vdbe.c 99f53a0aa8db4fe7fa867a24446bdd7deed191c4
|
||||||
F src/vdbe.h 001c5b257567c1d3de7feb2203aac71d0d7b16a3
|
F src/vdbe.h 001c5b257567c1d3de7feb2203aac71d0d7b16a3
|
||||||
F src/vdbeInt.h 7d2bf163d6d4e815724a457f2216dd8e38c3955c
|
F src/vdbeInt.h 7d2bf163d6d4e815724a457f2216dd8e38c3955c
|
||||||
F src/vdbeapi.c 7930b9a188ab385287ca3eb3840af7225cb43549
|
F src/vdbeapi.c 7930b9a188ab385287ca3eb3840af7225cb43549
|
||||||
F src/vdbeaux.c c580d3605edc2c24ba9bd26fa7aa8b4fff10daa4
|
F src/vdbeaux.c c580d3605edc2c24ba9bd26fa7aa8b4fff10daa4
|
||||||
F src/vdbeblob.c 96f3572fdc45eda5be06e6372b612bc30742d9f0
|
F src/vdbeblob.c 96f3572fdc45eda5be06e6372b612bc30742d9f0
|
||||||
F src/vdbefifo.c 3ca8049c561d5d67cbcb94dc909ae9bb68c0bf8f
|
F src/vdbefifo.c 3ca8049c561d5d67cbcb94dc909ae9bb68c0bf8f
|
||||||
F src/vdbemem.c 327944e70cd807c81705e0d81f9417e89f2c563c
|
F src/vdbemem.c ca4d3994507cb0a9504820293af69f5c778b4abd
|
||||||
F src/vtab.c 51d43cda45d25e6f3a15d19fe32992b7756e74db
|
F src/vtab.c 51d43cda45d25e6f3a15d19fe32992b7756e74db
|
||||||
F src/where.c 12387641659605318ae03d87f0687f223dfc9568
|
F src/where.c 12387641659605318ae03d87f0687f223dfc9568
|
||||||
F tclinstaller.tcl 4356d9d94d2b5ed5e68f9f0c80c4df3048dd7617
|
F tclinstaller.tcl 4356d9d94d2b5ed5e68f9f0c80c4df3048dd7617
|
||||||
@@ -446,7 +446,7 @@ F tool/memleak2.awk 9cc20c8e8f3c675efac71ea0721ee6874a1566e8
|
|||||||
F tool/memleak3.tcl 7707006ee908cffff210c98158788d85bb3fcdbf
|
F tool/memleak3.tcl 7707006ee908cffff210c98158788d85bb3fcdbf
|
||||||
F tool/mkkeywordhash.c fe15d1cbc61c2b0375634b6d8c1ef24520799ea0
|
F tool/mkkeywordhash.c fe15d1cbc61c2b0375634b6d8c1ef24520799ea0
|
||||||
F tool/mkopts.tcl 66ac10d240cc6e86abd37dc908d50382f84ff46e x
|
F tool/mkopts.tcl 66ac10d240cc6e86abd37dc908d50382f84ff46e x
|
||||||
F tool/mksqlite3c.tcl 92ed1980d3e35740ed23f2f60d25433b891b5c8b
|
F tool/mksqlite3c.tcl 3c062ba144060fdf9ac40f846570311dd75d70bf
|
||||||
F tool/mksqlite3internalh.tcl 47737a925fb02fce43e2c0a14b3cc17574a4d44a
|
F tool/mksqlite3internalh.tcl 47737a925fb02fce43e2c0a14b3cc17574a4d44a
|
||||||
F tool/omittest.tcl e6b3d6a1285f9813bc1dea53bb522b4b72774710
|
F tool/omittest.tcl e6b3d6a1285f9813bc1dea53bb522b4b72774710
|
||||||
F tool/opcodeDoc.awk b3a2a3d5d3075b8bd90b7afe24283efdd586659c
|
F tool/opcodeDoc.awk b3a2a3d5d3075b8bd90b7afe24283efdd586659c
|
||||||
@@ -515,7 +515,7 @@ F www/tclsqlite.tcl 8be95ee6dba05eabcd27a9d91331c803f2ce2130
|
|||||||
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
|
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
|
||||||
F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
|
F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
|
||||||
F www/whentouse.tcl fc46eae081251c3c181bd79c5faef8195d7991a5
|
F www/whentouse.tcl fc46eae081251c3c181bd79c5faef8195d7991a5
|
||||||
P 044ca1c72a8f4632dc2e6a94690d164d3560ee38
|
P 5b3a490649ab88c168e3e5bf2efbc7f61b1b954d
|
||||||
R 31842549475179d1d10a54116c67cbde
|
R f6d478d470bd14098b1e348ce99c17b8
|
||||||
U drh
|
U drh
|
||||||
Z dd5bcce4a9040dd3c1d7c52ab375cdda
|
Z f364c8fcb2e6f1fc93356010ff2b7a3d
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
5b3a490649ab88c168e3e5bf2efbc7f61b1b954d
|
96190cf13dd7219f483308fea92d703328aac4c7
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
*************************************************************************
|
*************************************************************************
|
||||||
** Internal interface definitions for SQLite.
|
** Internal interface definitions for SQLite.
|
||||||
**
|
**
|
||||||
** @(#) $Id: sqliteInt.h,v 1.576 2007/06/25 17:28:01 drh Exp $
|
** @(#) $Id: sqliteInt.h,v 1.577 2007/06/26 00:37:28 drh Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef _SQLITEINT_H_
|
#ifndef _SQLITEINT_H_
|
||||||
#define _SQLITEINT_H_
|
#define _SQLITEINT_H_
|
||||||
@@ -1835,7 +1835,7 @@ void sqlite3TableAffinityStr(Vdbe *, Table *);
|
|||||||
char sqlite3CompareAffinity(Expr *pExpr, char aff2);
|
char sqlite3CompareAffinity(Expr *pExpr, char aff2);
|
||||||
int sqlite3IndexAffinityOk(Expr *pExpr, char idx_affinity);
|
int sqlite3IndexAffinityOk(Expr *pExpr, char idx_affinity);
|
||||||
char sqlite3ExprAffinity(Expr *pExpr);
|
char sqlite3ExprAffinity(Expr *pExpr);
|
||||||
int sqlite3_atoi64(const char*, i64*);
|
int sqlite3Atoi64(const char*, i64*);
|
||||||
void sqlite3Error(sqlite3*, int, const char*,...);
|
void sqlite3Error(sqlite3*, int, const char*,...);
|
||||||
void *sqlite3HexToBlob(const char *z);
|
void *sqlite3HexToBlob(const char *z);
|
||||||
int sqlite3TwoPartName(Parse *, Token *, Token *, Token **);
|
int sqlite3TwoPartName(Parse *, Token *, Token *, Token **);
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
** is not included in the SQLite library. It is used for automated
|
** is not included in the SQLite library. It is used for automated
|
||||||
** testing of the SQLite library.
|
** testing of the SQLite library.
|
||||||
**
|
**
|
||||||
** $Id: test1.c,v 1.257 2007/06/25 17:28:02 drh Exp $
|
** $Id: test1.c,v 1.258 2007/06/26 00:37:28 drh Exp $
|
||||||
*/
|
*/
|
||||||
#include "sqliteInt.h"
|
#include "sqliteInt.h"
|
||||||
#include "tcl.h"
|
#include "tcl.h"
|
||||||
@@ -1082,7 +1082,7 @@ static int sqlite3_mprintf_int(
|
|||||||
*/
|
*/
|
||||||
static int sqlite3GetInt64(const char *zNum, i64 *pValue){
|
static int sqlite3GetInt64(const char *zNum, i64 *pValue){
|
||||||
if( sqlite3FitsIn64Bits(zNum) ){
|
if( sqlite3FitsIn64Bits(zNum) ){
|
||||||
sqlite3_atoi64(zNum, pValue);
|
sqlite3Atoi64(zNum, pValue);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
** This file contains functions for allocating memory, comparing
|
** This file contains functions for allocating memory, comparing
|
||||||
** strings, and stuff like that.
|
** strings, and stuff like that.
|
||||||
**
|
**
|
||||||
** $Id: util.c,v 1.206 2007/06/25 17:28:02 drh Exp $
|
** $Id: util.c,v 1.207 2007/06/26 00:37:28 drh Exp $
|
||||||
*/
|
*/
|
||||||
#include "sqliteInt.h"
|
#include "sqliteInt.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
@@ -332,7 +332,7 @@ static int compare2pow63(const char *zNum){
|
|||||||
** 32-bit numbers. At that time, it was much faster than the
|
** 32-bit numbers. At that time, it was much faster than the
|
||||||
** atoi() library routine in RedHat 7.2.
|
** atoi() library routine in RedHat 7.2.
|
||||||
*/
|
*/
|
||||||
int sqlite3_atoi64(const char *zNum, i64 *pNum){
|
int sqlite3Atoi64(const char *zNum, i64 *pNum){
|
||||||
i64 v = 0;
|
i64 v = 0;
|
||||||
int neg;
|
int neg;
|
||||||
int i, c;
|
int i, c;
|
||||||
@@ -407,7 +407,7 @@ int sqlite3FitsIn64Bits(const char *zNum){
|
|||||||
** *pValue to that integer and return true. Otherwise return false.
|
** *pValue to that integer and return true. Otherwise return false.
|
||||||
**
|
**
|
||||||
** Any non-numeric characters that following zNum are ignored.
|
** Any non-numeric characters that following zNum are ignored.
|
||||||
** This is different from sqlite3_atoi64() which requires the
|
** This is different from sqlite3Atoi64() which requires the
|
||||||
** input number to be zero-terminated.
|
** input number to be zero-terminated.
|
||||||
*/
|
*/
|
||||||
int sqlite3GetInt32(const char *zNum, int *pValue){
|
int sqlite3GetInt32(const char *zNum, int *pValue){
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
** in this file for details. If in doubt, do not deviate from existing
|
** in this file for details. If in doubt, do not deviate from existing
|
||||||
** commenting and indentation practices when changing or adding code.
|
** commenting and indentation practices when changing or adding code.
|
||||||
**
|
**
|
||||||
** $Id: vdbe.c,v 1.631 2007/06/25 17:28:02 drh Exp $
|
** $Id: vdbe.c,v 1.632 2007/06/26 00:37:28 drh Exp $
|
||||||
*/
|
*/
|
||||||
#include "sqliteInt.h"
|
#include "sqliteInt.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
@@ -227,7 +227,7 @@ static void applyNumericAffinity(Mem *pRec){
|
|||||||
&& sqlite3IsNumber(pRec->z, &realnum, pRec->enc) ){
|
&& sqlite3IsNumber(pRec->z, &realnum, pRec->enc) ){
|
||||||
i64 value;
|
i64 value;
|
||||||
sqlite3VdbeChangeEncoding(pRec, SQLITE_UTF8);
|
sqlite3VdbeChangeEncoding(pRec, SQLITE_UTF8);
|
||||||
if( !realnum && sqlite3_atoi64(pRec->z, &value) ){
|
if( !realnum && sqlite3Atoi64(pRec->z, &value) ){
|
||||||
sqlite3VdbeMemRelease(pRec);
|
sqlite3VdbeMemRelease(pRec);
|
||||||
pRec->u.i = value;
|
pRec->u.i = value;
|
||||||
pRec->flags = MEM_Int;
|
pRec->flags = MEM_Int;
|
||||||
|
|||||||
@@ -307,7 +307,7 @@ i64 sqlite3VdbeIntValue(Mem *pMem){
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
assert( pMem->z );
|
assert( pMem->z );
|
||||||
sqlite3_atoi64(pMem->z, &value);
|
sqlite3Atoi64(pMem->z, &value);
|
||||||
return value;
|
return value;
|
||||||
}else{
|
}else{
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -70,6 +70,12 @@ puts $out [subst \
|
|||||||
** This amalgamation was generated on $today.
|
** This amalgamation was generated on $today.
|
||||||
*/
|
*/
|
||||||
#define SQLITE_AMALGAMATION 1}]
|
#define SQLITE_AMALGAMATION 1}]
|
||||||
|
if {$addstatic} {
|
||||||
|
puts $out \
|
||||||
|
{#ifndef SQLITE_PRIVATE
|
||||||
|
# define SQLITE_PRIVATE static
|
||||||
|
#endif}
|
||||||
|
}
|
||||||
|
|
||||||
# These are the header files used by SQLite. The first time any of these
|
# These are the header files used by SQLite. The first time any of these
|
||||||
# files are seen in a #include statement in the C code, include the complete
|
# files are seen in a #include statement in the C code, include the complete
|
||||||
@@ -148,7 +154,7 @@ proc copy_file {filename} {
|
|||||||
} elseif {$addstatic && [regexp $declpattern $line]
|
} elseif {$addstatic && [regexp $declpattern $line]
|
||||||
&& ![regexp {^static} $line]} {
|
&& ![regexp {^static} $line]} {
|
||||||
# Add the "static" keyword before internal functions.
|
# Add the "static" keyword before internal functions.
|
||||||
puts $out "static $line"
|
puts $out "SQLITE_PRIVATE $line"
|
||||||
} else {
|
} else {
|
||||||
puts $out $line
|
puts $out $line
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user