about summary refs log tree commit diff stats
path: root/src/LYStrings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYStrings.h')
-rw-r--r--src/LYStrings.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/LYStrings.h b/src/LYStrings.h
index 0fcebc98..5a4e95b0 100644
--- a/src/LYStrings.h
+++ b/src/LYStrings.h
@@ -78,6 +78,8 @@ extern char * LYno_attr_mbcs_case_strstr PARAMS((
 	int *		nstartp,
 	int *		nendp));
 
+#define non_empty(s) ((s) != NULL && *(s) != '\0')
+
 #define LYno_attr_mb_strstr(chptr, tarptr, utf_flag, count_gcells, nstartp, nendp) \
 	(case_sensitive \
 	    ? LYno_attr_mbcs_strstr(chptr, tarptr, utf_flag, count_gcells, nstartp, nendp) \