summaryrefslogtreecommitdiff
path: root/src/casefiddle.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-04-25 16:17:25 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-04-25 16:18:44 -0700
commit24849c1b8d348379203c07c400bedfd42059963f (patch)
tree9de2912fceabd822dc0a793daae678d0167abb60 /src/casefiddle.c
parent7b82650c60bd044c046601fc337c8a46b4fb853c (diff)
downloademacs-24849c1b8d348379203c07c400bedfd42059963f.tar.gz
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.
Diffstat (limited to 'src/casefiddle.c')
-rw-r--r--src/casefiddle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/casefiddle.c b/src/casefiddle.c
index 9a711a8fba6..debd2412238 100644
--- a/src/casefiddle.c
+++ b/src/casefiddle.c
@@ -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);