Browse code

str: kamailio str_init compatibility macro

Andrei Pelinescu-Onciul authored on 21/11/2008 00:03:51
Showing 1 changed files
... ...
@@ -84,6 +84,9 @@ typedef struct _str str;
84 84
  */
85 85
 #define STR_STATIC_INIT(v) {(v), sizeof(v) - 1}
86 86
 
87
+/* kamailio compatibility macro (same thing as above) */
88
+#define str_init(v) STR_STATIC_INIT(v)
89
+
87 90
 /** Initializes ::str string with NULL pointer and zero length.
88 91
  * This is a convenience macro that can be used to initialize
89 92
  * ::str string variable to NULL string with zero length: