mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Add the libvers.c tool in the tool/ subdirectory.
FossilOrigin-Name: 2a41f098b2f0523b3d7e6eba6ae91cc0d30752df
This commit is contained in:
11
manifest
11
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
|
||||
|
@@ -1 +1 @@
|
||||
41fd46e2962ba9a1e1f6867567499d1f6f5b8372
|
||||
2a41f098b2f0523b3d7e6eba6ae91cc0d30752df
|
15
tool/libvers.c
Normal file
15
tool/libvers.c
Normal file
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user