diff options
author | drh <drh@noemail.net> | 2004-07-26 12:24:22 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2004-07-26 12:24:22 +0000 |
commit | 1211de3709ba86d03c6cc8f3f561e7492aef3b35 (patch) | |
tree | b975897e6f411a32e247bba1f7303b9dd5f5e15e /src/printf.c | |
parent | be5c89acd0f8b20215199d2337d6f1b1a4a3e5eb (diff) | |
download | sqlite-1211de3709ba86d03c6cc8f3f561e7492aef3b35.tar.gz sqlite-1211de3709ba86d03c6cc8f3f561e7492aef3b35.zip |
Fix problems for 64-bit machines and when SQLITE_OMIT_AUTHORIZATION is defined. (CVS 1868)
FossilOrigin-Name: e3cad1ab6226089265b4d15c6fc67cc33a31425f
Diffstat (limited to 'src/printf.c')
-rw-r--r-- | src/printf.c | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/src/printf.c b/src/printf.c index 2ed674a88..22421f64f 100644 --- a/src/printf.c +++ b/src/printf.c @@ -811,78 +811,3 @@ void sqlite3DebugPrintf(const char *zFormat, ...){ fflush(stdout); } #endif - -/* -** The following four routines implement the varargs versions of the -** sqlite3_exec() and sqlite3_get_table() interfaces. See the sqlite.h -** header files for a more detailed description of how these interfaces -** work. -** -** These routines are all just simple wrappers. -*/ -int sqlite3_exec_vprintf( - sqlite *db, /* An open database */ - const char *sqlFormat, /* printf-style format string for the SQL */ - sqlite_callback xCallback, /* Callback function */ - void *pArg, /* 1st argument to callback function */ - char **errmsg, /* Error msg written here */ - va_list ap /* Arguments to the format string. */ -){ - char *zSql; - int rc; - - zSql = sqlite3_vmprintf(sqlFormat, ap); - rc = sqlite3_exec(db, zSql, xCallback, pArg, errmsg); - free(zSql); - return rc; -} -int sqlite3_exec_printf( - sqlite *db, /* An open database */ - const char *sqlFormat, /* printf-style format string for the SQL */ - sqlite_callback xCallback, /* Callback function */ - void *pArg, /* 1st argument to callback function */ - char **errmsg, /* Error msg written here */ - ... /* Arguments to the format string. */ -){ - va_list ap; - int rc; - - va_start(ap, errmsg); - rc = sqlite3_exec_vprintf(db, sqlFormat, xCallback, pArg, errmsg, ap); - va_end(ap); - return rc; -} -int sqlite3_get_table_vprintf( - sqlite *db, /* An open database */ - const char *sqlFormat, /* printf-style format string for the SQL */ - char ***resultp, /* Result written to a char *[] that this points to */ - int *nrow, /* Number of result rows written here */ - int *ncolumn, /* Number of result columns written here */ - char **errmsg, /* Error msg written here */ - va_list ap /* Arguments to the format string */ -){ - char *zSql; - int rc; - - zSql = sqlite3_vmprintf(sqlFormat, ap); - rc = sqlite3_get_table(db, zSql, resultp, nrow, ncolumn, errmsg); - free(zSql); - return rc; -} -int sqlite3_get_table_printf( - sqlite *db, /* An open database */ - const char *sqlFormat, /* printf-style format string for the SQL */ - char ***resultp, /* Result written to a char *[] that this points to */ - int *nrow, /* Number of result rows written here */ - int *ncol, /* Number of result columns written here */ - char **errmsg, /* Error msg written here */ - ... /* Arguments to the format string */ -){ - va_list ap; - int rc; - - va_start(ap, errmsg); - rc = sqlite3_get_table_vprintf(db, sqlFormat, resultp, nrow, ncol, errmsg, ap); - va_end(ap); - return rc; -} |