projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
lib
/
rx.c
diff --git
a/lib/rx.c
b/lib/rx.c
index
0158f16
..
e7c4f3c
100644
(file)
--- a/
lib/rx.c
+++ b/
lib/rx.c
@@
-16,7
+16,7
@@
rx_t *rx_compile (const char *s, int flags) {
rx_t *pp = safe_calloc (1, sizeof (rx_t));
rx_t *rx_compile (const char *s, int flags) {
rx_t *pp = safe_calloc (1, sizeof (rx_t));
- pp->pattern = s
afe_str
dup (s);
+ pp->pattern = s
tr_
dup (s);
pp->rx = safe_calloc (1, sizeof (regex_t));
if (REGCOMP(pp->rx, NONULL (s), flags) != 0)
rx_free (&pp);
pp->rx = safe_calloc (1, sizeof (regex_t));
if (REGCOMP(pp->rx, NONULL (s), flags) != 0)
rx_free (&pp);
@@
-32,7
+32,7
@@
void rx_free (rx_t** p) {
}
int rx_compare (const rx_t* r1, const rx_t* r2) {
}
int rx_compare (const rx_t* r1, const rx_t* r2) {
- return (s
afe_str
cmp (r1->pattern, r2->pattern));
+ return (s
tr_
cmp (r1->pattern, r2->pattern));
}
int rx_list_match (list2_t* l, const char* pat) {
}
int rx_list_match (list2_t* l, const char* pat) {
@@
-50,7
+50,7
@@
int rx_lookup (list2_t* l, const char* pat) {
if (!pat || !*pat || list_empty(l))
return (-1);
for (i = 0; i < l->length; i++)
if (!pat || !*pat || list_empty(l))
return (-1);
for (i = 0; i < l->length; i++)
- if (s
afe_str
cmp (((rx_t*) l->data[i])->pattern, pat) == 0)
+ if (s
tr_
cmp (((rx_t*) l->data[i])->pattern, pat) == 0)
return (i);
return (-1);
}
return (i);
return (-1);
}