diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2010-04-13 10:01:03 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2010-04-13 10:01:03 +0000 |
commit | 27cb85d417e47314739f93914e08da7ff8608bed (patch) | |
tree | ca94d101f3dc61de75b746901733862c33c197bc /Build/source/texk/web2c/luatexdir/lang | |
parent | 677b8b6ff1ec8b35713c4764d191a814fbb8aeb2 (diff) |
new luatex and mplib from the luatex repository
git-svn-id: svn://tug.org/texlive/trunk@17836 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lang')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lang/hnjalloc.w | 1 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lang/hyphen.w | 14 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lang/texlang.w | 20 |
3 files changed, 18 insertions, 17 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lang/hnjalloc.w b/Build/source/texk/web2c/luatexdir/lang/hnjalloc.w index c7d595cdd75..da1f04a6b55 100644 --- a/Build/source/texk/web2c/luatexdir/lang/hnjalloc.w +++ b/Build/source/texk/web2c/luatexdir/lang/hnjalloc.w @@ -37,6 +37,7 @@ #include <stdlib.h> #include <stdio.h> +#include "lang/hnjalloc.h" void *hnj_malloc(int size) { diff --git a/Build/source/texk/web2c/luatexdir/lang/hyphen.w b/Build/source/texk/web2c/luatexdir/lang/hyphen.w index f7bbe6bd843..fc88ac9c571 100644 --- a/Build/source/texk/web2c/luatexdir/lang/hyphen.w +++ b/Build/source/texk/web2c/luatexdir/lang/hyphen.w @@ -56,8 +56,8 @@ @ @c static const char _svn_version[] = - "$Id: hyphen.w 3584 2010-04-02 17:45:55Z hhenkel $ " -"$URL: http://foundry.supelec.fr/svn/luatex/tags/beta-0.60.0/source/texk/web2c/luatexdir/lang/hyphen.w $"; + "$Id: hyphen.w 3612 2010-04-13 09:29:42Z taco $ " +"$URL: http://foundry.supelec.fr/svn/luatex/branches/0.60.x/source/texk/web2c/luatexdir/lang/hyphen.w $"; @ TODO: should be moved to separate library @@ -173,7 +173,7 @@ static char *combine(char *expr, const char *subexpr) @ ORIGINAL CODE @c -HashIter *new_HashIter(HashTab * h) +static HashIter *new_HashIter(HashTab * h) { HashIter *i = hnj_malloc(sizeof(HashIter)); i->e = h->entries; @@ -183,7 +183,7 @@ HashIter *new_HashIter(HashTab * h) } -int nextHashStealPattern(HashIter * i, unsigned char **word, char **pattern) +static int nextHashStealPattern(HashIter * i, unsigned char **word, char **pattern) { while (i->cur == NULL) { if (i->ndx >= HASH_SIZE - 1) @@ -198,7 +198,7 @@ int nextHashStealPattern(HashIter * i, unsigned char **word, char **pattern) } -int nextHash(HashIter * i, unsigned char **word) +static int nextHash(HashIter * i, unsigned char **word) { while (i->cur == NULL) { if (i->ndx >= HASH_SIZE - 1) @@ -211,7 +211,7 @@ int nextHash(HashIter * i, unsigned char **word) } -int eachHash(HashIter * i, unsigned char **word, char **pattern) +static int eachHash(HashIter * i, unsigned char **word, char **pattern) { while (i->cur == NULL) { if (i->ndx >= HASH_SIZE - 1) @@ -225,7 +225,7 @@ int eachHash(HashIter * i, unsigned char **word, char **pattern) } -void delete_HashIter(HashIter * i) +static void delete_HashIter(HashIter * i) { hnj_free(i); } diff --git a/Build/source/texk/web2c/luatexdir/lang/texlang.w b/Build/source/texk/web2c/luatexdir/lang/texlang.w index 6fcb7180820..95996e8d93b 100644 --- a/Build/source/texk/web2c/luatexdir/lang/texlang.w +++ b/Build/source/texk/web2c/luatexdir/lang/texlang.w @@ -26,8 +26,8 @@ static const char _svn_version[] = - "$Id: texlang.w 3584 2010-04-02 17:45:55Z hhenkel $ " -"$URL: http://foundry.supelec.fr/svn/luatex/tags/beta-0.60.0/source/texk/web2c/luatexdir/lang/texlang.w $"; + "$Id: texlang.w 3612 2010-04-13 09:29:42Z taco $ " +"$URL: http://foundry.supelec.fr/svn/luatex/branches/0.60.x/source/texk/web2c/luatexdir/lang/texlang.w $"; @ Low-level helpers @@ -514,7 +514,7 @@ void set_disc_field(halfword f, halfword t) @ @c -char *hyphenation_exception(int exceptions, char *w) +static char *hyphenation_exception(int exceptions, char *w) { char *ret = NULL; lua_State *L = Luas; @@ -572,7 +572,7 @@ char *exception_strings(struct tex_language *lang) it could be faster to modify a halfword pointer and return an integer @c -halfword find_exception_part(unsigned int *j, unsigned int *uword, int len) +static halfword find_exception_part(unsigned int *j, unsigned int *uword, int len) { halfword g = null, gg = null; register unsigned i = *j; @@ -592,7 +592,7 @@ halfword find_exception_part(unsigned int *j, unsigned int *uword, int len) return gg; } -int count_exception_part(unsigned int *j, unsigned int *uword, int len) +static int count_exception_part(unsigned int *j, unsigned int *uword, int len) { int ret = 0; register unsigned i = *j; @@ -613,7 +613,7 @@ static const char *PAT_ERROR[] = { NULL }; -void do_exception(halfword wordstart, halfword r, char *replacement) +static void do_exception(halfword wordstart, halfword r, char *replacement) { unsigned i; halfword t; @@ -749,7 +749,7 @@ can be hyphenated, but most european users seem to agree that prohibiting hyphenation there was not the best idea ever. @c -halfword find_next_wordstart(halfword r) +static halfword find_next_wordstart(halfword r) { register int l; register int start_ok = 1; @@ -790,7 +790,7 @@ halfword find_next_wordstart(halfword r) } @ @c -int valid_wordend(halfword s) +static int valid_wordend(halfword s) { register halfword r = s; register int clang = char_lang(s); @@ -959,7 +959,7 @@ void new_hyphenation(halfword head, halfword tail) } -void dump_one_language(int i) +static void dump_one_language(int i) { char *s = NULL; int x = 0; @@ -1002,7 +1002,7 @@ void dump_language_data(void) } -void undump_one_language(int i) +static void undump_one_language(int i) { char *s = NULL; int x = 0; |