Compile string.reverse(), string.lower(), string.upper().

This commit is contained in:
Mike Pall
2013-04-26 00:32:08 +02:00
parent 61cb25b0ca
commit b6adfff8f4
5 changed files with 42 additions and 8 deletions

View File

@@ -133,13 +133,13 @@ LJLIB_ASM(string_rep)
return FFH_RES(1);
}
LJLIB_ASM(string_reverse)
LJLIB_ASM(string_reverse) LJLIB_REC(string_op IRCALL_lj_buf_putstr_reverse)
{
lj_lib_checkstr(L, 1);
return FFH_RETRY;
}
LJLIB_ASM_(string_lower)
LJLIB_ASM_(string_upper)
LJLIB_ASM_(string_lower) LJLIB_REC(string_op IRCALL_lj_buf_putstr_lower)
LJLIB_ASM_(string_upper) LJLIB_REC(string_op IRCALL_lj_buf_putstr_upper)
/* ------------------------------------------------------------------------ */