]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Remove the sqlite3_open_varargs() API. (CVS 1515)
authordanielk1977 <danielk1977@noemail.net>
Tue, 1 Jun 2004 00:03:52 +0000 (00:03 +0000)
committerdanielk1977 <danielk1977@noemail.net>
Tue, 1 Jun 2004 00:03:52 +0000 (00:03 +0000)
FossilOrigin-Name: 6902fb1b49fdf0e38265fa26198690243cdc2f58

manifest
manifest.uuid
src/main.c
src/sqlite.h.in

index 0c1fb94072f5df9cedeff32d08860222646364b0..2f6d10ec2340c7638999740846b5c0572ef206e1 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Remove\sthe\ssqlite3_error_string()\sAPI.\s(CVS\s1514)
-D 2004-05-31T23:56:43
+C Remove\sthe\ssqlite3_open_varargs()\sAPI.\s(CVS\s1515)
+D 2004-06-01T00:03:53
 F Makefile.in ab7b0d5118e2da97bac66be8684a1034e3500f5a
 F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
 F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@@ -36,7 +36,7 @@ F src/hash.c 440c2f8cb373ee1b4e13a0988489c7cd95d55b6f
 F src/hash.h 762d95f1e567664d1eafc1687de755626be962fb
 F src/insert.c 4268d9e3959cc845ea243fb4ec7507269404dad9
 F src/legacy.c ad23746f15f67e34577621b1875f639c94839e1f
-F src/main.c 5e9c2c4342a652a5c4de2e7dcf60cea1acf1fb72
+F src/main.c 66c6c35e94f57a7505f7f44b5a9504fb60ca0730
 F src/md5.c 4302e84ae516c616bb079c4e6d038c0addb33481
 F src/os.h ab42f4a7c4c716f26b988e759b6e12085a3bfc67
 F src/os_common.h 744286a27de55c52f1b18921e8d17abbf7fafc0f
@@ -54,7 +54,7 @@ F src/printf.c ef750e8e2398ca7e8b58be991075f08c6a7f0e53
 F src/random.c eff68e3f257e05e81eae6c4d50a51eb88beb4ff3
 F src/select.c 0297717eb7331604687c2e29c147d3a311359df1
 F src/shell.c a9e2ad8f6c1d39b04bad61a0ec655e9a3a360b50
-F src/sqlite.h.in 67ae321428f7de80046a12892d289e4024b4976a
+F src/sqlite.h.in d8222d4a1f76468560b60f2b7f5b592995ebd5cf
 F src/sqliteInt.h 8a3a6dc8ef5141563698a3b7a62fca7158cff1f5
 F src/table.c af14284fa36c8d41f6829e3f2819dce07d3e2de2
 F src/tclsqlite.c ed8663e7703346ace72ca3899dba15dbfc0883d7
@@ -212,7 +212,7 @@ F www/support.tcl 67682848d6ddd283370451dc3da2e56cded9fc9a
 F www/tclsqlite.tcl 19191cf2a1010eaeff74c51d83fd5f5a4d899075
 F www/vdbe.tcl 59288db1ac5c0616296b26dce071c36cb611dfe9
 F www/whentouse.tcl a8335bce47cc2fddb07f19052cb0cb4d9129a8e4
-P 6ab3af8847a7b0f1508824c9d8e0ec9685219371
-R 430f7ef65e5c91eaa2bde24b0b951b9f
+P af8e2006d808031a040f293c44f3bfbe841b866b
+R d1c59bd3cc6eefb8ae5de00c7e7fe30b
 U danielk1977
-Z cd835fabb1a406eb8762317c7be1255b
+Z 968142c222e9046cd53636930b43cc0c
index ab789b5d5d1509b3a1edddabece6ab50a6c281f2..fdf3382536e1b8bfe6ac77ed0dbdb33aca97b7fe 100644 (file)
@@ -1 +1 @@
-af8e2006d808031a040f293c44f3bfbe841b866b
\ No newline at end of file
+6902fb1b49fdf0e38265fa26198690243cdc2f58
\ No newline at end of file
index 77ec427361204be20177a2ea6fa91e5685928152..1f0451f72898b45a4887b36d0b2ec53ae915b490 100644 (file)
@@ -14,7 +14,7 @@
 ** other files are for internal use by SQLite and should not be
 ** accessed by users of the library.
 **
-** $Id: main.c,v 1.201 2004/05/31 23:56:43 danielk1977 Exp $
+** $Id: main.c,v 1.202 2004/06/01 00:03:53 danielk1977 Exp $
 */
 #include "sqliteInt.h"
 #include "os.h"
