[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 35fbf6f1583: * src/regex-emacs.c (STORE_NUMBER): Make it a plain
From: |
Stefan Monnier |
Subject: |
master 35fbf6f1583: * src/regex-emacs.c (STORE_NUMBER): Make it a plain function |
Date: |
Fri, 29 Sep 2023 15:22:14 -0400 (EDT) |
branch: master
commit 35fbf6f15830f576fd1909f4a8d30e7ba1d777bd
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 35fbf6f1583: * src/regex-emacs.c (STORE_NUMBER): Make it a plain function,
Stefan Monnier <=