Fossil SCM
Add comments describing each local variable in tagMatchExpression()
Commit
1219bffce072e7cb18ca8458b70f8bb01f45f22b
Parent
9ffc50171058859…
1 file changed
+8
-4
+8
-4
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -1247,14 +1247,18 @@ | ||
| 1247 | 1247 | static const char *tagMatchExpression( |
| 1248 | 1248 | MatchStyle matchStyle, /* Match style code */ |
| 1249 | 1249 | const char *zTag, /* Tag name, match pattern, or list of patterns */ |
| 1250 | 1250 | int *pCount /* Pointer to match pattern count variable */ |
| 1251 | 1251 | ){ |
| 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 */ | |
| 1256 | 1260 | |
| 1257 | 1261 | /* Optimize exact matches by looking up the ID in advance to create a simple |
| 1258 | 1262 | * numeric comparison. Bypass the remainder of this function. */ |
| 1259 | 1263 | if( matchStyle==MS_EXACT ){ |
| 1260 | 1264 | *pCount = 1; |
| 1261 | 1265 |
| --- 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 |