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.
Commit
e06e65bbf2b7a28579128da97a582d8a5e23c3e9
Parent
42e77333ba8fcdd…
1 file changed
+1
-1
+1
-1
| --- src/search.c | ||
| +++ src/search.c | ||
| @@ -102,11 +102,11 @@ | ||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /* |
| 105 | 105 | ** Compile a search pattern |
| 106 | 106 | */ |
| 107 | -Search *search_init( | |
| 107 | +static Search *search_init( | |
| 108 | 108 | const char *zPattern, /* The search pattern */ |
| 109 | 109 | const char *zMarkBegin, /* Start of a match */ |
| 110 | 110 | const char *zMarkEnd, /* End of a match */ |
| 111 | 111 | const char *zMarkGap, /* A gap between two matches */ |
| 112 | 112 | unsigned fSrchFlg /* Flags */ |
| 113 | 113 |
| --- 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 |