diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-03-21 09:16:59 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-03-21 09:16:59 +0000 |
commit | 388463b9fa865c3b2311508c41647b0f3c532031 (patch) | |
tree | 1cdfbf5552d0783ecbcc52017e49567e5042af33 /Build/source/texk/web2c/luatexdir/lua/lstatslib.c | |
parent | abd0b00a4e8c1ac6f5b20c7474d70ef579129991 (diff) |
Import MetaPost 1.800 and LuaTeX beta-0.75.0 from LuaTeX repository r4604
git-svn-id: svn://tug.org/texlive/trunk@29453 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lua/lstatslib.c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/lstatslib.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/lstatslib.c b/Build/source/texk/web2c/luatexdir/lua/lstatslib.c index 07d5c1be1ed..cb881b94879 100644 --- a/Build/source/texk/web2c/luatexdir/lua/lstatslib.c +++ b/Build/source/texk/web2c/luatexdir/lua/lstatslib.c @@ -1,6 +1,6 @@ /* lstatslib.c - - Copyright 2006-2009 Taco Hoekwater <taco@luatex.org> + + Copyright 2006-2011 Taco Hoekwater <taco@luatex.org> This file is part of LuaTeX. @@ -18,8 +18,8 @@ with LuaTeX; if not, see <http://www.gnu.org/licenses/>. */ static const char _svn_version[] = - "$Id: lstatslib.c 3477 2010-03-12 13:59:34Z taco $ " - "$URL: http://foundry.supelec.fr/svn/luatex/tags/beta-0.66.0/source/texk/web2c/luatexdir/lua/lstatslib.c $"; + "$Id: lstatslib.c 4524 2012-12-20 15:38:02Z taco $ " + "$URL: http://foundry.supelec.fr/svn/luatex/trunk/source/texk/web2c/luatexdir/lua/lstatslib.c $"; #include "ptexlib.h" #include "lua/luatex-api.h" @@ -88,21 +88,21 @@ static lua_Number get_pdf_gone(void) static lua_Number get_pdf_ptr(void) { if (static_pdf != NULL) - return (lua_Number) static_pdf->ptr; + return (lua_Number) (static_pdf->buf->p - static_pdf->buf->data); return (lua_Number) 0; } static lua_Number get_pdf_os_cntr(void) { if (static_pdf != NULL) - return (lua_Number) static_pdf->os_cntr; + return (lua_Number) static_pdf->os->ostm_ctr; return (lua_Number) 0; } static lua_Number get_pdf_os_objidx(void) { if (static_pdf != NULL) - return (lua_Number) static_pdf->os_idx; + return (lua_Number) static_pdf->os->idx; return (lua_Number) 0; } @@ -174,12 +174,12 @@ static struct statistic stats[] = { {"luatex_revision", 'S', (void *) &luatexrevision}, {"ini_version", 'b', &ini_version}, /* - * mem stat + * mem stat */ {"var_used", 'g', &var_used}, {"dyn_used", 'g', &dyn_used}, - /* - * traditional tex stats + /* + * traditional tex stats */ {"str_ptr", 'g', &str_ptr}, {"init_str_ptr", 'g', &init_str_ptr}, @@ -336,7 +336,7 @@ static int statslist(lua_State * L) -static const struct luaL_reg statslib[] = { +static const struct luaL_Reg statslib[] = { {"list", statslist}, {NULL, NULL} /* sentinel */ }; |