aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/numconvert.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/numconvert.c b/src/numconvert.c
index 7405048..f2906d4 100644
--- a/src/numconvert.c
+++ b/src/numconvert.c
@@ -90,15 +90,15 @@
90#define PACKAGE_VERSION "" 90#define PACKAGE_VERSION ""
91#endif 91#endif
92 92
93#define MY_OPT_BIN 0x01 93#define MY_OPT_BIN 0x0001
94#define MY_OPT_DEC 0x02 94#define MY_OPT_DEC 0x0002
95#define MY_OPT_HEX 0x04 95#define MY_OPT_HEX 0x0004
96#define MY_OPT_OCT 0x08 96#define MY_OPT_OCT 0x0008
97#define MY_OPT_SPACE 0x10 97#define MY_OPT_SPACE 0x0010
98#define MY_OPT_LEBYTE 0x20 ///< print binary in little endian byte order 98#define MY_OPT_LEBYTE 0x0020 ///< print binary in little endian byte order
99#define MY_OPT_LEBIT 0x40 ///< print binary in little endian bit order 99#define MY_OPT_LEBIT 0x0040 ///< print binary in little endian bit order
100#define MY_OPT_LIMIT 0x80 ///< print hex and binary with least amount of digits 100#define MY_OPT_LIMIT 0x0080 ///< print hex and binary with least amount of digits
101#define MY_OPT_ASCII 0x100 101#define MY_OPT_ASCII 0x0100
102 102
103#define MY_TOGGLE(value, bit) ( (value&bit) ? (value&(~bit)) : (value|bit)) 103#define MY_TOGGLE(value, bit) ( (value&bit) ? (value&(~bit)) : (value|bit))
104 104