Skip to content

Commit

Permalink
This isn't right, but at least __ctype_b_loc() doesn't crash everythi…
Browse files Browse the repository at this point in the history
…ng now.
  • Loading branch information
icculus committed Feb 11, 2013
1 parent 1d59090 commit ff9c1d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions macelf/mactrampolines.c
Expand Up @@ -511,11 +511,14 @@ static int32_t **mactrampoline___ctype_toupper_loc(void)
return &ptoupper_array;
} // mactrampoline__ctype_toupper_loc

static const unsigned short **mactrampoline___ctype_b_loc(void)
static const uint16_t **mactrampoline___ctype_b_loc(void)
{
STUBBED("write me");
STUBBED("this should be thread-local, too");
return NULL;
// return NULL;
static const uint16_t barray[384];
static const uint16_t *pbarray = barray + 128;
return &pbarray;
} // mactrampoline___ctype_b_loc

// mbstate_t is totally different on Mac and Linux.
Expand Down

0 comments on commit ff9c1d7

Please sign in to comment.