* src/regex-emacs.c (STORE_NUMBER): Make it a plain function
This commit is contained in:
parent
cc0d7d7a38
commit
35fbf6f158
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue