Fossil SCM

Updated the function comment on glob_create() to match what it actually does.

wyoung 2023-05-22 21:32 trunk
Commit c43205d738bc36620d3bc2cad12a4de97f32eca72daa9c0cdf632cd5b6191fcc
1 file changed +6 -5
+6 -5
--- src/glob.c
+++ src/glob.c
@@ -89,17 +89,18 @@
8989
char **azPattern; /* Array of pointers to patterns */
9090
};
9191
#endif /* INTERFACE */
9292
9393
/*
94
-** zPatternList is a comma-separated list of glob patterns. Parse up
95
-** that list and use it to create a new Glob object.
94
+** zPatternList is a comma- or whitespace-separated list of glob patterns.
95
+** Parse that list and use it to create a new Glob object.
9696
**
97
-** Elements of the glob list may be optionally enclosed in single our
98
-** double-quotes. This allows a comma to be part of a glob pattern.
97
+** Elements of the glob list may be optionally enclosed in single- or
98
+** double-quotes. This allows commas and whitespace to be part of a
99
+** glob pattern.
99100
**
100
-** Leading and trailing spaces on unquoted glob patterns are ignored.
101
+** Leading and trailing spaces on glob patterns are ignored unless quoted.
101102
**
102103
** An empty or null pattern list results in a null glob, which will
103104
** match nothing.
104105
*/
105106
Glob *glob_create(const char *zPatternList){
106107
--- src/glob.c
+++ src/glob.c
@@ -89,17 +89,18 @@
89 char **azPattern; /* Array of pointers to patterns */
90 };
91 #endif /* INTERFACE */
92
93 /*
94 ** zPatternList is a comma-separated list of glob patterns. Parse up
95 ** that list and use it to create a new Glob object.
96 **
97 ** Elements of the glob list may be optionally enclosed in single our
98 ** double-quotes. This allows a comma to be part of a glob pattern.
 
99 **
100 ** Leading and trailing spaces on unquoted glob patterns are ignored.
101 **
102 ** An empty or null pattern list results in a null glob, which will
103 ** match nothing.
104 */
105 Glob *glob_create(const char *zPatternList){
106
--- src/glob.c
+++ src/glob.c
@@ -89,17 +89,18 @@
89 char **azPattern; /* Array of pointers to patterns */
90 };
91 #endif /* INTERFACE */
92
93 /*
94 ** zPatternList is a comma- or whitespace-separated list of glob patterns.
95 ** Parse that list and use it to create a new Glob object.
96 **
97 ** Elements of the glob list may be optionally enclosed in single- or
98 ** double-quotes. This allows commas and whitespace to be part of a
99 ** glob pattern.
100 **
101 ** Leading and trailing spaces on glob patterns are ignored unless quoted.
102 **
103 ** An empty or null pattern list results in a null glob, which will
104 ** match nothing.
105 */
106 Glob *glob_create(const char *zPatternList){
107

Keyboard Shortcuts

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