diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2010-04-04 13:55:46 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2010-04-04 13:55:46 +0000 |
commit | f372862c42d234710b6057449b46818e63181c90 (patch) | |
tree | a9ebec66dd31ac37aed442502ebd1b9fe76245ec /Build/source/texk/web2c/luatexdir/luamd5 | |
parent | 2dad291ab056f30816e0aea61970f38033c2f6a5 (diff) |
import luatex 0.60.0 (with small local changes, see luatexdir/ChangeLog)
and do an autoreconf
git-svn-id: svn://tug.org/texlive/trunk@17680 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luamd5')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luamd5/luamd5.h (renamed from Build/source/texk/web2c/luatexdir/luamd5/md5.h) | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luamd5/md5.c | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luamd5/md5_lua.c | 38 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luamd5/md5lib.c | 2 |
4 files changed, 44 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luamd5/md5.h b/Build/source/texk/web2c/luatexdir/luamd5/luamd5.h index 80d43f72687..c0470c6439d 100644 --- a/Build/source/texk/web2c/luatexdir/luamd5/md5.h +++ b/Build/source/texk/web2c/luatexdir/luamd5/luamd5.h @@ -5,8 +5,8 @@ */ -#ifndef md5_h -#define md5_h +#ifndef luamd5_h +#define luamd5_h #include <lua.h> diff --git a/Build/source/texk/web2c/luatexdir/luamd5/md5.c b/Build/source/texk/web2c/luatexdir/luamd5/md5.c index 7e630bfc46b..685880bedf5 100644 --- a/Build/source/texk/web2c/luatexdir/luamd5/md5.c +++ b/Build/source/texk/web2c/luatexdir/luamd5/md5.c @@ -6,13 +6,14 @@ #include <string.h> +#include <stdint.h> -#include "md5.h" +#include "luamd5.h" #define WORD 32 #define MASK 0xFFFFFFFF -typedef unsigned long WORD32; +typedef uint32_t WORD32; /** diff --git a/Build/source/texk/web2c/luatexdir/luamd5/md5_lua.c b/Build/source/texk/web2c/luatexdir/luamd5/md5_lua.c new file mode 100644 index 00000000000..5caebaececd --- /dev/null +++ b/Build/source/texk/web2c/luatexdir/luamd5/md5_lua.c @@ -0,0 +1,38 @@ +/* + * This file is auto-generated by "lua2c md5.lua md5_lua" + */ + +#include "lua.h" +#include "lauxlib.h" + +int luatex_md5_lua_open (lua_State *L) { + static unsigned char B[] = { + 45, 45, 32,109,100, 53, 46,108,117, 97, 10, 45, 45, 32, 40,121,111,117, 32,115, +104,111,117,108,100, 32,112,117,116, 32,116,104,105,115, 32,102,105,108,101, 32, +105,110, 32, 97,110,121, 32,100,105,114,101, 99,116,111,114,121, 32,111,102, 32, +121,111,117,114, 32, 76, 85, 65, 95, 80, 65, 84, 72, 41, 10, 10, 10, 45, 45, 32, + 99,104, 97,110,103,101, 32,116,104,101, 32,110,101,120,116, 32,108,105,110,101, + 32,116,111, 32,112,111,105,110,116, 32,116,111, 32,116,104,101, 32,109,100, 53, + 32,100,121,110, 97,109,105, 99, 32,108,105, 98,114, 97,114,121, 10, 10, 45, 45, + 32,108,111, 99, 97,108, 32,112, 97,116,104, 32, 61, 32, 34, 47,117,115,114, 47, +108,111, 99, 97,108, 47,108,117, 97, 47,108,105, 98, 47,108,105, 98,109,100, 53, + 46,115,111, 34, 10, 45, 45,108,111, 99, 97,108, 32,112, 97,116,104, 32, 61, 32, + 34, 46, 47,108,105, 98,109,100, 53, 46,115,111, 34, 10, 10, 45, 45, 97,115,115, +101,114,116, 40,108,111, 97,100,108,105, 98, 40,112, 97,116,104, 44, 32, 34,108, +117, 97,111,112,101,110, 95,109,100, 53, 34, 41, 41, 40, 41, 10, 10, 10, 45, 45, + 32, 82,101,116,117,114,110,115, 32,116,104,101, 32,109,100, 53, 32,104, 97,115, +104, 32,118, 97,108,117,101, 32, 97,115, 32, 97, 32,115,116,114,105,110,103, 32, +111,102, 32,104,101,120, 97,100,101, 99,105,109, 97,108, 32,100,105,103,105,116, +115, 10, 10,102,117,110, 99,116,105,111,110, 32,109,100, 53, 46,115,117,109,104, +101,120, 97, 32, 40,107, 41, 10, 32, 32,107, 32, 61, 32,109,100, 53, 46,115,117, +109, 40,107, 41, 10, 32, 32,114,101,116,117,114,110, 32, 40,115,116,114,105,110, +103, 46,103,115,117, 98, 40,107, 44, 32, 34, 46, 34, 44, 32,102,117,110, 99,116, +105,111,110, 32, 40, 99, 41, 10, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,114, +101,116,117,114,110, 32,115,116,114,105,110,103, 46,102,111,114,109, 97,116, 40, + 34, 37, 48, 50,120, 34, 44, 32,115,116,114,105,110,103, 46, 98,121,116,101, 40, + 99, 41, 41, 10, 32, 32, 32, 32, 32, 32, 32, 32, 32,101,110,100, 41, 41, 10,101, +110,100, 10, 10,114,101,116,117,114,110, 32,109,100, 53, 10, + 0 }; + return luaL_dostring(L, (const char*)B); +} /* end of embedded lua code */ + diff --git a/Build/source/texk/web2c/luatexdir/luamd5/md5lib.c b/Build/source/texk/web2c/luatexdir/luamd5/md5lib.c index 7c72a16fcb6..de213d878a2 100644 --- a/Build/source/texk/web2c/luatexdir/luamd5/md5lib.c +++ b/Build/source/texk/web2c/luatexdir/luamd5/md5lib.c @@ -13,7 +13,7 @@ #include <lua.h> #include <lauxlib.h> -#include "md5.h" +#include "luamd5.h" /** |