diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-03-01 23:44:27 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-03-12 20:36:22 +0100 |
commit | 0f4b45e62487e32e789571912fd2190168f753bc (patch) | |
tree | 69ba14eb3255f91d59856283e9568395f92d92fc /src/calcurse.h | |
parent | 2c9499bf272e06a62902711c6c20621ef3f80e64 (diff) | |
download | calcurse-0f4b45e62487e32e789571912fd2190168f753bc.zip |
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 6 |
1 files changed, 0 insertions, 6 deletions
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, |