chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More sensible ordering of search results in web interface.
[disorder]
/
lib
/
regsub.c
diff --git
a/lib/regsub.c
b/lib/regsub.c
index aab20e23f957c3429950554b94a78853381c0f00..1b7cad47813e217dc07f44ddc2744c114b7472fa 100644
(file)
--- a/
lib/regsub.c
+++ b/
lib/regsub.c
@@
-15,7
+15,9
@@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
+/** @file lib/regsub.c
+ * @brief Regexp substitution
+ */
#include "common.h"
#include <pcre.h>
#include "common.h"
#include <pcre.h>
@@
-141,7
+143,7
@@
const char *regsub(const pcre *re, const char *subject, const char *replace,
break;
}
if(rc <= 0 && rc != PCRE_ERROR_NOMATCH) {
break;
}
if(rc <= 0 && rc != PCRE_ERROR_NOMATCH) {
- error(0, "pcre_exec returned %d, subject '%s'", rc, subject);
+
disorder_
error(0, "pcre_exec returned %d, subject '%s'", rc, subject);
return 0;
}
if((flags & REGSUB_MUST_MATCH) && matches == 0)
return 0;
}
if((flags & REGSUB_MUST_MATCH) && matches == 0)