From 0f4b45e62487e32e789571912fd2190168f753bc Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 1 Mar 2012 23:44:27 +0100 Subject: Get rid of string structures These were only used to construct constant strings with additional length fields. However, we can just use standard constant character arrays instead and let the compiler calculate the string length. Signed-off-by: Lukas Fleischer --- src/calcurse.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index c260ef6..fa026f8 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -210,7 +210,6 @@ } \ } while (0) -#define STRING_BUILD(str) {str, sizeof (str) - 1} #define STRINGIFY(x) #x #define TOSTRING(x) STRINGIFY(x) #define __FILE_POS__ __FILE__ ":" TOSTRING(__LINE__) @@ -248,11 +247,6 @@ struct dmon_conf { unsigned log; /* log daemon activity */ }; -struct string { - const char *str; - const int len; -}; - enum datefmt { DATEFMT_MMDDYYYY = 1, DATEFMT_DDMMYYYY, -- cgit v1.2.3-54-g00ecf