فهرست منبع

Backport STR_STATIC_INIT and STR_NULL macros from trunk, to simplify
backporting changes in modules.

Maxim Sobolev 20 سال پیش
والد
کامیت
57bce7b681
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      str.h

+ 2 - 0
str.h

@@ -37,5 +37,7 @@ struct _str{
 
 
 typedef struct _str str;
 typedef struct _str str;
 
 
+#define STR_STATIC_INIT(v) {(v), sizeof(v) - 1}
+#define STR_NULL {NULL, 0}
 
 
 #endif
 #endif