Browse Source

Kamailio compatiblity changes: REPLACE_BUFFER_SIZE

 * Move the definition of MAX_REPLACE_WITH to the beginning of the file
 * Add the macro configuring default size of static buffer
   REPLACE_BUFFER_SIZE
Jan Janak 16 years ago
parent
commit
6e65d12aae
1 changed files with 2 additions and 1 deletions
  1. 2 1
      re.c

+ 2 - 1
re.c

@@ -40,7 +40,8 @@
 
 
 #include <string.h>
 #include <string.h>
 
 
-
+#define MAX_REPLACE_WITH 100
+#define REPLACE_BUFFER_SIZE 1024
 
 
 void subst_expr_free(struct subst_expr* se)
 void subst_expr_free(struct subst_expr* se)
 {
 {