summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/luatexdir/NEWS10
-rw-r--r--Build/source/texk/web2c/luatexdir/font/mapfile.c2
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/lkpselib.c20
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/lpdfelib.c2
-rw-r--r--Build/source/texk/web2c/luatexdir/luatex_svnversion.h2
-rw-r--r--Master/texmf-dist/doc/luatex/base/luatex-backend.tex16
-rw-r--r--Master/texmf-dist/doc/luatex/base/luatex-tex.tex17
-rw-r--r--Master/texmf-dist/doc/luatex/base/luatex.pdfbin1559350 -> 1560213 bytes
8 files changed, 59 insertions, 10 deletions
diff --git a/Build/source/texk/web2c/luatexdir/NEWS b/Build/source/texk/web2c/luatexdir/NEWS
index f590c848a5c..f84ca997c3b 100644
--- a/Build/source/texk/web2c/luatexdir/NEWS
+++ b/Build/source/texk/web2c/luatexdir/NEWS
@@ -1,4 +1,14 @@
==============================================================
+LuaTeX 1.10.0 2019-03-15
+==============================================================
+
+This the release for TeX Live 2019.
+Small bug fixes, code clean up.
+This is a stable release: only bug-fixes until the next TeX Live.
+
+
+
+==============================================================
LuaTeX 1.09.2 2019-01-19
==============================================================
diff --git a/Build/source/texk/web2c/luatexdir/font/mapfile.c b/Build/source/texk/web2c/luatexdir/font/mapfile.c
index 5ea1e7ca0a2..077ffd691ab 100644
--- a/Build/source/texk/web2c/luatexdir/font/mapfile.c
+++ b/Build/source/texk/web2c/luatexdir/font/mapfile.c
@@ -519,6 +519,7 @@ static void fm_read_info(void)
&file_opened, &fm_buffer, &fm_size)) {
if (file_opened) {
if (fm_size > 0) {
+recorder_record_input(cur_file_name);
report_start_file(filetype_map,cur_file_name);
while (!fm_eof()) {
fm_scan_line();
@@ -539,6 +540,7 @@ static void fm_read_info(void)
} else {
fm_read_file();
report_start_file(filetype_map,cur_file_name);
+recorder_record_input(cur_file_name);
while (!fm_eof()) {
fm_scan_line();
mitem->lineno++;
diff --git a/Build/source/texk/web2c/luatexdir/lua/lkpselib.c b/Build/source/texk/web2c/luatexdir/lua/lkpselib.c
index b1dafa58ac2..fd80ea0c270 100644
--- a/Build/source/texk/web2c/luatexdir/lua/lkpselib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/lkpselib.c
@@ -825,6 +825,24 @@ static int lua_kpathsea_new(lua_State * L)
return 1;
}
+static int lua_record_input_file(lua_State * L)
+{
+ const char *name = lua_tostring(L, 1);
+ if (name != NULL) {
+ recorder_record_input(name);
+ }
+ return 0;
+}
+
+static int lua_record_output_file(lua_State * L)
+{
+ const char *name = lua_tostring(L, 1);
+ if (name != NULL) {
+ recorder_record_output(name);
+ }
+ return 0;
+}
+
static const struct luaL_Reg kpselib_m[] = {
{"__gc", lua_kpathsea_finish},
{"init_prog", lua_kpathsea_init_prog},
@@ -838,6 +856,8 @@ static const struct luaL_Reg kpselib_m[] = {
{"lookup", lua_kpathsea_lookup},
{"version", lua_kpse_version},
{"default_texmfcnf", show_texmfcnf},
+ {"record_input_file", lua_record_input_file},
+ {"record_output_file", lua_record_output_file},
{NULL, NULL} /* sentinel */
};
diff --git a/Build/source/texk/web2c/luatexdir/lua/lpdfelib.c b/Build/source/texk/web2c/luatexdir/lua/lpdfelib.c
index c4f598bf4e3..8f4f56d2d1e 100644
--- a/Build/source/texk/web2c/luatexdir/lua/lpdfelib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/lpdfelib.c
@@ -259,7 +259,7 @@ define_to_string(stream, "pdfe.stream")
static int pdfelib_tostring_reference(lua_State * L) { \
pdfe_reference *p = check_isreference(L, 1); \
if (p != NULL) { \
- lua_pushfstring(L, "<pdfe.reference " "%i>", p->onum); \
+ lua_pushfstring(L, "<pdfe.reference " "%i>", (int) p->onum); \
return 1; \
} \
return 0; \
diff --git a/Build/source/texk/web2c/luatexdir/luatex_svnversion.h b/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
index 60c619241e2..f82ab3bb193 100644
--- a/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
+++ b/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
@@ -1 +1 @@
-#define luatex_svn_revision 7120
+#define luatex_svn_revision 7124
diff --git a/Master/texmf-dist/doc/luatex/base/luatex-backend.tex b/Master/texmf-dist/doc/luatex/base/luatex-backend.tex
index 0ec9be9b0f7..21cdd728c11 100644
--- a/Master/texmf-dist/doc/luatex/base/luatex-backend.tex
+++ b/Master/texmf-dist/doc/luatex/base/luatex-backend.tex
@@ -578,12 +578,12 @@ detailed information.
\stopsubsection
-\startsubsection[title={\type {open}, \type {new}, \type {status}, \type {close}, \type {unencrypt}}]
+\startsubsection[title={\type {open}, \type {new}, \type {getstatus}, \type {close}, \type {unencrypt}}]
\libindex {open}
\libindex {new}
\libindex {new}
-\libindex {status}
+\libindex {getstatus}
\libindex {close}
\libindex {unencrypt}
@@ -603,7 +603,7 @@ pdfe.close(<pdfe document>)
You can check if a document opened well by:
\starttyping
-pdfe.status(<pdfe document>)
+pdfe.getstatus(<pdfe document>)
\stoptyping
The returned codes are:
@@ -627,18 +627,18 @@ pdfe.unencrypt(<pdfe document>,userpassword,ownerpassword)
\stopsubsection
-\startsubsection[title={\type {size}, \type {version}, \type {getnofobjects}, \type {getnofpages}}]
+\startsubsection[title={\type {getsize}, \type {getversion}, \type {getnofobjects}, \type {getnofpages}}]
-\libindex {size}
-\libindex {version}
+\libindex {getsize}
+\libindex {getversion}
\libindex {getnofobjects}
\libindex {getnofpages}
A successfully opened document can provide some information:
\starttyping
-bytes = size(<pdfe document>)
-major, minor = version(<pdfe document>)
+bytes = getsize(<pdfe document>)
+major, minor = getversion(<pdfe document>)
n = getnofobjects(<pdfe document>)
n = getnofpages(<pdfe document>)
bytes, waste = getnofpages(<pdfe document>)
diff --git a/Master/texmf-dist/doc/luatex/base/luatex-tex.tex b/Master/texmf-dist/doc/luatex/base/luatex-tex.tex
index 894227661ba..48bdeef119c 100644
--- a/Master/texmf-dist/doc/luatex/base/luatex-tex.tex
+++ b/Master/texmf-dist/doc/luatex/base/luatex-tex.tex
@@ -2504,6 +2504,23 @@ return values.
\stopsubsection
+\startsubsection[title={\type {record_input_file} and \type {record_output_file}}]
+
+\topicindex {files+recording}
+
+\libindex{record_input_file}
+\libindex{record_output_file}
+
+These two function can be used to register used files. Because callbacks can load
+files themselves you might need these helpers (if you use recording at all).
+
+\startfunctioncall
+kpse.record_input_file(<string> name)
+kpse.record_output_file(<string> name)
+\stopfunctioncall
+
+\stopsubsection
+
\startsubsection[title={\type {find_file}}]
\topicindex {files+finding}
diff --git a/Master/texmf-dist/doc/luatex/base/luatex.pdf b/Master/texmf-dist/doc/luatex/base/luatex.pdf
index 9ea3b0bdb5d..572b75d842d 100644
--- a/Master/texmf-dist/doc/luatex/base/luatex.pdf
+++ b/Master/texmf-dist/doc/luatex/base/luatex.pdf
Binary files differ