texlive[50545] trunk: fix to lpdfelib; slightly better --recorder;

commits+lscarso at tug.org commits+lscarso at tug.org
Sat Mar 23 07:22:22 CET 2019


Revision: 50545
          http://tug.org/svn/texlive?view=revision&revision=50545
Author:   lscarso
Date:     2019-03-23 07:22:21 +0100 (Sat, 23 Mar 2019)
Log Message:
-----------
fix to lpdfelib; slightly better  --recorder; updated manual

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/luatexdir/NEWS
    trunk/Build/source/texk/web2c/luatexdir/font/mapfile.c
    trunk/Build/source/texk/web2c/luatexdir/lua/lkpselib.c
    trunk/Build/source/texk/web2c/luatexdir/lua/lpdfelib.c
    trunk/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
    trunk/Master/texmf-dist/doc/luatex/base/luatex-backend.tex
    trunk/Master/texmf-dist/doc/luatex/base/luatex-tex.tex
    trunk/Master/texmf-dist/doc/luatex/base/luatex.pdf

Modified: trunk/Build/source/texk/web2c/luatexdir/NEWS
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/NEWS	2019-03-23 02:17:21 UTC (rev 50544)
+++ trunk/Build/source/texk/web2c/luatexdir/NEWS	2019-03-23 06:22:21 UTC (rev 50545)
@@ -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
 ==============================================================
 

Modified: trunk/Build/source/texk/web2c/luatexdir/font/mapfile.c
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/font/mapfile.c	2019-03-23 02:17:21 UTC (rev 50544)
+++ trunk/Build/source/texk/web2c/luatexdir/font/mapfile.c	2019-03-23 06:22:21 UTC (rev 50545)
@@ -519,6 +519,7 @@
                                  &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 @@
                 } 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++;

Modified: trunk/Build/source/texk/web2c/luatexdir/lua/lkpselib.c
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/lua/lkpselib.c	2019-03-23 02:17:21 UTC (rev 50544)
+++ trunk/Build/source/texk/web2c/luatexdir/lua/lkpselib.c	2019-03-23 06:22:21 UTC (rev 50545)
@@ -825,6 +825,24 @@
     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 @@
     {"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 */
 };
 

Modified: trunk/Build/source/texk/web2c/luatexdir/lua/lpdfelib.c
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/lua/lpdfelib.c	2019-03-23 02:17:21 UTC (rev 50544)
+++ trunk/Build/source/texk/web2c/luatexdir/lua/lpdfelib.c	2019-03-23 06:22:21 UTC (rev 50545)
@@ -259,7 +259,7 @@
 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; \

Modified: trunk/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/luatex_svnversion.h	2019-03-23 02:17:21 UTC (rev 50544)
+++ trunk/Build/source/texk/web2c/luatexdir/luatex_svnversion.h	2019-03-23 06:22:21 UTC (rev 50545)
@@ -1 +1 @@
-#define luatex_svn_revision 7120
+#define luatex_svn_revision 7124

Modified: trunk/Master/texmf-dist/doc/luatex/base/luatex-backend.tex
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/base/luatex-backend.tex	2019-03-23 02:17:21 UTC (rev 50544)
+++ trunk/Master/texmf-dist/doc/luatex/base/luatex-backend.tex	2019-03-23 06:22:21 UTC (rev 50545)
@@ -578,12 +578,12 @@
 
 \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 @@
 You can check if a document opened well by:
 
 \starttyping
-pdfe.status(<pdfe document>)
+pdfe.getstatus(<pdfe document>)
 \stoptyping
 
 The returned codes are:
@@ -627,10 +627,10 @@
 
 \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}
 
@@ -637,8 +637,8 @@
 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>)

Modified: trunk/Master/texmf-dist/doc/luatex/base/luatex-tex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/base/luatex-tex.tex	2019-03-23 02:17:21 UTC (rev 50544)
+++ trunk/Master/texmf-dist/doc/luatex/base/luatex-tex.tex	2019-03-23 06:22:21 UTC (rev 50545)
@@ -2504,6 +2504,23 @@
 
 \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}

Modified: trunk/Master/texmf-dist/doc/luatex/base/luatex.pdf
===================================================================
(Binary files differ)



More information about the tex-live-commits mailing list