projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drop mem_alloc and mem_free, use my own hand crafted optmized macros that
[apps/madmutt.git]
/
lib
/
rx.c
diff --git
a/lib/rx.c
b/lib/rx.c
index
c0f6982
..
772fa8d
100644
(file)
--- a/
lib/rx.c
+++ b/
lib/rx.c
@@
-8,6
+8,8
@@
#include "config.h"
#endif
#include "config.h"
#endif
+#include <lib-lib/mem.h>
+
#include "rx.h"
#include "mem.h"
#include "rx.h"
#include "mem.h"
@@
-25,10
+27,10
@@
rx_t *rx_compile (const char *s, int flags) {
}
void rx_free (rx_t** p) {
}
void rx_free (rx_t** p) {
-
mem_fre
e(&(*p)->pattern);
+
p_delet
e(&(*p)->pattern);
regfree ((*p)->rx);
regfree ((*p)->rx);
-
mem_fre
e(&(*p)->rx);
-
mem_fre
e(p);
+
p_delet
e(&(*p)->rx);
+
p_delet
e(p);
}
int rx_compare (const rx_t* r1, const rx_t* r2) {
}
int rx_compare (const rx_t* r1, const rx_t* r2) {