diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2018-02-14 14:44:38 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2018-02-14 14:44:38 +0000 |
commit | c9f9bf7a01281c0b591c5df6bac04399630bdf48 (patch) | |
tree | bd028f24edcc0804e07d698984689e2186b7a768 | |
parent | 885daa2d99a9bbccdf44a29e243a784c5165641a (diff) |
code clean up; fixed luatex_svnversion.h
git-svn-id: svn://tug.org/texlive/trunk@46633 c570f23f-e606-0410-a88d-b1316a301751
7 files changed, 21 insertions, 9 deletions
diff --git a/Build/source/texk/web2c/luatexdir/font/mapfile.h b/Build/source/texk/web2c/luatexdir/font/mapfile.h index 928a0e91904..ad752af744f 100644 --- a/Build/source/texk/web2c/luatexdir/font/mapfile.h +++ b/Build/source/texk/web2c/luatexdir/font/mapfile.h @@ -110,7 +110,7 @@ void fm_free(void); ff_entry *check_ff_exist(char *, boolean); void pdfmapfile(int); void pdfmapline(int); -void pdf_init_map_file(char *map_name); +void pdf_init_map_file(const char *map_name); fm_entry *new_fm_entry(void); void delete_fm_entry(fm_entry *); int avl_do_entry(fm_entry *, int); diff --git a/Build/source/texk/web2c/luatexdir/font/mapfile.w b/Build/source/texk/web2c/luatexdir/font/mapfile.w index 9460dac5a9f..f47c5b50487 100644 --- a/Build/source/texk/web2c/luatexdir/font/mapfile.w +++ b/Build/source/texk/web2c/luatexdir/font/mapfile.w @@ -613,13 +613,13 @@ void pdfmapline(int t) free(s); } -void pdf_init_map_file(char *map_name) +void pdf_init_map_file(const char *map_name) { assert(mitem == NULL); mitem = xtalloc(1, mapitem); mitem->mode = FM_DUPIGNORE; mitem->type = MAPFILE; - mitem->line = map_name; + mitem->line = xstrdup(map_name); } /**********************************************************************/ diff --git a/Build/source/texk/web2c/luatexdir/font/writettf.w b/Build/source/texk/web2c/luatexdir/font/writettf.w index 2a13b889979..4a016cbe403 100644 --- a/Build/source/texk/web2c/luatexdir/font/writettf.w +++ b/Build/source/texk/web2c/luatexdir/font/writettf.w @@ -539,10 +539,10 @@ static void ttf_copy_encoding(void) int i, *q; void **aa; char **glyph_names; - long *charcodes; - static char buf[SMALL_BUF_SIZE]; + /*long *charcodes;*/ + /*static char buf[SMALL_BUF_SIZE];*/ struct avl_traverser t; - ttfenc_entry *e = ttfenc_tab; + /*ttfenc_entry *e = ttfenc_tab;*/ assert(fd_cur->tx_tree != NULL); /* this must be set in |create_fontdictionary| */ diff --git a/Build/source/texk/web2c/luatexdir/lua/lepdflib.cc b/Build/source/texk/web2c/luatexdir/lua/lepdflib.cc index 0bc34909f9e..a16bf3bd461 100644 --- a/Build/source/texk/web2c/luatexdir/lua/lepdflib.cc +++ b/Build/source/texk/web2c/luatexdir/lua/lepdflib.cc @@ -1665,7 +1665,7 @@ static int m_Object_initCmd(lua_State * L) if (uin->pd != NULL && uin->pd->pc != uin->pc) pdfdoc_changed_error(L); s = luaL_checkstring(L, 2); - *((Object *) uin->d) = Object(objCmd, CHARP_CAST s); + *((Object *) uin->d) = Object(objCmd, s); return 0; } diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/lua_preload.c b/Build/source/texk/web2c/luatexdir/luasocket/src/lua_preload.c index b30f9a805fe..e9433dfdb12 100644 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/lua_preload.c +++ b/Build/source/texk/web2c/luatexdir/luasocket/src/lua_preload.c @@ -3,6 +3,18 @@ #include "lua.h" #include "lauxlib.h" +int luatex_mbox_lua_open(lua_State*); +int luatex_headers_lua_open(lua_State*); +int luatex_socket_lua_open(lua_State*); +int luatex_ltn12_lua_open(lua_State*); +int luatex_mime_lua_open(lua_State*); +int luatex_url_lua_open(lua_State*); +int luatex_tp_lua_open(lua_State*); +int luatex_smtp_lua_open(lua_State*); +int luatex_http_lua_open(lua_State*); +int luatex_ftp_lua_open(lua_State*); + + #include "ftp_lua.c" #include "headers_lua.c" #include "http_lua.c" diff --git a/Build/source/texk/web2c/luatexdir/luatex.c b/Build/source/texk/web2c/luatexdir/luatex.c index 5e9e61b919e..1c8694987a4 100644 --- a/Build/source/texk/web2c/luatexdir/luatex.c +++ b/Build/source/texk/web2c/luatexdir/luatex.c @@ -198,7 +198,7 @@ void init_start_time(void) { just use its abstract interface. */ char *source_date_epoch = kpse_var_value("SOURCE_DATE_EPOCH"); - if (source_date_epoch && source_date_epoch != '\0' ) { + if (source_date_epoch) { errno = 0; epoch = strtoull(source_date_epoch, &endptr, 10); if (*endptr != '\0' || errno != 0) { diff --git a/Build/source/texk/web2c/luatexdir/luatex_svnversion.h b/Build/source/texk/web2c/luatexdir/luatex_svnversion.h index 3b575dee5fe..6aa47910557 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 6587 +#define luatex_svn_revision 6602 |