diff options
author | Takuji Tanaka <KXD02663@nifty.ne.jp> | 2018-03-15 11:54:25 +0000 |
---|---|---|
committer | Takuji Tanaka <KXD02663@nifty.ne.jp> | 2018-03-15 11:54:25 +0000 |
commit | 02a523e12031bbf15e2bf179c99296e3c5f8c70c (patch) | |
tree | 5509ad527d8ba8c2c0e79641c16e34ef586d1fa5 /Build/source/texk/makejvf/usrtable.c | |
parent | e9b23d32ab6ecba3d7bbbe2d08cff0a017f4f52f (diff) |
texk/makejvf: Modify treatment of comment (ver 20180315)
git-svn-id: svn://tug.org/texlive/trunk@46970 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/makejvf/usrtable.c')
-rw-r--r-- | Build/source/texk/makejvf/usrtable.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Build/source/texk/makejvf/usrtable.c b/Build/source/texk/makejvf/usrtable.c index 13c9e2d6917..0ac8d766150 100644 --- a/Build/source/texk/makejvf/usrtable.c +++ b/Build/source/texk/makejvf/usrtable.c @@ -29,14 +29,11 @@ void get_usertable(char *name) exit(1); } for (l = 0; fgets(buf, BUF_SIZE, fp) != NULL; l++) { + if (strncmp(buf, "+", 1) && strncmp(buf, "%", 1)) charset_mode = 0; if ((endptr=strchr(buf, '%')) != NULL) strcpy(endptr,"\n"); /* ignore after '%' */ - if (!strncmp(buf, "\n", 1)) { /* empty line */ - charset_mode = 0; - continue; - } + if (!strncmp(buf, "\n", 1)) continue; /* ignore empty line */ tok = strtok(buf, "\t"); if (!strcmp(tok, "REPLACE")) { - charset_mode = 0; if (usertable_replace_max >= MAX_TABLE) goto buferr; usertable_replace[usertable_replace_max].codepoint = strtol(strtok(NULL, "\t\n"), &endptr, 16); if (*endptr != '\0') goto taberr; @@ -47,7 +44,6 @@ void get_usertable(char *name) continue; } if (!strcmp(tok, "MOVE")) { - charset_mode = 0; if (usertable_move_max >= MAX_TABLE) goto buferr; usertable_move[usertable_move_max].codepoint = strtol(strtok(NULL, "\t\n"), &endptr, 16); if (*endptr != '\0') goto taberr; |