* src/regex-emacs.c (STORE_NUMBER): Make it a plain function

This commit is contained in:
Stefan Monnier 2023-09-29 15:22:06 -04:00
parent cc0d7d7a38
commit 35fbf6f158

View file

@ -340,11 +340,12 @@ typedef enum
/* Store NUMBER in two contiguous bytes starting at DESTINATION. */
#define STORE_NUMBER(destination, number) \
do { \
(destination)[0] = (number) & 0377; \
(destination)[1] = (number) >> 8; \
} while (false)
static void
STORE_NUMBER (unsigned char *destination, int16_t number)
{
(destination)[0] = (number) & 0377;
(destination)[1] = (number) >> 8;
}
/* Same as STORE_NUMBER, except increment DESTINATION to
the byte after where the number is stored. Therefore, DESTINATION