mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Added "const" to lots of "char*" parameters in the API. (CVS 298)
FossilOrigin-Name: 1c448f1fd2a2e103e7464df896174534d02152ed
This commit is contained in:
18
manifest
18
manifest
@@ -1,5 +1,5 @@
|
|||||||
C Remove\scruft:\srestrict\sthe\snumber\sof\ssorters\sand\slists\sin\sthe\sVDBE\sto\sone\nsince\sno\smore\sthan\sone\swas\sever\sused\sanyway.\s\sThis\seliminates\sseveral\nop-codes\sand\ssimplifies\sthe\simplementation\sof\sseveral\sothers.\s(CVS\s297)
|
C Added\s"const"\sto\slots\sof\s"char*"\sparameters\sin\sthe\sAPI.\s(CVS\s298)
|
||||||
D 2001-11-01T14:41:34
|
D 2001-11-03T23:57:09
|
||||||
F Makefile.in 6801df952cb1df64aa32e4de85fed24511d28efd
|
F Makefile.in 6801df952cb1df64aa32e4de85fed24511d28efd
|
||||||
F Makefile.template 1fdb891f14083ee0b63cf7282f91529634438e7a
|
F Makefile.template 1fdb891f14083ee0b63cf7282f91529634438e7a
|
||||||
F README a4c0ba11354ef6ba0776b400d057c59da47a4cc0
|
F README a4c0ba11354ef6ba0776b400d057c59da47a4cc0
|
||||||
@@ -27,21 +27,21 @@ F src/expr.c 2dd0252ced345c1e64db015b94dc6b5d7a57eef3
|
|||||||
F src/hash.c d0110e6da70a5962e21575fccf8206f7d9d75e00
|
F src/hash.c d0110e6da70a5962e21575fccf8206f7d9d75e00
|
||||||
F src/hash.h a5f5b3ce2d086a172c5879b0b06a27a82eac9fac
|
F src/hash.h a5f5b3ce2d086a172c5879b0b06a27a82eac9fac
|
||||||
F src/insert.c b65c1d4b848e45d41e9dcccd2b226ca335de67b6
|
F src/insert.c b65c1d4b848e45d41e9dcccd2b226ca335de67b6
|
||||||
F src/main.c 47922699c75e24ffec071cdf300405436e5bb16e
|
F src/main.c e2ae5e14a3f936d5fa7e3d9d9477610b5f16e7eb
|
||||||
F src/md5.c 52f677bfc590e09f71d07d7e327bd59da738d07c
|
F src/md5.c 52f677bfc590e09f71d07d7e327bd59da738d07c
|
||||||
F src/os.c 66b677479eae37e30bdfbe32deb0fe6a2efca983
|
F src/os.c 66b677479eae37e30bdfbe32deb0fe6a2efca983
|
||||||
F src/os.h bed702c9e3b768bc3cb1b12c90b83d099c1546be
|
F src/os.h bed702c9e3b768bc3cb1b12c90b83d099c1546be
|
||||||
F src/pager.c 0bd0b4b693edb43c72774e3e749d8667e2ae7094
|
F src/pager.c 0bd0b4b693edb43c72774e3e749d8667e2ae7094
|
||||||
F src/pager.h a0d4c5ae271914aa07b62aee0707997d6932b6ca
|
F src/pager.h a0d4c5ae271914aa07b62aee0707997d6932b6ca
|
||||||
F src/parse.y 148e4cd134d3cbd816dcb0df50e49e498faa6ba4
|
F src/parse.y 148e4cd134d3cbd816dcb0df50e49e498faa6ba4
|
||||||
F src/printf.c 167fbfb192b4dce48154398f22dbc614e9f5d088
|
F src/printf.c 300a90554345751f26e1fc0c0333b90a66110a1d
|
||||||
F src/random.c 2a9cc2c9716d14815fd4c2accf89d87a1143e46b
|
F src/random.c 2a9cc2c9716d14815fd4c2accf89d87a1143e46b
|
||||||
F src/select.c c34b02eafaa69fde6b4428df7861c3417b3079f9
|
F src/select.c c34b02eafaa69fde6b4428df7861c3417b3079f9
|
||||||
F src/shell.c 71597951753b56a97fea1c7a30908f31e635c00c
|
F src/shell.c 71597951753b56a97fea1c7a30908f31e635c00c
|
||||||
F src/shell.tcl 27ecbd63dd88396ad16d81ab44f73e6c0ea9d20e
|
F src/shell.tcl 27ecbd63dd88396ad16d81ab44f73e6c0ea9d20e
|
||||||
F src/sqlite.h.in f2c40c869ff40ad3e60d8a3b1f72777fa28b32fc
|
F src/sqlite.h.in 934de9112747ad8d8e7d5fec44876246b24ca5a3
|
||||||
F src/sqliteInt.h 9a18aebf42a805ba02f55eba2239beabe35f02b3
|
F src/sqliteInt.h 9a18aebf42a805ba02f55eba2239beabe35f02b3
|
||||||
F src/table.c be9c7bf883c731c6719f0fcc188ea2bac8ae7122
|
F src/table.c c89698bd5bb4b8d14722d6ee7e9be014c383d24a
|
||||||
F src/tclsqlite.c 4896e078495bf868742f5394dcf01c5efe5bea02
|
F src/tclsqlite.c 4896e078495bf868742f5394dcf01c5efe5bea02
|
||||||
F src/test1.c e4b31f62ea71963cbae44338acf477a04fc8fc49
|
F src/test1.c e4b31f62ea71963cbae44338acf477a04fc8fc49
|
||||||
F src/test2.c e9f99aa5ee73872819259d6612c11e55e1644321
|
F src/test2.c e9f99aa5ee73872819259d6612c11e55e1644321
|
||||||
@@ -114,7 +114,7 @@ F www/speed.tcl 212a91d555384e01873160d6a189f1490c791bc2
|
|||||||
F www/sqlite.tcl 6a21242a272e9c0939a04419a51c3d50cae33e3e
|
F www/sqlite.tcl 6a21242a272e9c0939a04419a51c3d50cae33e3e
|
||||||
F www/tclsqlite.tcl 13d50723f583888fc80ae1a38247c0ab415066fa
|
F www/tclsqlite.tcl 13d50723f583888fc80ae1a38247c0ab415066fa
|
||||||
F www/vdbe.tcl bb7d620995f0a987293e9d4fb6185a3b077e9b44
|
F www/vdbe.tcl bb7d620995f0a987293e9d4fb6185a3b077e9b44
|
||||||
P b2cb118fb7c6713684d32a48a7ba8ffffe596687
|
P e1370276c2a0d045b29c981ddcb59f737e19a91c
|
||||||
R 11be61d659c8d3b7f97b8d20e188eb7e
|
R fb7f20c8fe87aa63faec6df38adee18f
|
||||||
U drh
|
U drh
|
||||||
Z 1756e792427d370fb3a08a33a148f36d
|
Z a5329e1c376ad697c312a452a3c161ed
|
||||||
|
@@ -1 +1 @@
|
|||||||
e1370276c2a0d045b29c981ddcb59f737e19a91c
|
1c448f1fd2a2e103e7464df896174534d02152ed
|
@@ -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.47 2001/10/22 02:58:10 drh Exp $
|
** $Id: main.c,v 1.48 2001/11/03 23:57:09 drh Exp $
|
||||||
*/
|
*/
|
||||||
#include "sqliteInt.h"
|
#include "sqliteInt.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
@@ -428,7 +428,7 @@ int sqlite_complete(const char *zSql){
|
|||||||
*/
|
*/
|
||||||
int sqlite_exec(
|
int sqlite_exec(
|
||||||
sqlite *db, /* The database on which the SQL executes */
|
sqlite *db, /* The database on which the SQL executes */
|
||||||
char *zSql, /* The SQL to be executed */
|
const char *zSql, /* The SQL to be executed */
|
||||||
sqlite_callback xCallback, /* Invoke this callback routine */
|
sqlite_callback xCallback, /* Invoke this callback routine */
|
||||||
void *pArg, /* First argument to xCallback() */
|
void *pArg, /* First argument to xCallback() */
|
||||||
char **pzErrMsg /* Write error messages here */
|
char **pzErrMsg /* Write error messages here */
|
||||||
|
@@ -737,7 +737,7 @@ char *sqlite_vmprintf(const char *zFormat, va_list ap){
|
|||||||
*/
|
*/
|
||||||
int sqlite_exec_printf(
|
int sqlite_exec_printf(
|
||||||
sqlite *db, /* An open database */
|
sqlite *db, /* An open database */
|
||||||
char *sqlFormat, /* printf-style format string for the SQL */
|
const char *sqlFormat, /* printf-style format string for the SQL */
|
||||||
sqlite_callback xCallback, /* Callback function */
|
sqlite_callback xCallback, /* Callback function */
|
||||||
void *pArg, /* 1st argument to callback function */
|
void *pArg, /* 1st argument to callback function */
|
||||||
char **errmsg, /* Error msg written here */
|
char **errmsg, /* Error msg written here */
|
||||||
@@ -753,7 +753,7 @@ int sqlite_exec_printf(
|
|||||||
}
|
}
|
||||||
int sqlite_exec_vprintf(
|
int sqlite_exec_vprintf(
|
||||||
sqlite *db, /* An open database */
|
sqlite *db, /* An open database */
|
||||||
char *sqlFormat, /* printf-style format string for the SQL */
|
const char *sqlFormat, /* printf-style format string for the SQL */
|
||||||
sqlite_callback xCallback, /* Callback function */
|
sqlite_callback xCallback, /* Callback function */
|
||||||
void *pArg, /* 1st argument to callback function */
|
void *pArg, /* 1st argument to callback function */
|
||||||
char **errmsg, /* Error msg written here */
|
char **errmsg, /* Error msg written here */
|
||||||
@@ -769,7 +769,7 @@ int sqlite_exec_vprintf(
|
|||||||
}
|
}
|
||||||
int sqlite_get_table_printf(
|
int sqlite_get_table_printf(
|
||||||
sqlite *db, /* An open database */
|
sqlite *db, /* An open database */
|
||||||
char *sqlFormat, /* printf-style format string for the SQL */
|
const char *sqlFormat, /* printf-style format string for the SQL */
|
||||||
char ***resultp, /* Result written to a char *[] that this points to */
|
char ***resultp, /* Result written to a char *[] that this points to */
|
||||||
int *nrow, /* Number of result rows written here */
|
int *nrow, /* Number of result rows written here */
|
||||||
int *ncol, /* Number of result columns written here */
|
int *ncol, /* Number of result columns written here */
|
||||||
@@ -786,7 +786,7 @@ int sqlite_get_table_printf(
|
|||||||
}
|
}
|
||||||
int sqlite_get_table_vprintf(
|
int sqlite_get_table_vprintf(
|
||||||
sqlite *db, /* An open database */
|
sqlite *db, /* An open database */
|
||||||
char *sqlFormat, /* printf-style format string for the SQL */
|
const char *sqlFormat, /* printf-style format string for the SQL */
|
||||||
char ***resultp, /* Result written to a char *[] that this points to */
|
char ***resultp, /* Result written to a char *[] that this points to */
|
||||||
int *nrow, /* Number of result rows written here */
|
int *nrow, /* Number of result rows written here */
|
||||||
int *ncolumn, /* Number of result columns written here */
|
int *ncolumn, /* Number of result columns written here */
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
** This header file defines the interface that the SQLite library
|
** This header file defines the interface that the SQLite library
|
||||||
** presents to client programs.
|
** presents to client programs.
|
||||||
**
|
**
|
||||||
** @(#) $Id: sqlite.h.in,v 1.22 2001/10/22 02:58:10 drh Exp $
|
** @(#) $Id: sqlite.h.in,v 1.23 2001/11/03 23:57:09 drh Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef _SQLITE_H_
|
#ifndef _SQLITE_H_
|
||||||
#define _SQLITE_H_
|
#define _SQLITE_H_
|
||||||
@@ -131,7 +131,7 @@ typedef int (*sqlite_callback)(void*,int,char**, char**);
|
|||||||
*/
|
*/
|
||||||
int sqlite_exec(
|
int sqlite_exec(
|
||||||
sqlite*, /* An open database */
|
sqlite*, /* An open database */
|
||||||
char *sql, /* SQL to be executed */
|
const char *sql, /* SQL to be executed */
|
||||||
sqlite_callback, /* Callback function */
|
sqlite_callback, /* Callback function */
|
||||||
void *, /* 1st argument to callback function */
|
void *, /* 1st argument to callback function */
|
||||||
char **errmsg /* Error msg written here */
|
char **errmsg /* Error msg written here */
|
||||||
@@ -265,7 +265,7 @@ void sqlite_busy_timeout(sqlite*, int ms);
|
|||||||
*/
|
*/
|
||||||
int sqlite_get_table(
|
int sqlite_get_table(
|
||||||
sqlite*, /* An open database */
|
sqlite*, /* An open database */
|
||||||
char *sql, /* SQL to be executed */
|
const char *sql, /* SQL to be executed */
|
||||||
char ***resultp, /* Result written to a char *[] that this points to */
|
char ***resultp, /* Result written to a char *[] that this points to */
|
||||||
int *nrow, /* Number of result rows written here */
|
int *nrow, /* Number of result rows written here */
|
||||||
int *ncolumn, /* Number of result columns written here */
|
int *ncolumn, /* Number of result columns written here */
|
||||||
@@ -317,7 +317,7 @@ void sqlite_free_table(char **result);
|
|||||||
*/
|
*/
|
||||||
int sqlite_exec_printf(
|
int sqlite_exec_printf(
|
||||||
sqlite*, /* An open database */
|
sqlite*, /* An open database */
|
||||||
char *sqlFormat, /* printf-style format string for the SQL */
|
const char *sqlFormat, /* printf-style format string for the SQL */
|
||||||
sqlite_callback, /* Callback function */
|
sqlite_callback, /* Callback function */
|
||||||
void *, /* 1st argument to callback function */
|
void *, /* 1st argument to callback function */
|
||||||
char **errmsg, /* Error msg written here */
|
char **errmsg, /* Error msg written here */
|
||||||
@@ -325,7 +325,7 @@ int sqlite_exec_printf(
|
|||||||
);
|
);
|
||||||
int sqlite_exec_vprintf(
|
int sqlite_exec_vprintf(
|
||||||
sqlite*, /* An open database */
|
sqlite*, /* An open database */
|
||||||
char *sqlFormat, /* printf-style format string for the SQL */
|
const char *sqlFormat, /* printf-style format string for the SQL */
|
||||||
sqlite_callback, /* Callback function */
|
sqlite_callback, /* Callback function */
|
||||||
void *, /* 1st argument to callback function */
|
void *, /* 1st argument to callback function */
|
||||||
char **errmsg, /* Error msg written here */
|
char **errmsg, /* Error msg written here */
|
||||||
@@ -333,7 +333,7 @@ int sqlite_exec_vprintf(
|
|||||||
);
|
);
|
||||||
int sqlite_get_table_printf(
|
int sqlite_get_table_printf(
|
||||||
sqlite*, /* An open database */
|
sqlite*, /* An open database */
|
||||||
char *sqlFormat, /* printf-style format string for the SQL */
|
const char *sqlFormat, /* printf-style format string for the SQL */
|
||||||
char ***resultp, /* Result written to a char *[] that this points to */
|
char ***resultp, /* Result written to a char *[] that this points to */
|
||||||
int *nrow, /* Number of result rows written here */
|
int *nrow, /* Number of result rows written here */
|
||||||
int *ncolumn, /* Number of result columns written here */
|
int *ncolumn, /* Number of result columns written here */
|
||||||
@@ -342,7 +342,7 @@ int sqlite_get_table_printf(
|
|||||||
);
|
);
|
||||||
int sqlite_get_table_vprintf(
|
int sqlite_get_table_vprintf(
|
||||||
sqlite*, /* An open database */
|
sqlite*, /* An open database */
|
||||||
char *sqlFormat, /* printf-style format string for the SQL */
|
const char *sqlFormat, /* printf-style format string for the SQL */
|
||||||
char ***resultp, /* Result written to a char *[] that this points to */
|
char ***resultp, /* Result written to a char *[] that this points to */
|
||||||
int *nrow, /* Number of result rows written here */
|
int *nrow, /* Number of result rows written here */
|
||||||
int *ncolumn, /* Number of result columns written here */
|
int *ncolumn, /* Number of result columns written here */
|
||||||
|
@@ -116,7 +116,7 @@ static int sqlite_get_table_cb(void *pArg, int nCol, char **argv, char **colv){
|
|||||||
*/
|
*/
|
||||||
int sqlite_get_table(
|
int sqlite_get_table(
|
||||||
sqlite *db, /* The database on which the SQL executes */
|
sqlite *db, /* The database on which the SQL executes */
|
||||||
char *zSql, /* The SQL to be executed */
|
const char *zSql, /* The SQL to be executed */
|
||||||
char ***pazResult, /* Write the result table here */
|
char ***pazResult, /* Write the result table here */
|
||||||
int *pnRow, /* Write the number of rows in the result here */
|
int *pnRow, /* Write the number of rows in the result here */
|
||||||
int *pnColumn, /* Write the number of columns of result here */
|
int *pnColumn, /* Write the number of columns of result here */
|
||||||
|
Reference in New Issue
Block a user