diff options
author | Zdeněk Wagner <zdenek.wagner@gmail.com> | 2016-06-23 09:33:12 +0000 |
---|---|---|
committer | Zdeněk Wagner <zdenek.wagner@gmail.com> | 2016-06-23 09:33:12 +0000 |
commit | d81191e3871148d9b235715a174f9e4ffacb5353 (patch) | |
tree | 24ff360e130d283ec863a93d19ab6cb5463e8035 /Build/source/utils | |
parent | a8723541054f8bab742b0da1688048f8617844ec (diff) |
Applied test by Mojca Miklavec available from https://sourceforge.net/p/miktex/patches/11/
git-svn-id: svn://tug.org/texlive/trunk@41530 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils')
-rw-r--r-- | Build/source/utils/devnag/src/devnag.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/Build/source/utils/devnag/src/devnag.c b/Build/source/utils/devnag/src/devnag.c index ff9606ed08b..793ad0a35ec 100644 --- a/Build/source/utils/devnag/src/devnag.c +++ b/Build/source/utils/devnag/src/devnag.c @@ -1,5 +1,5 @@ /* $Id: devnag.c,v 1.15 2008-03-09 15:57:59 icebearsoft Exp $ - Version 2.16 + Version 2.17 * Preprocessor for Devanagari for TeX package @@ -282,10 +282,18 @@ Character and string handling commands were improved by TeX Live developers, these commands cuased errors in several platforms. +*/ - */ +/* + Modification in version 2.17 + + Character '\0' replaced with an empty string so that it compiles + using a C++ compiler. + The patch is taken from here: + https://sourceforge.net/p/miktex/patches/11/ +*/ -const char *version = "2.16"; +const char *version = "2.17"; #include <stdio.h> #include <ctype.h> @@ -1575,6 +1583,7 @@ void dnproc(void) { int test_val; /* Marc Csernel */ char savchr = 0; char wrong[10]; + const char *empty = ""; brace_lev = 1; saved = FALSE; dnready = FALSE; @@ -1801,13 +1810,13 @@ void dnproc(void) { } break; case ill_char: - err_ill('\0'); + err_ill(empty); break; case end_of_file: fputs("Error: missing }", stderr); exit(1); default: - if (symbol < 0) err_ill('\0'); /* accented character inside dn mode */ + if (symbol < 0) err_ill(empty); /* accented character inside dn mode */ i = 0; do { i++; } while ((i != 10) && (chset4[i-1] != symbol)); if (i == 10) put_ch(symbol); |