From cefc92b8a3abe7c5753a8c7d4cef2f0802ae29cc Mon Sep 17 00:00:00 2001
From: drh
Date: Mon, 29 May 2000 18:32:16 +0000
Subject: [PATCH] :-) (CVS 4)
FossilOrigin-Name: 1d3286702cf267857190e6082db15ba4132453d7
---
Makefile.in | 20 +++++++++++++++++++-
manifest | 14 +++++++-------
manifest.uuid | 2 +-
www/c_interface.tcl | 19 ++++++++++++++++++-
4 files changed, 45 insertions(+), 10 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 3084140289..0bdaeae0cf 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -115,12 +115,30 @@ TARBALL = \
sqlite.tar.gz:
pwd=`pwd`; cd $(TOP)/..; tar czf $$pwd/sqlite.tar.gz $(TARBALL)
-index.html: $(TOP)/www/index.tcl sqlite.tar.gz
+all.tar.gz:
+ pwd=`pwd`; cd $(TOP)/..; tar czf $$pwd/all.tar.gz sqlite
+
+index.html: $(TOP)/www/index.tcl sqlite.tar.gz all.tar.gz
tclsh $(TOP)/www/index.tcl >index.html
sqlite.html: $(TOP)/www/sqlite.tcl
tclsh $(TOP)/www/sqlite.tcl >sqlite.html
+c_interface.html: $(TOP)/www/c_interface.tcl
+ tclsh $(TOP)/www/c_interface.tcl >c_interface.html
+
+# Files to be published on the website.
+#
+PUBLISH = \
+ sqlite.tar.gz \
+ all.tar.gz \
+ index.html \
+ sqlite.html \
+ c_interface.html
+
+publish: $(PUBLISH)
+ scp hwaci@oak.he.net:public_html/sw/sqlite $(PUBLISH)
+
clean:
rm -f *.o sqlite libsqlite.a sqlite.h
rm -f lemon lempar.c parse.* sqlite.tar.gz
diff --git a/manifest b/manifest
index 518db14eec..8ba459f89b 100644
--- a/manifest
+++ b/manifest
@@ -1,6 +1,6 @@
-C :-)\s(CVS\s3)
-D 2000-05-29T18:20:15
-F Makefile.in bab6ff58d847d1b9eb25d4cbf671e4ebd0c74256
+C :-)\s(CVS\s4)
+D 2000-05-29T18:32:16
+F Makefile.in f145e2ccfb1bb63e28362fef46bd5e6b27254aec
F configure 8faba4d0194321e5f61a64e842c65eab0f68e6d8 x
F configure.in 4fc2947d631037bd340b112d6193847d7ac827ae
F doc/lemon.html e233a3e97a779c7a87e1bc4528c664a58e49dd47
@@ -23,10 +23,10 @@ F tool/lempar.c a1eec94d6eacc12332368660ec65f3b248853833
F tool/opNames.awk 2bd9071a138e4e2be13dc98fe066398a61219e1e
F tool/opcodeDoc.awk b3a2a3d5d3075b8bd90b7afe24283efdd586659c
F tool/renumberOps.awk 6d067177ad5f8d711b79577b462da9b3634bd0a9
-F www/c_interface.tcl 851921790368665e040d15eb33a3ca569de97643
+F www/c_interface.tcl f875864edf7974157d1c257ca08de854660882a5
F www/index.tcl c10c625192ee9f19f186f65b90196c9cabe30936
F www/sqlite.tcl 69674d9b8344870de7a6f059169311ebc54111f8
-P 53841c66c699665e83c933627bbe7a193cfccb6b
-R 43b99c48908500b05b2ba1dbbc4bcfec
+P 9e36a6014b9e8298d8fff71f0f1e3fd5610c30bd
+R 1cbd8abc74cbb51471478dc265470087
U drh
-Z 1a9f5aa38de8d4363998964e8afa6610
+Z 7f395b999019989aa3907b5862f33ec4
diff --git a/manifest.uuid b/manifest.uuid
index 38a14da1b4..66ca01e853 100644
--- a/manifest.uuid
+++ b/manifest.uuid
@@ -1 +1 @@
-9e36a6014b9e8298d8fff71f0f1e3fd5610c30bd
\ No newline at end of file
+1d3286702cf267857190e6082db15ba4132453d7
\ No newline at end of file
diff --git a/www/c_interface.tcl b/www/c_interface.tcl
index 013072c069..aea64f2ffc 100644
--- a/www/c_interface.tcl
+++ b/www/c_interface.tcl
@@ -1,7 +1,7 @@
#
# Run this Tcl script to generate the sqlite.html file.
#
-set rcsid {$Id: c_interface.tcl,v 1.1 2000/05/29 18:20:15 drh Exp $}
+set rcsid {$Id: c_interface.tcl,v 1.2 2000/05/29 18:32:17 drh Exp $}
puts {
@@ -20,13 +20,18 @@ puts {
a C or C++ program. This document gives an overview of the C/C++
programming interface.
+The API
+
The interface to the SQLite library consists of 4 functions
and one opaque data structure.
typedef struct sqlite sqlite;
+
sqlite *sqlite_open(const char *filename, int mode, char **errmsg);
+
void sqlite_close(sqlite*);
+
int sqlite_exec(
sqlite*,
char *sql,
@@ -34,6 +39,7 @@ int sqlite_exec(
void*,
char **errmsg
);
+
int sqlite_complete(const char *sql);
@@ -130,6 +136,17 @@ returns false, then more text is required to complete the SQL statement.
For the purpose of the sqlite_complete() function, an SQL
statement is complete if it ends in a semicolon.
+Usage Examples
+
+For examples of how the SQLite C/C++ interface can be used,
+refer to the source code for the "sqlite" program in the
+file src/shell.c of the source tree.
+(Additional information about sqlite is available at
+sqlite.html.)
+See also the sources to the Tcl interface for SQLite in
+the source file src/tclsqlite.c.
+}
+
puts {