Skip to content

Commit

Permalink
__ctype_tolower() and toupper are data, not code. LSB docs were wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 22, 2013
1 parent f02cb19 commit 0889c71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
13 changes: 3 additions & 10 deletions macelf/mactrampolines.c
Expand Up @@ -541,15 +541,6 @@ static int32_t **mactrampoline___ctype_toupper_loc(void)
return &ptoupper_array;
} // mactrampoline__ctype_toupper_loc

static int mactrampoline___ctype_tolower(int ch)
{
return tolower(ch);
} // mactrampoline___ctype_tolower

static int mactrampoline___ctype_toupper(int ch)
{
return toupper(ch);
} // mactrampoline___ctype_toupper

static const uint16_t **mactrampoline___ctype_b_loc(void)
{
Expand Down Expand Up @@ -2814,7 +2805,9 @@ int build_trampolines(void)
insert_symbol("stdin", stdin) &&
insert_symbol("environ", environ) &&
insert_symbol("__environ", environ) &&
insert_symbol("program_invocation_name", program_invocation_name)
insert_symbol("program_invocation_name", program_invocation_name) &&
insert_symbol("__ctype_tolower", (void*) (mactrampoline___ctype_tolower_loc())) &&
insert_symbol("__ctype_toupper", (void*) (mactrampoline___ctype_toupper_loc()))
#define MACTRAMPOLINE(typ,fn,params,args,ret) \
&& (insert_symbol(#fn, mactrampoline_##fn))
#define MACTRAMPOLINE_PRINTF(fn, params, args) \
Expand Down
2 changes: 0 additions & 2 deletions macelf/mactrampolines.h
Expand Up @@ -98,8 +98,6 @@ MACTRAMPOLINE_OVERRIDE(dcgettext)
MACTRAMPOLINE_OVERRIDE(__ctype_b_loc)
MACTRAMPOLINE_OVERRIDE(__ctype_tolower_loc)
MACTRAMPOLINE_OVERRIDE(__ctype_toupper_loc)
MACTRAMPOLINE_OVERRIDE(__ctype_tolower)
MACTRAMPOLINE_OVERRIDE(__ctype_toupper)
MACTRAMPOLINE_OVERRIDE(mbsinit)
MACTRAMPOLINE_OVERRIDE(setlocale)
MACTRAMPOLINE_OVERRIDE(nl_langinfo)
Expand Down

0 comments on commit 0889c71

Please sign in to comment.