]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Remove some unused macros and types from fts3.c.
authordan <dan@noemail.net>
Thu, 10 Dec 2009 18:38:54 +0000 (18:38 +0000)
committerdan <dan@noemail.net>
Thu, 10 Dec 2009 18:38:54 +0000 (18:38 +0000)
FossilOrigin-Name: 83a80efe8a6c3d53a7f80b4c5f4e0f40aa0aa52f

ext/fts3/fts3.c
manifest
manifest.uuid

index 2649c4101ebc9a3c1c6d0390e4dcd2a84eb27fe6..9f418692cf5984f4c0536fe4722ec798cf87ad15 100644 (file)
   SQLITE_EXTENSION_INIT1
 #endif
 
-
-
-/* TODO(shess) MAN, this thing needs some refactoring.  At minimum, it
-** would be nice to order the file better, perhaps something along the
-** lines of:
-**
-**  - utility functions
-**  - table setup functions
-**  - table update functions
-**  - table query functions
-**
-** Put the query functions last because they're likely to reference
-** typedefs or functions from the table update section.
-*/
-
-#if 0
-# define FTSTRACE(A)  printf A; fflush(stdout)
-#else
-# define FTSTRACE(A)
-#endif
-
-typedef enum DocListType {
-  DL_DOCIDS,              /* docids only */
-  DL_POSITIONS,           /* docids + positions */
-  DL_POSITIONS_OFFSETS    /* docids + positions + offsets */
-} DocListType;
-
-/*
-** By default, only positions and not offsets are stored in the doclists.
-** To change this so that offsets are stored too, compile with
-**
-**          -DDL_DEFAULT=DL_POSITIONS_OFFSETS
-**
-** If DL_DEFAULT is set to DL_DOCIDS, your table can only be inserted
-** into (no deletes or updates).
-*/
-#ifndef DL_DEFAULT
-# define DL_DEFAULT DL_POSITIONS
-#endif
-
-enum {
-  POS_END = 0,        /* end of this position list */
-  POS_COLUMN,         /* followed by new column number */
-  POS_BASE
-};
-
-/* utility functions */
-
-/* CLEAR() and SCRAMBLE() abstract memset() on a pointer to a single
-** record to prevent errors of the form:
-**
-** my_function(SomeType *b){
-**   memset(b, '\0', sizeof(b));  // sizeof(b)!=sizeof(*b)
-** }
-*/
-/* TODO(shess) Obvious candidates for a header file. */
-#define CLEAR(b) memset(b, '\0', sizeof(*(b)))
-
-#ifndef NDEBUG
-#  define SCRAMBLE(b) memset(b, 0x55, sizeof(*(b)))
-#else
-#  define SCRAMBLE(b)
-#endif
-
 /* 
 ** Write a 64-bit variable-length integer to memory starting at p[0].
 ** The length of data written will be between 1 and FTS3_VARINT_MAX bytes.
index 2a4097d664415a4673a020a8d0a3cc10b8b97ca1..f5a1c62b2122400080f6db3f95b04d77e8ba749c 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\shandling\sof\s"WHERE\scol\sMATCH\s?\sAND\sdocid\s=\s?"\sclauses\sin\sfts3.
-D 2009-12-10T18:29:05
+C Remove\ssome\sunused\smacros\sand\stypes\sfrom\sfts3.c.
+D 2009-12-10T18:38:54
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in c5827ead754ab32b9585487177c93bb00b9497b3
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -56,7 +56,7 @@ F ext/fts2/mkfts2amal.tcl 974d5d438cb3f7c4a652639262f82418c1e4cff0
 F ext/fts3/README.syntax a19711dc5458c20734b8e485e75fb1981ec2427a
 F ext/fts3/README.tokenizers 998756696647400de63d5ba60e9655036cb966e9
 F ext/fts3/README.txt 8c18f41574404623b76917b9da66fcb0ab38328d
-F ext/fts3/fts3.c 2542d222475c97e0b73ed3323a2905e81fef648a
+F ext/fts3/fts3.c b79e729c851bb0bfe5c1d6755e88bba26331d2dd
 F ext/fts3/fts3.h 3a10a0af180d502cecc50df77b1b22df142817fe
 F ext/fts3/fts3Int.h 1419e2973b44ee78f0ae8f7e03abfa2bdaf14f54
 F ext/fts3/fts3_expr.c fcf6812dbfd9cb9a2cabaf50e741411794f83e7e
@@ -778,7 +778,7 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
-P 61efff414254f209f1c69728ae2da3b3888b7290
-R 317e4960d3972e5703628a8e2153357f
+P 6cbbae849990d99b7ffe252b642d6be49d0c7235
+R 67e72b818fcb37f382269bc958948c54
 U dan
-Z def62a3a7397449ccead2b257ddb1820
+Z b4579d0afa6e2a80ce4411e6eade6c04
index 58afce12b7a713700819caa4ce6b078f4fd9c28e..1aa64311471acfc50d218e7e7351df9da75ea957 100644 (file)
@@ -1 +1 @@
-6cbbae849990d99b7ffe252b642d6be49d0c7235
\ No newline at end of file
+83a80efe8a6c3d53a7f80b4c5f4e0f40aa0aa52f
\ No newline at end of file