diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2019-07-08 06:07:11 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2019-07-08 06:07:11 +0000 |
commit | f93b62903a20648ab4328443b88495da81f70909 (patch) | |
tree | 6a870996cc04dca9a1ae3dbbc334b4c2a1385711 /Build/source/texk/web2c/luatexdir/utils | |
parent | 54d39e16610eee4dde770b0a6b569203c79abde8 (diff) |
sync with luatex rev.7174: luatex and luahbtex and jit variants
git-svn-id: svn://tug.org/texlive/trunk@51577 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/utils')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/utils/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/utils/utils.c b/Build/source/texk/web2c/luatexdir/utils/utils.c index 230a3aaa9c5..b09371bebf2 100644 --- a/Build/source/texk/web2c/luatexdir/utils/utils.c +++ b/Build/source/texk/web2c/luatexdir/utils/utils.c @@ -46,6 +46,11 @@ LuaTeX; if not, see <http://www.gnu.org/licenses/>. #include "png.h" #include "mplib.h" +#ifdef LUATEX_HARFBUZZ_ENABLED +#include "hb.h" +#endif + + #define check_nprintf(size_get, size_want) \ if ((unsigned)(size_get) >= (unsigned)(size_want)) \ @@ -261,12 +266,18 @@ void initversionstring(char **versions) #define STR2(tok) #tok const_string fmt = +#ifdef LUATEX_HARFBUZZ_ENABLED + "Compiled with libharfbuzz %s; using %s\n" +#endif "Compiled with libpng %s; using %s\n" "Compiled with %s\n" /* Lua or LuaJIT */ "Compiled with mplib version %s\n" "Compiled with zlib %s; using %s\n" "\nDevelopment id: %s\n"; size_t len = strlen(fmt) +#ifdef LUATEX_HARFBUZZ_ENABLED + + strlen(HB_VERSION_STRING) + strlen(hb_version_string()) +#endif + strlen(PNG_LIBPNG_VER_STRING) + strlen(png_libpng_ver) + strlen(LUA_VER_STRING) + strlen(mp_metapost_version()) @@ -280,6 +291,9 @@ void initversionstring(char **versions) */ *versions = xmalloc(len); sprintf(*versions, fmt, +#ifdef LUATEX_HARFBUZZ_ENABLED + HB_VERSION_STRING,hb_version_string(), +#endif PNG_LIBPNG_VER_STRING, png_libpng_ver, LUA_VER_STRING, mp_metapost_version(), ZLIB_VERSION, zlib_version,STR(luatex_svn_revision)); |