Don't check for NULL strings in CONST_STR_LEN

personal/stbuehler/wip
Stefan Bühler 14 years ago
parent 12b421b9a9
commit 87cd65e98f

@ -49,7 +49,7 @@
#define L_GOFFSET_FORMAT G_GINT64_FORMAT
#define L_GOFFSET_MODIFIER G_GINT64_MODIFIER
#define CONST_STR_LEN(x) (x), (x) ? sizeof(x) - 1 : 0
#define CONST_STR_LEN(x) (x), sizeof(x) - 1
#define GSTR_LEN(x) (x) ? (x)->str : "", (x) ? (x)->len : 0
#define GSTR_SAFE_STR(x) ((x && x->str) ? x->str : "(null)")

Loading…
Cancel
Save