2010-01-25 Peter Breitenlohner * am/luatex (luatex_CFLAGS, luatex_CXXFLAGS), am/libluatex.am (libluatex_a_CFLAGS): Enable compiler warnings. Avoid most compiler warnings: * font/luatexfont.h, luatexdir/hyphen.h, image/writeimg.h, image/writejbig2.h, luatex.h, pdf/pagetree.h, pdf/pdfpage.h, utils/avlstuff.h, utils/utils.h: ANSI C function prototypes. * font/mapfile.c, font/writeenc.c, font/writefont.c, font/writet1.c, font/writettf.c, image/writeimg.c, image/writejbig2.c, lang/hyphen.c, pdf/pagetree.c, pdf/pdfpage.c, utils/avlstuff.c, utils/utils.c: ANSI C function definitions. * font/luafont.c, lang/texlang.c, lua/lcallbacklib.c, lua/lfontlib.c, lua/limglib.c, lua/lkpselib.c, lua/llualib.c, lua/lnodelib.c, lua/loslibext.c, lua/lpdflib.c, lua/lstatslib.c, lua/ltexiolib.c, lua/ltexlib.c, lua/ltokenlib.c, lua/luanode.c, lua/luatoken.c: Remove 'char *' or 'unsigned char *' casts of Lua strings. * font/texfont.h, font/writecff.h, luatex-api.h, luatex.h, nodes.h, primitive.h, ptexlib.h, utils/utils.h, font/dofont.c, font/luafont.c, font/tfmofm.c, font/vfovf.c, font/writecff.c, font/writefont.c, font/writet1.c, lang/hyphen.c, lang/texlang.c, lua/lcallbacklib.c, lua/lfontlib.c, lua/limglib.c, lua/lkpselib.c, lua/llualib.c, lua/lnodelib.c, lua/loslibext.c, lua/lpdflib.c, lua/lstatslib.c, lua/ltexiolib.c, lua/ltexlib.c, lua/ltokenlib.c, lua/luainit.c, lua/luanode.c, lua/luastuff.c, lua/luatex.c, lua/luatoken.c, luatex.ch, tex/filename.c, tex/linebreak.c, tex/math.c, tex/mlist.c, tex/primitive.c, tex/texdeffont.c, tex/texnodes.c, tex/textoken.c, utils/utils.c: Declare various function params and args, local and global vars, and struct members as const. * font/luafont.c, font/texfont.c, font/tfmofm.c, font/vfovf.c, font/writeenc.c, font/writefont.c, font/writet1.c, font/vfpacket.c, font/writettf.c, font/writetype2.c, image/writeimg.c, lang/hyphen.c, lang/texlang.c, lua/limglib.c, lua/llualib.c, lua/lnodelib.c, lua/loslibext.c, lua/lpdflib.c, lua/lstatslib.c, lua/ltexlib.c, lua/luainit.c, lua/luanode.c, lua/luastuff.c, mathcodes.c, tex/linebreak.c, tex/math.c, tex/mlist.c, tex/primitive.c, tex/texdeffont.c, tex/texnodes.c, tex/textoken.c, utils/synctex.c, utils/utils.c: Declare functions and global vars as static. * font/texfont.c: #include "luatexfont.h" and remove externs. * image/writejpg.c: #include "writejpg.h". * image/writepng.c: #include "writepng.h". * lang/hnjalloc.c: #include "hnjalloc.h". * lua/texluac.c: #include "luatex-api.h". * utils/synctex.c: #include "synctex.h". * utils/utils.c: #include "utils.h". * ptexlib.h: Add prototype for get_command_id() ... * lua/ltokenlib.c: ... removed from here. * inc-epdf.h: New file with prototypes for epdf_mark_glyphs(), epdf_create_fontdescriptor(), and epdf_write_enc() ... * image/epdf.h: ... removed from here. * image/epdf.h, font/writeenc.c: #include inc-epdf.h. * inc-vfovf.h: New file with prototype for make_vf_table() ... * lua/lfontlib.c: ... removed from here. * font/vfovf.c, lua/lfontlib.c: #include inc-vfovf.h. * am/libluatex.am (libluatex_a_SOURCES): Add the new files. * font/texfont.c (lua_char_exists_callback), font/vfovf.c (is_letterspaced_font), font/vfpacket.c (packet_command_names), font/writet1.c (free_glyph_names), image/writeimg.c (image_group_ref), lua/ltexlib.c (get_something_internal), tex/texnodes.c (print_free_chain), textcodes.c (clearcatcodestack): Skip unused static funcs and vars (via #if 0 ... #endif). * lua/luainit.c (lua_initialize): Replace string constant arguments of putenv() by non-const static string variables. * utils/avl.c (avl_delete): Don't reuse const input param for non-const return value. * utils/synctex.c: Rename synctexchar => synctex_char and synctexnode => synctex_node as declared in utils/synctex.h. * font/luatexfont.h, font/macnames.c: Declare notdef as non-const to avoid cast warnings. FIXME? 2010-01-22 Peter Breitenlohner * 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 * luatex.ch: propagate "executed safely" wording change. 2009-12-12 Peter Breitenlohner * am/luatex.am: Replace the obsolete $(mkdir_p) by $(MKDIR_P). 2009-12-07 Peter Breitenlohner * lua/loslibext.c (do_mkdtemp): Declare as static and skip compilation when not used. 2009-12-06 Peter Breitenlohner * pdf/pagetree.c, utils/utils.c: Drop #ifdef HAVE_ASPRINTF and #include . 2009-12-04 Peter Breitenlohner * utils/synctex.c: Remove (already commented) extern declaration of gettexstring(). 2009-10-24 Peter Breitenlohner * luatex.web: Use kpse_{in,out}_name_ok(), now in Kpathsea, instead of open{in,out}nameok(). * luatex.defines: Replace open_{in,out}_name_ok by kpse_{in,out}_name_ok. 2009-10-07 Peter Breitenlohner * image/pdftoepdf.cc: Adapt to poppler-0.12. * FIXME: image/epdf.h, utils/utils.h: Multiple prototypes for pdftex_fail, pdftex_warn, and probably others. 2009-09-06 Peter Breitenlohner * am/luatex.am: Adapt to new makecpool with one argument. 2009-09-06 Peter Breitenlohner * lua/luainit.c (dump_name, c_job_name, last_source_name, last_lineno): Drop extern declarations (now in texmfmp.h). (user_progname): Constify string. (lua_initialize): Avoid modifying the const_string 'dump_name'. 2009-09-06 Peter Breitenlohner * utils/synctex.c (synctex_suffix*): Constify strings. 2009-09-04 Peter Breitenlohner * luatangle.ch: Eliminate the unused |end_of_TANGLE| label. 2009-09-02 Peter Breitenlohner * am/libzzip.am: Enable compiler warnings. * am/liblua51.am, am/libluatex.am, am/luafontforge.am, am/luamisc.am, am/luasocket.am, am/luatex.am: Prepare compiler warnings. 2009-08-20 Peter Breitenlohner * lua/lstatslib.c, lua/luainit.c: Drop extern decl of ptexbanner. * utils/utils.c: #include and drop extern decls. 2009-08-17 Peter Breitenlohner * lua/liolib.c (io_popen): Changed Arg1 of shell_cmd_is_allowed(). * lua/loslibext.c (os_exec, os_spawn, os_execute): Same. 2009-08-16 Peter Breitenlohner * am/luatangle.am: Adapt to web2c-sh. * am/luatex.am (luatex_tangle): Use tangle-sh. Adapt to tangle-sh and web2c-sh. 2009-06-26 Taco Hoekwater * lua51/lcoco.c, lua51/lcoco.h: disable the coco patch on linux+ppc because it crashes the executable. 2009-06-25 Peter Breitenlohner * font/writet1.c, image/epdf.[ch], utils/avlstuff.c: remove #include . 2009-06-25 Taco Hoekwater * luatexdir: import of luatex release 0.40.6. 2009-06-23 Peter Breitenlohner * lua/luatex.c: drop P?C, P?H, use ANSI C function declarations. 2009-06-23 Peter Breitenlohner * font/writet1.c, image/epdf.c, utils/avlstuff.c: #include , not . 2009-06-09 Taco Hoekwater * luatexdir: import of luatex release 0.40.4. 2009-06-08 Taco Hoekwater * luatexdir: import of luatex release 0.40.3. This affects many files in subdirectories. 2009-06-04 Taco Hoekwater * luatexdir: "avoid variable declaration after statement" patch from Vladimir Volovich 2009-06-03 Taco Hoekwater * luatexdir/luafontloader/fontforge/fontforge/namelist.c (psaltnames): add a dimension specifier, for AIX portability. 2009-06-03 Taco Hoekwater * luatexdir: import of luatex release 0.40.2. This affects many files in subdirectories. 2009-05-30 Peter Breitenlohner * am/luatex.am (install-exec-hook, uninstall-hook): avoid dangling symlinks. 2009-05-25 Peter Breitenlohner * am/luatex.am (uninstall-hook): new target to uninstall texlua[c] symlinks. 2009-05-25 Karl Berry * am/luatex.am (install-exec-hook): new target to install texlua[c] symlinks. 2009-05-08 Taco Hoekwater * luatexdir: import of the current state of luatex, 0.40.1. This affects many files in subdirectories. 2009-05-05 Peter Breitenlohner * image/pdftoepdf.cc, utils/utils.c: adapt for poppler. patches from Norbert Preinig 2009-04-27 Taco Hoekwater * pdf/pdfpage.c: rename exp10 to exp10_arr to solve a conflict with cygwin's . * font/texfont.h: add #undef quad before definition to suppress a compiler warning under cygwin. 2009-04-22 Taco Hoekwater * luatexdir: import of the current state of luatex, 0.40.0. This affects many files in subdirectories. 2009-04-16 Taco Hoekwater * image/image.h: remove the trick that forced a local png.h 2009-04-16 Taco Hoekwater * luatexdir: import of the current state of luatex, 0.39.0. This affects many files in subdirectories. 2009-03-27 Peter Breitenlohner * am/luatex.am (luatex_c_h): avoid to split the C code (from Taco). 2009-03-27 Taco Hoekwater * luatexdir: import of the current state of luatex, 0.37.0. This affects many files in subdirectories. 2009-03-05 Peter Breitenlohner * image/pdftoepdf.cc: Uninclude , included later by "epdf.h". 2009-03-03 Peter Breitenlohner * luatangle.ch: use kpse_open_file to locate input files, in order to respect WEBINPUTS (ported from tangle.ch).