tweaks: elide two multiplications with something that is always 1
parent
ab6390cad0
commit
c848ec3d53
|
@ -59,9 +59,9 @@
|
||||||
#define ISSET(flag) ((FLAGS(flag) & FLAGMASK(flag)) != 0)
|
#define ISSET(flag) ((FLAGS(flag) & FLAGMASK(flag)) != 0)
|
||||||
#define TOGGLE(flag) FLAGS(flag) ^= FLAGMASK(flag)
|
#define TOGGLE(flag) FLAGS(flag) ^= FLAGMASK(flag)
|
||||||
|
|
||||||
/* Macros for character allocation and more. */
|
/* Macros for allocation of character strings. */
|
||||||
#define charalloc(howmuch) (char *)nmalloc((howmuch) * sizeof(char))
|
#define charalloc(howmuch) (char *)nmalloc(howmuch)
|
||||||
#define charealloc(ptr, howmuch) (char *)nrealloc(ptr, (howmuch) * sizeof(char))
|
#define charealloc(ptr, howmuch) (char *)nrealloc(ptr, howmuch)
|
||||||
|
|
||||||
/* In UTF-8 a character is at most six bytes long. */
|
/* In UTF-8 a character is at most six bytes long. */
|
||||||
#ifdef ENABLE_UTF8
|
#ifdef ENABLE_UTF8
|
||||||
|
|
Loading…
Reference in New Issue