mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +00:00
Kill some magic numbers and clean up some whitespace.
This commit is contained in:
parent
a759a5a376
commit
1402feafd2
1 changed files with 5 additions and 4 deletions
|
@ -93,8 +93,9 @@ typedef struct pldata_s { // Unparsed property list string
|
|||
// Ugly defines for fast checking and conversion from char to number
|
||||
#define inrange(ch,min,max) ((ch) >= (min) && (ch) <= (max))
|
||||
#define char2num(ch) \
|
||||
inrange((ch), '0', '9') ? ((ch) - 0x30) \
|
||||
: (inrange((ch), 'a', 'f') ? ((ch) - 0x57) : ((ch) - 0x37))
|
||||
(inrange((ch), '0', '9') ? ((ch) - '0') \
|
||||
: 10 + (inrange((ch), 'a', 'f') ? ((ch) - 'a') \
|
||||
: ((ch) - 'A')))
|
||||
|
||||
static byte quotable_bitmap[32];
|
||||
static inline int
|
||||
|
|
Loading…
Reference in a new issue