@@ -1108,88 +1108,6 @@ int sqlite3_open16(
   return rc;
 }
 
-/*
-** Open a new database handle.
-*/
-int sqlite3_open_vararg(
-  const char *filename,   /* Database filename (UTF-8) */
-  sqlite3 **ppDb,         /* OUT: SQLite db handle */
-  ...                     /* Option strings */
-){
-  va_list ap;
-  const char **aOpts = 0;
-  int nOpts = 0;
-  int rc;
-
-  /* Count the arguments */
-  va_start(ap, ppDb);
-  while( va_arg(ap, const char *) ) nOpts++;
-  va_end(ap);
-
-  /* If there are more than zero arguments, construct an array */
-  if( nOpts ){
-    aOpts = (const char **)sqliteMalloc(sizeof(const char *)*nOpts+1);
-    if( !aOpts ){
-      *ppDb = 0;
-      return SQLITE_NOMEM;
-    }
-    va_start(ap, ppDb);
-    nOpts = 0;
-    while( va_arg(ap, const char *) ){
-      aOpts[nOpts] = va_arg(ap, const char *);
-      nOpts++;
-    }
-    aOpts[nOpts] = 0;
-    va_end(ap);
-  }
-  
-  /* Call the regular sqlite3_open() */
-  rc = sqlite3_open(filename, ppDb, aOpts);
-  if( aOpts ) sqliteFree(aOpts);
-  return rc;
-}
-
-/*
-** Open a new database handle.
-*/
-int sqlite3_open16_vararg(
-  const void *filename,   /* Database filename (UTF-16) */
-  sqlite3 **ppDb,         /* OUT: SQLite db handle */
-  ...                     /* Option strings */
-){
-  va_list ap;
-  const char **aOpts = 0;
-  int nOpts = 0;
-  int rc;
-
-  /* Count the arguments */
-  va_start(ap, ppDb);
-  while( va_arg(ap, const char *) ) nOpts++;
-  va_end(ap);
-
-  /* If there are more than zero arguments, construct an array */
-  if( nOpts ){
-    aOpts = (const char **)sqliteMalloc(sizeof(const char *)*nOpts+1);
-    if( !aOpts ){
-      *ppDb = 0;
-      return SQLITE_NOMEM;
-    }
-    va_start(ap, ppDb);
-    nOpts = 0;
-    while( va_arg(ap, const char *) ){
-      aOpts[nOpts] = va_arg(ap, const char *);
-      nOpts++;
-    }
-    aOpts[nOpts] = 0;
-    va_end(ap);
-  }
-  
-  /* Call the regular sqlite3_open16() */
-  rc = sqlite3_open16(filename, ppDb, aOpts);
-  if( aOpts ) sqliteFree(aOpts);
-  return rc;
-}
-
 /*
 ** The following routine destroys a virtual machine that is created by
 ** the sqlite3_compile() routine. The integer returned is an SQLITE_
index 9ae774b87bffdf577fd086b9626477ecf5092062..e21d92c660e8361c70804b2630009f2e4b5a6d6c 100644 (file)
@@ -12,7 +12,7 @@
 ** This header file defines the interface that the SQLite library
 ** presents to client programs.
 **
-** @(#) $Id: sqlite.h.in,v 1.88 2004/05/31 23:56:43 danielk1977 Exp $
+** @(#) $Id: sqlite.h.in,v 1.89 2004/06/01 00:03:53 danielk1977 Exp $
 */
 #ifndef _SQLITE_H_
 #define _SQLITE_H_
@@ -518,23 +518,6 @@ int sqlite3_open16(
   const char **args       /* Null terminated array of option strings */
 );
 
-/*
-** The following two functions are identical to sqlite3_open() and
-** sqlite3_open16(), except that any option strings are specified as the
-** third and subsequent arguments, instead of as an array.  The final
-** argument to either of the following two functions must be a NULL.
-*/
-int sqlite3_open_vararg(
-  const char *filename,   /* Database filename (UTF-8) */
-  sqlite3 **ppDb,         /* OUT: SQLite db handle */
-  ...                     /* Option strings */
-);
-int sqlite3_open16_vararg(
-  const void *filename,   /* Database filename (UTF-16) */
-  sqlite3 **ppDb,         /* OUT: SQLite db handle */
-  ...                     /* Option strings */
-);
-
 /*
 ** Return the error code for the most recent sqlite3_* API call associated
 ** with sqlite3 handle 'db'. SQLITE_OK is returned if the most recent