From 35fbf6f15830f576fd1909f4a8d30e7ba1d777bd Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 29 Sep 2023 15:22:06 -0400 Subject: [PATCH] * src/regex-emacs.c (STORE_NUMBER): Make it a plain function --- src/regex-emacs.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/regex-emacs.c b/src/regex-emacs.c index f4ea867f3c0..a7b3e85969f 100644 --- a/src/regex-emacs.c +++ b/src/regex-emacs.c @@ -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