diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-08-13 10:39:29 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-08-13 11:02:09 +0100 |
commit | 48d6f23a26366212dc02042485b0f2481747d905 (patch) | |
tree | 3cdb2881e5b151ec280d0105f5375d77e498f41f /dev-lang/lua/files/5.2.0/02_all_hex_number_handling.upstream.patch | |
parent | lua-single.eclass: do not mention lua5-2 in eclassdocs (diff) | |
download | gentoo-48d6f23a26366212dc02042485b0f2481747d905.tar.gz gentoo-48d6f23a26366212dc02042485b0f2481747d905.tar.bz2 gentoo-48d6f23a26366212dc02042485b0f2481747d905.zip |
dev-lang/lua: remove last-rited slot 5.2
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-lang/lua/files/5.2.0/02_all_hex_number_handling.upstream.patch')
-rw-r--r-- | dev-lang/lua/files/5.2.0/02_all_hex_number_handling.upstream.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/dev-lang/lua/files/5.2.0/02_all_hex_number_handling.upstream.patch b/dev-lang/lua/files/5.2.0/02_all_hex_number_handling.upstream.patch deleted file mode 100644 index 26519e378e68..000000000000 --- a/dev-lang/lua/files/5.2.0/02_all_hex_number_handling.upstream.patch +++ /dev/null @@ -1,26 +0,0 @@ ---- lua-5.2.0.orig/src/llex.c 2007/12/28 15:32:23 2.25.1.3 -+++ lua-5.2.0/src/llex.c 2009/06/15 14:07:34 -@@ -223,12 +223,19 @@ - - /* LUA_NUMBER */ - static void read_numeral (LexState *ls, SemInfo *seminfo) { -+ const char *expo = "Ee"; -+ int first = ls->current; - lua_assert(lisdigit(ls->current)); -- do { -- save_and_next(ls); -- if (check_next(ls, "EePp")) /* exponent part? */ -+ save_and_next(ls); -+ if (first == '0' && check_next(ls, "Xx")) /* hexadecimal? */ -+ expo = "Pp"; -+ for (;;) { -+ if (check_next(ls, expo)) /* exponent part? */ - check_next(ls, "+-"); /* optional exponent sign */ -- } while (lislalnum(ls->current) || ls->current == '.'); -+ if (lisxdigit(ls->current) || ls->current == '.') -+ save_and_next(ls); -+ else break; -+ } - save(ls, '\0'); - buffreplace(ls, '.', ls->decpoint); /* follow locale for decimal point */ - if (!buff2d(ls->buff, &seminfo->r)) /* format error? */ |