Path: blob/main/korean/hcode/files/patch-out.c
16461 views
--- out.c.orig 1998-03-11 04:46:36.000000000 -05001+++ out.c 2013-06-12 19:05:40.000000000 -04002@@ -23,7 +23,7 @@3{4static unsigned long int (*conv)();5static unsigned int MSB=0xff;6- static unsigned char StartC=NULL, EndC=NULL;7+ static unsigned char StartC='\0', EndC='\0';8static int initialized=0;910/* if ( prstat == PRNONE ) { */11@@ -45,7 +45,7 @@121314if ( wc>>8 == 0 ) {15- if (prstat==PRINTING && EndC!=NULL) putc(EndC,fpout);16+ if (prstat==PRINTING && EndC!='\0') putc(EndC,fpout);17if (prstat == PRINTING) prstat = PRINTED;18/* to make 'hcode -ki | hcode -ki' work: jshin(7/18/96) */19if ( wc == StartC && ! (outCode==IS||outCode==SD) )20@@ -62,7 +62,7 @@2122wc = (*conv)(wc);2324- if ( prstat == PRINTED && StartC != NULL )25+ if ( prstat == PRINTED && StartC != '\0' )26putc(StartC,fpout);2728if ( wc>>16 == 0 || wc>>16 == 0x8ffb ) { /* TR, KS */29@@ -87,7 +87,7 @@30{31static int C;32int ch,ju,jo;33- static unsigned char StartC=NULL, EndC=NULL;34+ static unsigned char StartC='\0', EndC='\0';3536if ( prstat == PRNONE ) {37C=outCode-NB;38@@ -97,7 +97,7 @@39}4041if ( wc>>8 == 0 ) {42- if (prstat == PRINTING && EndC != NULL) putc(EndC,fpout);43+ if (prstat == PRINTING && EndC != '\0') putc(EndC,fpout);44if (prstat == PRINTING) prstat = PRINTED;45if ( wc == StartC ) putc((char)wc,fpout);46putc((char)wc,fpout);474849