diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-01-22 12:20:35 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-01-22 12:20:35 +0000 |
commit | 68267fad21f7506f4613a9f7308e3a7c46d8f8e6 (patch) | |
tree | ba6c54bce6ce66285dd776bd8db92b350517d027 /Build/source/texk/web2c/luatexdir | |
parent | 249b1077f09eb70b8d06368e5fde89062bd82050 (diff) |
constify various filename strings
git-svn-id: svn://tug.org/texlive/trunk@16799 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/ChangeLog | 8 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/lkpselib.c | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luatangle.ch | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog index a408bed233d..2f666b8039c 100644 --- a/Build/source/texk/web2c/luatexdir/ChangeLog +++ b/Build/source/texk/web2c/luatexdir/ChangeLog @@ -1,3 +1,11 @@ +2010-01-22 Peter Breitenlohner <peb@mppmu.mpg.de> + + * luatangle.ch: Declare web_name, chg_name, pascal_name, and + pool_name as const_c_string. + + * lua/lkpselib.c (readable_file, lua_kpathsea_readable_file): + Drop non-const cast of {kpse,kpathsea}_readable_file() result. + 2010-01-03 Karl Berry <karl@tug.org> * luatex.ch: propagate "executed safely" wording change. diff --git a/Build/source/texk/web2c/luatexdir/lua/lkpselib.c b/Build/source/texk/web2c/luatexdir/lua/lkpselib.c index d314a8c565f..437f118942b 100644 --- a/Build/source/texk/web2c/luatexdir/lua/lkpselib.c +++ b/Build/source/texk/web2c/luatexdir/lua/lkpselib.c @@ -379,7 +379,7 @@ static int readable_file(lua_State * L) { const char *name = luaL_checkstring(L, 1); TEST_PROGRAM_NAME_SET; - lua_pushstring(L, (char *) kpse_readable_file(name)); + lua_pushstring(L, kpse_readable_file(name)); return 1; } @@ -387,7 +387,7 @@ static int lua_kpathsea_readable_file(lua_State * L) { kpathsea *kp = (kpathsea *) luaL_checkudata(L, 1, KPATHSEA_METATABLE); const char *name = luaL_checkstring(L, 2); - lua_pushstring(L, (char *) kpathsea_readable_file(*kp, name)); + lua_pushstring(L, kpathsea_readable_file(*kp, name)); return 1; } diff --git a/Build/source/texk/web2c/luatexdir/luatangle.ch b/Build/source/texk/web2c/luatexdir/luatangle.ch index 809af366a69..4e1ab58208e 100644 --- a/Build/source/texk/web2c/luatexdir/luatangle.ch +++ b/Build/source/texk/web2c/luatexdir/luatangle.ch @@ -503,6 +503,6 @@ long_options[current_option].val := 0; @ Global filenames. @<Globals...@>= -@!web_name,@!chg_name,@!pascal_name,@!pool_name:c_string; +@!web_name,@!chg_name,@!pascal_name,@!pool_name:const_c_string; @!@!allow_underlines:boolean; @z |