Fossil SCM

Change search_init() to be a file-scope symbol so that it does not conflict with a function of the same name in libel.so.

drh 2015-05-13 22:40 UTC trunk
Commit e06e65bbf2b7a28579128da97a582d8a5e23c3e9
1 file changed +1 -1
+1 -1
--- src/search.c
+++ src/search.c
@@ -102,11 +102,11 @@
102102
}
103103
104104
/*
105105
** Compile a search pattern
106106
*/
107
-Search *search_init(
107
+static Search *search_init(
108108
const char *zPattern, /* The search pattern */
109109
const char *zMarkBegin, /* Start of a match */
110110
const char *zMarkEnd, /* End of a match */
111111
const char *zMarkGap, /* A gap between two matches */
112112
unsigned fSrchFlg /* Flags */
113113
--- src/search.c
+++ src/search.c
@@ -102,11 +102,11 @@
102 }
103
104 /*
105 ** Compile a search pattern
106 */
107 Search *search_init(
108 const char *zPattern, /* The search pattern */
109 const char *zMarkBegin, /* Start of a match */
110 const char *zMarkEnd, /* End of a match */
111 const char *zMarkGap, /* A gap between two matches */
112 unsigned fSrchFlg /* Flags */
113
--- src/search.c
+++ src/search.c
@@ -102,11 +102,11 @@
102 }
103
104 /*
105 ** Compile a search pattern
106 */
107 static Search *search_init(
108 const char *zPattern, /* The search pattern */
109 const char *zMarkBegin, /* Start of a match */
110 const char *zMarkEnd, /* End of a match */
111 const char *zMarkGap, /* A gap between two matches */
112 unsigned fSrchFlg /* Flags */
113

Keyboard Shortcuts

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