diff options
| author | Stefan Monnier | 2023-09-29 15:22:06 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2023-09-29 15:22:06 -0400 |
| commit | 35fbf6f15830f576fd1909f4a8d30e7ba1d777bd (patch) | |
| tree | 841ff41a8b9342117d7674dbf5d626009aa09ab7 /src | |
| parent | cc0d7d7a3867e4554f89262e4641c9845ee0d647 (diff) | |
| download | emacs-35fbf6f15830f576fd1909f4a8d30e7ba1d777bd.tar.gz emacs-35fbf6f15830f576fd1909f4a8d30e7ba1d777bd.zip | |
* src/regex-emacs.c (STORE_NUMBER): Make it a plain function
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex-emacs.c | 11 |
1 files 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 | |||
| 340 | 340 | ||
| 341 | /* Store NUMBER in two contiguous bytes starting at DESTINATION. */ | 341 | /* Store NUMBER in two contiguous bytes starting at DESTINATION. */ |
| 342 | 342 | ||
| 343 | #define STORE_NUMBER(destination, number) \ | 343 | static void |
| 344 | do { \ | 344 | STORE_NUMBER (unsigned char *destination, int16_t number) |
| 345 | (destination)[0] = (number) & 0377; \ | 345 | { |
| 346 | (destination)[1] = (number) >> 8; \ | 346 | (destination)[0] = (number) & 0377; |
| 347 | } while (false) | 347 | (destination)[1] = (number) >> 8; |
| 348 | } | ||
| 348 | 349 | ||
| 349 | /* Same as STORE_NUMBER, except increment DESTINATION to | 350 | /* Same as STORE_NUMBER, except increment DESTINATION to |
| 350 | the byte after where the number is stored. Therefore, DESTINATION | 351 | the byte after where the number is stored. Therefore, DESTINATION |