Commit 24849c1b authored by Paul Eggert's avatar Paul Eggert

Inline a couple of functions that were macros

This reclaims a bit of performance when compiling with gcc -Og.
These functions were macros until I changed them in
* src/casefiddle.c (make_char_unibyte):
* src/ccl.c (GET_TRANSLATION_TABLE): Now inline.
parent 7b82650c
Pipeline #5374 failed with stage
in 90 minutes and 2 seconds
......@@ -221,7 +221,7 @@ case_character (struct casing_str_buf *buf, struct casing_context *ctx,
/* If C is not ASCII, make it unibyte. */
static int
static inline int
make_char_unibyte (int c)
return ASCII_CHAR_P (c) ? c : CHAR_TO_BYTE8 (c);
......@@ -856,7 +856,7 @@ struct ccl_prog_stack
static struct ccl_prog_stack ccl_prog_stack_struct[256];
/* Return a translation table of id number ID. */
static Lisp_Object
static inline Lisp_Object
return XCDR (XVECTOR (Vtranslation_table_vector)->contents[id]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment