[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-devel:09862] Re: ITP: gs-ja
In <19990717094450N.xlj06203@xxxxxxxxxxxxxxxxxxxx> (Jul.17 1999 10:05 JST),
``[debian-devel:09857] Re: ITP: gs-ja'',
xlj06203@xxxxxxxxxxx says:
= private FILE *dviprt_messagestream;
=
= のように変更しないと make できませんでした。
初期化しといたほうがいいとおもいますよ。
--- dviprlib.c.orig Sat Jul 17 14:20:57 1999
+++ dviprlib.c Sat Jul 17 15:22:41 1999
@@ -1433,13 +1433,15 @@
char *dviprt_prtcodename[] = { CFG_PRTCODE_NAME, NULL };
char *dviprt_encodename[] = { CFG_ENCODE_NAME, NULL };
-private FILE *dviprt_messagestream = stderr;
+private FILE *dviprt_messagestream;
+private int dviprt_messagestream_is_init = 0;
/*--- library functions ---*/
int
dviprt_setmessagestream(FILE *fp)
{
dviprt_messagestream = fp;
+ dviprt_messagestream_is_init = 1;
return 0;
}
@@ -1505,6 +1507,9 @@
liblocal int
dviprt_printmessage(char *str,int len)
{
+ if (dviprt_messagestream_is_init == 0)
+ dviprt_setmessagestream(stderr);
+
if (dviprt_messagestream && str) {
if (len >= 0) fwrite(str,len,1,dviprt_messagestream);
else fputs(str,dviprt_messagestream);
-.- . -. -.
Ken Nakagaki (kenn@xxxxxxxxxxx is not for private E-Mail)
「人は船ではない。人は会社ではない」-- Gerry Spence