From: drh Date: Mon, 14 May 2018 00:41:12 +0000 (+0000) Subject: Export the deduceDatabaseType() function the shell.c source file. X-Git-Tag: version-3.24.0~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc97c1c8cb7ab13219aea6c5a849b08fc657086c;p=thirdparty%2Fsqlite.git Export the deduceDatabaseType() function the shell.c source file. FossilOrigin-Name: d0f35739af3b226c8eef39676407293650cde551acef06fe8628fdd5b59bd66a --- diff --git a/manifest b/manifest index ba70c74c23..be9b1d25ae 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Add\sthe\s--append\soption\sto\sthe\s".backup"\scommand\sin\sthe\sCLI. -D 2018-05-14T00:23:08.869 +C Export\sthe\sdeduceDatabaseType()\sfunction\sthe\sshell.c\ssource\sfile. +D 2018-05-14T00:41:12.032 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea F Makefile.in bfc40f350586923e0419d2ea4b559c37ec10ee4b6e210e08c14401f8e340f0da @@ -494,7 +494,7 @@ F src/random.c 80f5d666f23feb3e6665a6ce04c7197212a88384 F src/resolve.c 6415381a0e9d22c0e7cba33ca4a53f81474190862f5d4838190f5eb5b0b47bc9 F src/rowset.c 7b7e7e479212e65b723bf40128c7b36dc5afdfac F src/select.c a35d462ee7a3c0856ad7a9d9c8921fbf3d91d911a8f39ad9d61302eb43b24a71 -F src/shell.c.in 05d9da22231fb422196f61f0a35232473f7002075e66b9ce874969339b09e88a +F src/shell.c.in bd7ea498f9d1e366ced57e229ae896c7d7ad00ae5913b8d34b6b649163b8dab9 F src/sqlite.h.in ef7e6fae65cb40ba004abf090ea491751295c11e64b1446322813d3b473b9400 F src/sqlite3.rc 5121c9e10c3964d5755191c80dd1180c122fc3a8 F src/sqlite3ext.h 9887b27e69c01e79c2cbe74ef73bf01af5b5703d6a7f0a4371e386d7249cb1c7 @@ -1728,7 +1728,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 -P 4ee136d6d2e029dad8371faf659d3a0bc0ac6ae76940db81d333848545bc990f -R 6bcc8011ac4dc9adf5b8540f2d725295 +P 0dfdbdee527b0c429703bc2696bf8d8e44a852aafe0aca742b9d7152eb1f932e +R da900d401b8955dc01f605862cf41fc0 U drh -Z 817f9a2eabe717770b3005d989b97807 +Z 6411cd5f43bf5bc227e5d427558bf3cc diff --git a/manifest.uuid b/manifest.uuid index a7aa401b7e..851f3f54d5 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -0dfdbdee527b0c429703bc2696bf8d8e44a852aafe0aca742b9d7152eb1f932e \ No newline at end of file +d0f35739af3b226c8eef39676407293650cde551acef06fe8628fdd5b59bd66a \ No newline at end of file diff --git a/src/shell.c.in b/src/shell.c.in index ef68cddba0..50f36d9a43 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -3541,7 +3541,7 @@ static int session_filter(void *pCtx, const char *zTab){ ** Otherwise, assume an ordinary database regardless of the filename if ** the type cannot be determined from content. */ -static int deduceDatabaseType(const char *zName, int dfltZip){ +int deduceDatabaseType(const char *zName, int dfltZip){ FILE *f = fopen(zName, "rb"); size_t n; int rc = SHELL_OPEN_UNSPEC;