summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/lang
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-02-03 13:01:31 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-02-03 13:01:31 +0000
commit4dc568b1e2c01476f34b6c014da3bc487b71aacf (patch)
treea6a389e1a3915bdc1b618eb2aeae27fd7f21b68a /Build/source/texk/web2c/luatexdir/lang
parent4a985ab4153e6ba130b801d4cec60709b0a44e47 (diff)
Import LuaTeX snapshot 0.78.3
git-svn-id: svn://tug.org/texlive/trunk@32854 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lang')
-rw-r--r--Build/source/texk/web2c/luatexdir/lang/hyphen.w17
-rw-r--r--Build/source/texk/web2c/luatexdir/lang/texlang.h2
-rw-r--r--Build/source/texk/web2c/luatexdir/lang/texlang.w4
3 files changed, 16 insertions, 7 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lang/hyphen.w b/Build/source/texk/web2c/luatexdir/lang/hyphen.w
index b39993fd4be..889dd8cb7a1 100644
--- a/Build/source/texk/web2c/luatexdir/lang/hyphen.w
+++ b/Build/source/texk/web2c/luatexdir/lang/hyphen.w
@@ -39,8 +39,8 @@
@ @c
static const char _svn_version[] =
- "$Id: hyphen.w 4599 2013-03-19 15:41:07Z taco $ "
- "$URL: https://foundry.supelec.fr/svn/luatex/tags/beta-0.76.0/source/texk/web2c/luatexdir/lang/hyphen.w $";
+ "$Id: hyphen.w 4729 2014-01-03 14:21:00Z taco $ "
+ "$URL: https://foundry.supelec.fr/svn/luatex/trunk/source/texk/web2c/luatexdir/lang/hyphen.w $";
#include "ptexlib.h"
@@ -377,9 +377,18 @@ static void hnj_add_trans(HyphenDict * dict, int state1, int state2, int uni_ch)
num_trans = dict->states[state1].num_trans;
if (num_trans == 0) {
dict->states[state1].trans = hnj_malloc(sizeof(HyphenTrans));
- } else if (!(num_trans & (num_trans - 1))) {
+ } else {
+ /* TH: The old version did
+ } else if (!(num_trans & (num_trans - 1))) {
+ ... hnj_realloc(dict->states[state1].trans,
+ (int) ((num_trans << 1) *
+ sizeof(HyphenTrans)));
+ but that is incredibly nasty when adding patters one-at-a-time.
+ Controlled growth would be nicer than the current +1, but if
+ noone complains, this is good enough ;)
+ */
dict->states[state1].trans = hnj_realloc(dict->states[state1].trans,
- (int) (num_trans << 1 *
+ (int) ((num_trans + 1) *
sizeof(HyphenTrans)));
}
dict->states[state1].trans[num_trans].uni_ch = uni_ch;
diff --git a/Build/source/texk/web2c/luatexdir/lang/texlang.h b/Build/source/texk/web2c/luatexdir/lang/texlang.h
index b312dab1a3a..dd3a5c3bdfa 100644
--- a/Build/source/texk/web2c/luatexdir/lang/texlang.h
+++ b/Build/source/texk/web2c/luatexdir/lang/texlang.h
@@ -41,7 +41,7 @@ struct tex_language {
int post_exhyphen_char;
};
-# define MAX_WORD_LEN 256 /* in chars */
+# define MAX_WORD_LEN 65536 /* in chars */
extern struct tex_language *new_language(int n);
extern struct tex_language *get_language(int n);
diff --git a/Build/source/texk/web2c/luatexdir/lang/texlang.w b/Build/source/texk/web2c/luatexdir/lang/texlang.w
index 3919f74d981..8d6a5b1cb2a 100644
--- a/Build/source/texk/web2c/luatexdir/lang/texlang.w
+++ b/Build/source/texk/web2c/luatexdir/lang/texlang.w
@@ -19,8 +19,8 @@
@ @c
static const char _svn_version[] =
- "$Id: texlang.w 4599 2013-03-19 15:41:07Z taco $"
- "$URL: https://foundry.supelec.fr/svn/luatex/tags/beta-0.76.0/source/texk/web2c/luatexdir/lang/texlang.w $";
+ "$Id: texlang.w 4634 2013-04-21 14:45:45Z hhenkel $"
+ "$URL: https://foundry.supelec.fr/svn/luatex/branches/ex-glyph/source/texk/web2c/luatexdir/lang/texlang.w $";
#include "ptexlib.h"
#include <string.h>