]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add the libvers.c tool in the tool/ subdirectory.
authordrh <drh@noemail.net>
Wed, 25 May 2016 18:53:39 +0000 (18:53 +0000)
committerdrh <drh@noemail.net>
Wed, 25 May 2016 18:53:39 +0000 (18:53 +0000)
FossilOrigin-Name: 2a41f098b2f0523b3d7e6eba6ae91cc0d30752df

manifest
manifest.uuid
tool/libvers.c [new file with mode: 0644]

index a229ea4a91d9af7144424e1c86e60650d3d8e641..6e33cdaa4b5bcaceef3b1c57764b0a4a10676ca6 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Enhance\sLemon\sand\sthe\sparser\stemplate\sso\sthat\sit\scan\sonce\sagain\sbuild\sparsers\nthat\shave\sno\sunreachable\sbranches.
-D 2016-05-24T18:55:08.844
+C Add\sthe\slibvers.c\stool\sin\sthe\stool/\ssubdirectory.
+D 2016-05-25T18:53:39.049
 F Makefile.in f59e0763ff448719fc1bd25513882b0567286317
 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
 F Makefile.msc 306d73e854b1a92ea06e5d1e637faa5c44de53c7
@@ -1424,6 +1424,7 @@ F tool/genfkey.test 4196a8928b78f51d54ef58e99e99401ab2f0a7e5
 F tool/getlock.c f4c39b651370156cae979501a7b156bdba50e7ce
 F tool/lemon.c 09a96bed19955697a5e20c49ad863ec2005815a2
 F tool/lempar.c 1f69ad7531e39612915570a3d2c67a3cc1e9bbf0
+F tool/libvers.c caafc3b689638a1d88d44bc5f526c2278760d9b9
 F tool/loadfts.c c3c64e4d5e90e8ba41159232c2189dba4be7b862
 F tool/logest.c 11346aa019e2e77a00902aa7d0cabd27bd2e8cca
 F tool/mkautoconfamal.sh e855df211ecbcc7131dee817110ff386cfb112f7
@@ -1494,7 +1495,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 61e239bc4310eff172e1e50d51522ecc75dd997e
-R 871f96c4fa63421d837cdbce37a6939a
+P 41fd46e2962ba9a1e1f6867567499d1f6f5b8372
+R 871df33bb708dea5ddc1c61eb4854aa7
 U drh
-Z 9f1d9f44ca67035c6f1f764382efebdf
+Z b20c30dd356053a2351766a3c882aef8
index b7546cc2980320a87a98bdc05a502e8d10bc4e8c..b182bd8e82703d1407e6fb9353816874d1b11d59 100644 (file)
@@ -1 +1 @@
-41fd46e2962ba9a1e1f6867567499d1f6f5b8372
\ No newline at end of file
+2a41f098b2f0523b3d7e6eba6ae91cc0d30752df
\ No newline at end of file
diff --git a/tool/libvers.c b/tool/libvers.c
new file mode 100644 (file)
index 0000000..6911dbd
--- /dev/null
@@ -0,0 +1,15 @@
+/*
+** Compile this program against an SQLite library of unknown version
+** and then run this program, and it will print out the SQLite version
+** information.
+*/
+#include <stdio.h>
+
+extern const char *sqlite3_libversion(void);
+extern const char *sqlite3_sourceid(void);
+
+int main(int argc, char **argv){
+  printf("SQLite version %s\n", sqlite3_libversion());
+  printf("SQLite source  %s\n", sqlite3_sourceid());
+  return 0;
+}