Fossil SCM

Add comments describing each local variable in tagMatchExpression()

andygoth 2016-10-24 15:52 andygoth-timeline-ms
Commit 1219bffce072e7cb18ca8458b70f8bb01f45f22b
1 file changed +8 -4
+8 -4
--- src/timeline.c
+++ src/timeline.c
@@ -1247,14 +1247,18 @@
12471247
static const char *tagMatchExpression(
12481248
MatchStyle matchStyle, /* Match style code */
12491249
const char *zTag, /* Tag name, match pattern, or list of patterns */
12501250
int *pCount /* Pointer to match pattern count variable */
12511251
){
1252
- Blob blob = BLOB_INITIALIZER;
1253
- const char *zStart, *zDelimiter, *zEnd, *zPrefix, *zSuffix;
1254
- char cDel;
1255
- int i;
1252
+ Blob blob = BLOB_INITIALIZER; /* SQL expression string assembly buffer */
1253
+ const char *zStart; /* Text at start of expression */
1254
+ const char *zDelimiter; /* Text between expression terms */
1255
+ const char *zEnd; /* Text at end of expression */
1256
+ const char *zPrefix; /* Text before each match pattern */
1257
+ const char *zSuffix; /* Text after each match pattern */
1258
+ char cDel; /* Input delimiter character */
1259
+ int i; /* Input match pattern length counter */
12561260
12571261
/* Optimize exact matches by looking up the ID in advance to create a simple
12581262
* numeric comparison. Bypass the remainder of this function. */
12591263
if( matchStyle==MS_EXACT ){
12601264
*pCount = 1;
12611265
--- src/timeline.c
+++ src/timeline.c
@@ -1247,14 +1247,18 @@
1247 static const char *tagMatchExpression(
1248 MatchStyle matchStyle, /* Match style code */
1249 const char *zTag, /* Tag name, match pattern, or list of patterns */
1250 int *pCount /* Pointer to match pattern count variable */
1251 ){
1252 Blob blob = BLOB_INITIALIZER;
1253 const char *zStart, *zDelimiter, *zEnd, *zPrefix, *zSuffix;
1254 char cDel;
1255 int i;
 
 
 
 
1256
1257 /* Optimize exact matches by looking up the ID in advance to create a simple
1258 * numeric comparison. Bypass the remainder of this function. */
1259 if( matchStyle==MS_EXACT ){
1260 *pCount = 1;
1261
--- src/timeline.c
+++ src/timeline.c
@@ -1247,14 +1247,18 @@
1247 static const char *tagMatchExpression(
1248 MatchStyle matchStyle, /* Match style code */
1249 const char *zTag, /* Tag name, match pattern, or list of patterns */
1250 int *pCount /* Pointer to match pattern count variable */
1251 ){
1252 Blob blob = BLOB_INITIALIZER; /* SQL expression string assembly buffer */
1253 const char *zStart; /* Text at start of expression */
1254 const char *zDelimiter; /* Text between expression terms */
1255 const char *zEnd; /* Text at end of expression */
1256 const char *zPrefix; /* Text before each match pattern */
1257 const char *zSuffix; /* Text after each match pattern */
1258 char cDel; /* Input delimiter character */
1259 int i; /* Input match pattern length counter */
1260
1261 /* Optimize exact matches by looking up the ID in advance to create a simple
1262 * numeric comparison. Bypass the remainder of this function. */
1263 if( matchStyle==MS_EXACT ){
1264 *pCount = 1;
1265

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button