Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Change the name of the include file to "sqlite3.h". The names of the shell command and static library become "sqlite3" and "libsqlite3.a". (CVS 1510) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
4c37b6d2b78e88e2a9dfed4d764caeb0 |
User & Date: | drh 2004-05-31 18:23:08.000 |
Context
2004-05-31
| ||
18:51 | Change all SQLITE3 preprocessor macros to SQLITE. Documentation updates. (CVS 1511) (check-in: adf7e29ff6 user: drh tags: trunk) | |
18:23 | Change the name of the include file to "sqlite3.h". The names of the shell command and static library become "sqlite3" and "libsqlite3.a". (CVS 1510) (check-in: 4c37b6d2b7 user: drh tags: trunk) | |
18:22 | Begin adding documentation for version 3.0. (CVS 1509) (check-in: 2005bfdad0 user: drh tags: trunk) | |
Changes
Changes to main.mk.
︙ | ︙ | |||
124 125 126 127 128 129 130 | $(TOP)/src/test5.c \ $(TOP)/src/vdbe.c \ $(TOP)/src/md5.c # Header files used by all library source files. # HDR = \ | | | 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | $(TOP)/src/test5.c \ $(TOP)/src/vdbe.c \ $(TOP)/src/md5.c # Header files used by all library source files. # HDR = \ sqlite3.h \ $(TOP)/src/btree.h \ config.h \ $(TOP)/src/hash.h \ opcodes.h \ $(TOP)/src/os.h \ $(TOP)/src/os_mac.h \ $(TOP)/src/os_unix.h \ |
︙ | ︙ | |||
146 147 148 149 150 151 152 | VDBEHDR = \ $(HDR) \ $(TOP)/src/vdbeInt.h # This is the default Makefile target. The objects listed here # are what get build when you type just "make" with no arguments. # | | | | | | | | | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | VDBEHDR = \ $(HDR) \ $(TOP)/src/vdbeInt.h # This is the default Makefile target. The objects listed here # are what get build when you type just "make" with no arguments. # all: sqlite3.h config.h libsqlite3.a sqlite3$(EXE) # Generate the file "last_change" which contains the date of change # of the most recently modified source code file # last_change: $(SRC) cat $(SRC) | grep '$$Id: ' | sort +4 | tail -1 \ | awk '{print $$5,$$6}' >last_change libsqlite3.a: $(LIBOBJ) $(AR) libsqlite3.a $(LIBOBJ) $(RANLIB) libsqlite3.a sqlite3$(EXE): $(TOP)/src/shell.c libsqlite3.a sqlite3.h $(TCCX) $(READLINE_FLAGS) -o sqlite3$(EXE) $(TOP)/src/shell.c \ libsqlite3.a $(LIBREADLINE) $(THREADLIB) objects: $(LIBOBJ_ORIG) # This target creates a directory named "tsrc" and fills it with # copies of all of the C source code and header files needed to # build on the target system. Some of the C source code and header # files are automatically generated. This target takes care of |
︙ | ︙ | |||
290 291 292 293 294 295 296 | random.o: $(TOP)/src/random.c $(HDR) $(TCCX) -c $(TOP)/src/random.c select.o: $(TOP)/src/select.c $(HDR) $(TCCX) -c $(TOP)/src/select.c | | | | 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 | random.o: $(TOP)/src/random.c $(HDR) $(TCCX) -c $(TOP)/src/random.c select.o: $(TOP)/src/select.c $(HDR) $(TCCX) -c $(TOP)/src/select.c sqlite3.h: $(TOP)/src/sqlite.h.in sed -e s/--VERS--/`cat ${TOP}/VERSION`/ \ -e s/--ENCODING--/$(ENCODING)/ \ $(TOP)/src/sqlite.h.in >sqlite3.h table.o: $(TOP)/src/table.c $(HDR) $(TCCX) -c $(TOP)/src/table.c tclsqlite.o: $(TOP)/src/tclsqlite.c $(HDR) $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/tclsqlite.c |
︙ | ︙ | |||
336 337 338 339 340 341 342 | $(TCCX) -c $(TOP)/src/vdbemem.c where.o: $(TOP)/src/where.c $(HDR) $(TCCX) -c $(TOP)/src/where.c # Rules for building test programs and for running tests # | | | | | | | | > > > | 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 | $(TCCX) -c $(TOP)/src/vdbemem.c where.o: $(TOP)/src/where.c $(HDR) $(TCCX) -c $(TOP)/src/where.c # Rules for building test programs and for running tests # tclsqlite3: $(TOP)/src/tclsqlite.c libsqlite3.a $(TCCX) $(TCL_FLAGS) -DTCLSH=1 -o tclsqlite3 \ $(TOP)/src/tclsqlite.c libsqlite3.a $(LIBTCL) testfixture$(EXE): $(TOP)/src/tclsqlite.c libsqlite3.a $(TESTSRC) $(TCCX) $(TCL_FLAGS) -DTCLSH=1 -DSQLITE_TEST=1 -o testfixture$(EXE) \ $(TESTSRC) $(TOP)/src/tclsqlite.c \ libsqlite3.a $(LIBTCL) $(THREADLIB) fulltest: testfixture$(EXE) sqlite3$(EXE) ./testfixture$(EXE) $(TOP)/test/all.test test: testfixture$(EXE) sqlite3$(EXE) ./testfixture$(EXE) $(TOP)/test/quick.test # Rules used to build documentation # arch.html: $(TOP)/www/arch.tcl tclsh $(TOP)/www/arch.tcl >arch.html arch.png: $(TOP)/www/arch.png cp $(TOP)/www/arch.png . c_interface.html: $(TOP)/www/c_interface.tcl tclsh $(TOP)/www/c_interface.tcl >c_interface.html capi3.html: $(TOP)/www/capi3.tcl tclsh $(TOP)/www/capi3.tcl >capi3.html changes.html: $(TOP)/www/changes.tcl tclsh $(TOP)/www/changes.tcl >changes.html copyright.html: $(TOP)/www/copyright.tcl tclsh $(TOP)/www/copyright.tcl >copyright.html copyright-release.html: $(TOP)/www/copyright-release.html |
︙ | ︙ | |||
383 384 385 386 387 388 389 390 391 392 393 394 395 396 | conflict.html: $(TOP)/www/conflict.tcl tclsh $(TOP)/www/conflict.tcl >conflict.html datatypes.html: $(TOP)/www/datatypes.tcl tclsh $(TOP)/www/datatypes.tcl >datatypes.html docs.html: $(TOP)/www/docs.tcl tclsh $(TOP)/www/docs.tcl >docs.html download.html: $(TOP)/www/download.tcl tclsh $(TOP)/www/download.tcl >download.html faq.html: $(TOP)/www/faq.tcl | > > > | 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 | conflict.html: $(TOP)/www/conflict.tcl tclsh $(TOP)/www/conflict.tcl >conflict.html datatypes.html: $(TOP)/www/datatypes.tcl tclsh $(TOP)/www/datatypes.tcl >datatypes.html datatype3.html: $(TOP)/www/datatype3.tcl tclsh $(TOP)/www/datatype3.tcl >datatype3.html docs.html: $(TOP)/www/docs.tcl tclsh $(TOP)/www/docs.tcl >docs.html download.html: $(TOP)/www/download.tcl tclsh $(TOP)/www/download.tcl >download.html faq.html: $(TOP)/www/faq.tcl |
︙ | ︙ | |||
443 444 445 446 447 448 449 | # Files to be published on the website. # DOC = \ arch.html \ arch.png \ | < > > > | 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 | # Files to be published on the website. # DOC = \ arch.html \ arch.png \ c_interface.html \ capi3.html \ changes.html \ copyright.html \ copyright-release.html \ copyright-release.pdf \ conflict.html \ datatypes.html \ datatype3.html \ docs.html \ download.html \ faq.html \ fileformat.html \ formatchng.html \ index.html \ lang.html \ |
︙ | ︙ | |||
475 476 477 478 479 480 481 | doc: common.tcl $(DOC) mkdir -p doc mv $(DOC) doc # Standard install and cleanup targets # | | | | | | | 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 | doc: common.tcl $(DOC) mkdir -p doc mv $(DOC) doc # Standard install and cleanup targets # install: sqlite3 libsqlite3.a sqlite3.h mv sqlite3 /usr/bin mv libsqlite3.a /usr/lib mv sqlite3.h /usr/include clean: rm -f *.o sqlite3 libsqlite3.a sqlite3.h opcodes.* rm -f lemon lempar.c parse.* sqlite*.tar.gz rm -f $(PUBLISH) rm -f *.da *.bb *.bbg gmon.out rm -rf tsrc |
Changes to src/md5.c.
︙ | ︙ | |||
26 27 28 29 30 31 32 | * To compute the message digest of a chunk of bytes, declare an * MD5Context structure, pass it to MD5Init, call MD5Update as * needed on buffers full of bytes, and then call MD5Final, which * will fill a supplied 16-byte array with the digest. */ #include <tcl.h> #include <string.h> | | | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | * To compute the message digest of a chunk of bytes, declare an * MD5Context structure, pass it to MD5Init, call MD5Update as * needed on buffers full of bytes, and then call MD5Final, which * will fill a supplied 16-byte array with the digest. */ #include <tcl.h> #include <string.h> #include "sqlite3.h" /* * If compiled on a machine that doesn't have a 32-bit integer, * you just set "uint32" to the appropriate datatype for an * unsigned 32-bit integer. For example: * * cc -Duint32='unsigned long' md5.c |
︙ | ︙ |
Changes to src/shell.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code to implement the "sqlite" command line ** utility for accessing SQLite databases. ** | | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code to implement the "sqlite" command line ** utility for accessing SQLite databases. ** ** $Id: shell.c,v 1.99 2004/05/31 18:23:08 drh Exp $ */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include "sqlite3.h" #include <ctype.h> #if !defined(_WIN32) && !defined(WIN32) && !defined(__MACOS__) # include <signal.h> # include <pwd.h> # include <unistd.h> # include <sys/types.h> |
︙ | ︙ | |||
1345 1346 1347 1348 1349 1350 1351 | process_input(&data, stdin); } } set_table_name(&data, 0); if( db ) sqlite3_close(db); return 0; } | < < < | 1345 1346 1347 1348 1349 1350 1351 | process_input(&data, stdin); } } set_table_name(&data, 0); if( db ) sqlite3_close(db); return 0; } |
Changes to src/sqliteInt.h.
1 2 3 4 5 6 7 8 9 10 11 12 13 | /* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Internal interface definitions for SQLite. ** | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | /* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Internal interface definitions for SQLite. ** ** @(#) $Id: sqliteInt.h,v 1.264 2004/05/31 18:23:09 drh Exp $ */ #include "config.h" #include "sqlite3.h" #include "hash.h" #include "parse.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> |
︙ | ︙ |