Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
small fix in scanner lib ; last version of manual -- trunk
Browse files Browse the repository at this point in the history
git-svn-id: https://serveur-svn.lri.fr/svn/modhel/luatex/trunk@7092 0b2b3880-5936-4365-a048-eb17d2e5a6bf
  • Loading branch information
luigiScarso committed Mar 1, 2019
1 parent 74c1e9c commit 6a7726a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion manual/luatex-enhancements.tex
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@
There are three new primitives to test the version of \LUATEX:

\unexpanded\def\VersionHack#1% otherwise different luatex and luajittex runs
{\cldcontext{(string.gsub(string.match("\luatexbanner","(.+)\letterpercent("),"jit",""))}}
{\ctxlua{%
local banner = "\luatexbanner"
local banner = string.match(banner,"(.+)\letterpercent(") or banner
context(string.gsub(banner ,"jit",""))%
}}

\starttabulate[|l|l|pl|]
\DB primitive \BC value
Expand Down
Binary file modified manual/luatex.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion manual/luatex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

\startdocument
[manual=Lua\TeX,
status=experimental,
status=stable,
version=1.10]

\startnotmode[*export]
Expand Down
4 changes: 2 additions & 2 deletions source/texk/web2c/luatexdir/lua/lnewtokenlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,10 @@ static int run_scan_int(lua_State * L)
*/

# define add_to_buffer(chr) \
if (chr <= 255) { \
if (chr <= 127) { \
luaL_addchar(&b,(unsigned) (char) chr); \
} else { \
uindex = uni2string((char *)word,(unsigned) chr); \
uindex = uni2string((char *)word,(unsigned int) chr); \
*uindex = '\0'; \
luaL_addstring(&b,(char *) word); \
}
Expand Down
2 changes: 1 addition & 1 deletion source/texk/web2c/luatexdir/luatex_svnversion.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define luatex_svn_revision 7088
#define luatex_svn_revision 7090

0 comments on commit 6a7726a

Please sign in to comment.