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 2020-04-17T14:57:25Z!eggert@cs.ucla.edu. * src/casefiddle.c (make_char_unibyte): * src/ccl.c (GET_TRANSLATION_TABLE): Now inline.
This commit is contained in:
parent
7b82650c60
commit
24849c1b8d
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
GET_TRANSLATION_TABLE (int id)
|
||||
{
|
||||
return XCDR (XVECTOR (Vtranslation_table_vector)->contents[id]);
|
||||
|
|
Loading…
Add table
Reference in a new issue