summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-09 09:05:26 -0500
committerJune McEnroe <june@causal.agency>2019-11-09 09:05:26 -0500
commita51cab7eed76c28888fef9c0ef1687dc0b295493 (patch)
tree0170fd0cce5ee5c771aff861a1790ec85b2a6b91
parentDefine macro for bit flag enums (diff)
downloadpounce-a51cab7eed76c28888fef9c0ef1687dc0b295493.tar.gz
pounce-a51cab7eed76c28888fef9c0ef1687dc0b295493.zip
Avoid the reserved _A names with BIT macro
-rw-r--r--bounce.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bounce.h b/bounce.h
index c523227..aa7fda1 100644
--- a/bounce.h
+++ b/bounce.h
@@ -30,7 +30,7 @@
 #define SOURCE_URL "https://code.causal.agency/june/pounce"
 #define ORIGIN "irc.invalid"
 
-#define BIT(x) x##Bit, x = 1 << x##Bit, _##x##Bit = x##Bit
+#define BIT(x) x##Bit, x = 1 << x##Bit, x##Bit_ = x##Bit
 #define ARRAY_LEN(a) (sizeof(a) / sizeof(a[0]))
 
 typedef unsigned char byte;
an title='2020-01-01 16:54:04 -0500'>2020-01-01Factor out hashing functionJune McEnroe 2020-01-01Add option for custom where expression to scoopJune McEnroe 2020-01-01Document ENVIRONMENT in scoop(1)June McEnroe 2019-12-31Add before and after optionsJune McEnroe 2019-12-31Add scoop IRC output formatJune McEnroe 2019-12-31Add scoop output format optionJune McEnroe 2019-12-31Refactor scoop formatters and group colored outputJune McEnroe 2019-12-31Add strftime format string optionJune McEnroe 2019-12-31Refactor binding in scoopJune McEnroe 2019-12-31Add option to group events by contextJune McEnroe 2019-12-31Add missing includeJune McEnroe 2019-12-31Use standout mode for highlightingJune McEnroe 2019-12-31Rewrite scoop(1) argument descriptionsJune McEnroe 2019-12-31Color both nicks in a changeJune McEnroe 2019-12-31Implement nick-colored outputJune McEnroe 2019-12-31Only enable highlighting on terminal outputJune McEnroe 2019-12-31Set up pager pipeJune McEnroe 2019-12-30Normalize date inputJune McEnroe 2019-12-30Add initial rough version of scoopJune McEnroe 2019-12-30Join with USING wherever possibleJune McEnroe 2019-12-30Add -D flag to prospective scoop manualJune McEnroe 2019-12-30Order results by ID in outer query in litterboxJune McEnroe 2019-12-30Use X macro for Type enumJune McEnroe 2019-12-30Remove scoop -ABCJune McEnroe 2019-12-30Add limit option for litterbox's search query interfaceJune McEnroe