aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-09-20 13:24:02 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-09-20 13:43:36 +0200
commit405848deebcb2709865c9f57b8f1b85da217e86d (patch)
treef1e328a6d0dc55def43499b46036493651cde201
parentb9991d47666bd5254ec08373cb72e4eead74a64f (diff)
downloadxK-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.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/degesch.c b/degesch.c
index d25a240..ed1fb34 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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
};