Path: blob/main/japanese/epwutil/files/patch-catdump.c
16462 views
--- catdump.c.orig 2016-05-13 19:10:22 UTC1+++ catdump.c2@@ -201,7 +201,7 @@ void outhex();3void outstr();4void outjstr();5int undump();6-uchr *getline();7+uchr *get_line();8uchr *getvalue();9int gethex();10int hexdigit();11@@ -561,7 +561,7 @@ char *txtfile, *catalog;12err = 0;13line = 0;1415- if (getline(buf, fp) == NULL ||16+ if (get_line(buf, fp) == NULL ||17strncmp(buf, CAT_ENTRY, strlen(CAT_ENTRY))) {18fprintf(stderr, "ERR: ���� %s ������ޤ���\n", CAT_ENTRY);19fclose(fp);20@@ -571,7 +571,7 @@ char *txtfile, *catalog;21st = 0;22hdr = (HDR_T *)catbuf;23mask = 0L;24- while (getline(buf, fp) != NULL && *buf != '[') {25+ while (get_line(buf, fp) != NULL && *buf != '[') {26if ((p = getvalue(buf)) == NULL) {27fprintf(stderr, "ERR: line %d: ��ʸ�˸��꤬����ޤ�\n", line);28err++;29@@ -666,7 +666,7 @@ char *txtfile, *catalog;30if (strncmp(buf, BOOK_ENTRY, strlen(BOOK_ENTRY))) {31fprintf(stderr, "ERR: line %d: �����ʹ��ܤǤ�(%s)\n", line, buf);32err++;33- while (getline(buf, fp) != NULL && *buf != '[')34+ while (get_line(buf, fp) != NULL && *buf != '[')35;36if (*buf == '\0')37break;38@@ -680,7 +680,7 @@ char *txtfile, *catalog;39break;40}41mask = 0;42- while (getline(buf, fp) != NULL && *buf != '[') {43+ while (get_line(buf, fp) != NULL && *buf != '[') {44if ((p = getvalue(buf)) == NULL) {45fprintf(stderr, "ERR: line %d: ��ʸ�˸��꤬����ޤ�\n", line);46err++;47@@ -917,7 +917,7 @@ char *txtfile, *catalog;48}4950uchr *51-getline(buf, fp)52+get_line(buf, fp)53uchr *buf;54FILE *fp;55{565758