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
-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
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
-9e36a6014b9e8298d8fff71f0f1e3fd5610c30bd
\ No newline at end of file
+1d3286702cf267857190e6082db15ba4132453d7
\ No newline at end of file
#
# 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 {<html>
<head>
a C or C++ program. This document gives an overview of the C/C++
programming interface.</p>
+<h2>The API</h2>
+
<p>The interface to the SQLite library consists of 4 functions
and one opaque data structure.</p>
<blockquote><pre>
typedef struct sqlite sqlite;
+
sqlite *sqlite_open(const char *filename, int mode, char **errmsg);
+
void sqlite_close(sqlite*);
+
int sqlite_exec(
sqlite*,
char *sql,
void*,
char **errmsg
);
+
int sqlite_complete(const char *sql);
</pre></blockquote>
<p>For the purpose of the <b>sqlite_complete()</b> function, an SQL
statement is complete if it ends in a semicolon.</p>
+<h2>Usage Examples</h2>
+
+<p>For examples of how the SQLite C/C++ interface can be used,
+refer to the source code for the "sqlite" program in the
+file <b>src/shell.c</b> of the source tree.
+(Additional information about sqlite is available at
+<a href="sqlite.html">sqlite.html</a>.)
+See also the sources to the Tcl interface for SQLite in
+the source file <b>src/tclsqlite.c</b>.</p>
+}
+
puts {
<p><hr /></p>
<p><a href="index.html"><img src="/goback.jpg" border=0 />