diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-09-20 13:24:02 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-09-20 13:43:36 +0200 |
commit | 405848deebcb2709865c9f57b8f1b85da217e86d (patch) | |
tree | f1e328a6d0dc55def43499b46036493651cde201 | |
parent | b9991d47666bd5254ec08373cb72e4eead74a64f (diff) | |
download | xK-405848deebcb2709865c9f57b8f1b85da217e86d.tar.gz xK-405848deebcb2709865c9f57b8f1b85da217e86d.tar.xz xK-405848deebcb2709865c9f57b8f1b85da217e86d.zip |
degesch: remove unnecessary quotes from macro defs
The behaviour is defined by the standard.
-rw-r--r-- | degesch.c | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -17,20 +17,20 @@ */ // A table of all attributes we use for output -#define ATTR_TABLE(XX) \ - XX( PROMPT, "prompt", "Terminal attrs for the prompt" ) \ - XX( RESET, "reset", "String to reset terminal attributes" ) \ - XX( DATE_CHANGE, "date_change", "Terminal attrs for date change" ) \ - XX( READ_MARKER, "read_marker", "Terminal attrs for the read marker" ) \ - XX( WARNING, "warning", "Terminal attrs for warnings" ) \ - XX( ERROR, "error", "Terminal attrs for errors" ) \ - XX( EXTERNAL, "external", "Terminal attrs for external lines" ) \ - XX( TIMESTAMP, "timestamp", "Terminal attrs for timestamps" ) \ - XX( HIGHLIGHT, "highlight", "Terminal attrs for highlights" ) \ - XX( ACTION, "action", "Terminal attrs for user actions" ) \ - XX( USERHOST, "userhost", "Terminal attrs for user@host" ) \ - XX( JOIN, "join", "Terminal attrs for joins" ) \ - XX( PART, "part", "Terminal attrs for parts" ) +#define ATTR_TABLE(XX) \ + XX( PROMPT, prompt, Terminal attrs for the prompt ) \ + XX( RESET, reset, String to reset terminal attributes ) \ + XX( DATE_CHANGE, date_change, Terminal attrs for date change ) \ + XX( READ_MARKER, read_marker, Terminal attrs for the read marker ) \ + XX( WARNING, warning, Terminal attrs for warnings ) \ + XX( ERROR, error, Terminal attrs for errors ) \ + XX( EXTERNAL, external, Terminal attrs for external lines ) \ + XX( TIMESTAMP, timestamp, Terminal attrs for timestamps ) \ + XX( HIGHLIGHT, highlight, Terminal attrs for highlights ) \ + XX( ACTION, action, Terminal attrs for user actions ) \ + XX( USERHOST, userhost, Terminal attrs for user@host ) \ + XX( JOIN, join, Terminal attrs for joins ) \ + XX( PART, part, Terminal attrs for parts ) enum { @@ -2480,7 +2480,7 @@ static struct config_schema g_config_behaviour[] = static struct config_schema g_config_attributes[] = { -#define XX(x, y, z) { .name = y, .comment = z, .type = CONFIG_ITEM_STRING, \ +#define XX(x, y, z) { .name = #y, .comment = #z, .type = CONFIG_ITEM_STRING, \ .on_change = on_config_attribute_change }, ATTR_TABLE (XX) #undef XX @@ -2675,7 +2675,7 @@ attr_by_name (const char *name) { static const char *table[ATTR_COUNT] = { -#define XX(x, y, z) [ATTR_ ## x] = y, +#define XX(x, y, z) [ATTR_ ## x] = #y, ATTR_TABLE (XX) #undef XX }; |