diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-12-10 11:22:05 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-12-10 11:22:05 +0000 |
commit | 0a1e75ee98dd6caa88dd7566007ab4c6c8511544 (patch) | |
tree | b8845646169c5d84821f476a5eaa490afbf2ff55 /Build/source/texk/lacheck/lacheck-1.26-PATCHES/patch-03-unsigned-char | |
parent | 7e8b4dc5ce744eed534c8aa93a8b503c80317c76 (diff) |
texk/lacheck build: use orig source from ctan + patches
git-svn-id: svn://tug.org/texlive/trunk@20707 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/lacheck/lacheck-1.26-PATCHES/patch-03-unsigned-char')
-rw-r--r-- | Build/source/texk/lacheck/lacheck-1.26-PATCHES/patch-03-unsigned-char | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Build/source/texk/lacheck/lacheck-1.26-PATCHES/patch-03-unsigned-char b/Build/source/texk/lacheck/lacheck-1.26-PATCHES/patch-03-unsigned-char new file mode 100644 index 00000000000..e5b07bcfee0 --- /dev/null +++ b/Build/source/texk/lacheck/lacheck-1.26-PATCHES/patch-03-unsigned-char @@ -0,0 +1,56 @@ +diff -ur lacheck-1.26.orig/lacheck.l lacheck-1.26/lacheck.l +--- lacheck-1.26.orig/lacheck.l 2010-12-09 23:22:45.000000000 +0100 ++++ lacheck-1.26/lacheck.l 2010-12-09 23:25:22.000000000 +0100 +@@ -136,7 +136,7 @@ + + /* macros */ + +-#define CG_NAME (char *)gstack[gstackp-1].s_name ++#define CG_NAME gstack[gstackp-1].s_name + #define CG_TYPE gstack[gstackp-1].s_type + #define CG_LINE gstack[gstackp-1].s_line + #define CG_ITALIC gstack[gstackp-1].italic +@@ -165,7 +165,7 @@ + + typedef struct tex_group + { +- unsigned char *s_name; ++ char *s_name; + int s_type; + int s_line; + int italic; +@@ -467,7 +467,7 @@ + + \\begingroup/[^a-zA-Z] { + { +- push((unsigned char *)"\\begingroup", 1, line_count); ++ push("\\begingroup", 1, line_count); + }} + + +@@ -858,7 +858,7 @@ + } + #endif /* NEED_STRSTR */ + +-void push(const unsigned char *p_name, int p_type, int p_line) ++void push(const char *p_name, int p_type, int p_line) + { + if ( gstackp == gstack_size ) { /* extend stack */ + gstack_size *= 2; +@@ -870,14 +870,14 @@ + } + + if ( (gstack[gstackp].s_name = +- (unsigned char *)malloc(strlen((char *)p_name) + 1)) == NULL || ++ (char *)malloc(strlen(p_name) + 1)) == NULL || + (gstack[gstackp].s_file = + (char *)malloc(strlen(file_name) + 1)) == NULL ) { + fprintf(stderr, "%s: out of memory\n", PROGNAME); + exit(3); + } + +- strcpy((char *)gstack[gstackp].s_name,(char *)p_name); ++ strcpy(gstack[gstackp].s_name, p_name); + gstack[gstackp].s_type = p_type; + gstack[gstackp].s_line = p_line; + gstack[gstackp].italic = ( (p_type == 4 || p_type == 5) |