Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/korean/hcode/files/patch-out.c
18157 views
1
--- out.c.orig 1998-03-11 04:46:36.000000000 -0500
2
+++ out.c 2013-06-12 19:05:40.000000000 -0400
3
@@ -23,7 +23,7 @@
4
{
5
static unsigned long int (*conv)();
6
static unsigned int MSB=0xff;
7
- static unsigned char StartC=NULL, EndC=NULL;
8
+ static unsigned char StartC='\0', EndC='\0';
9
static int initialized=0;
10
11
/* if ( prstat == PRNONE ) { */
12
@@ -45,7 +45,7 @@
13
14
15
if ( wc>>8 == 0 ) {
16
- if (prstat==PRINTING && EndC!=NULL) putc(EndC,fpout);
17
+ if (prstat==PRINTING && EndC!='\0') putc(EndC,fpout);
18
if (prstat == PRINTING) prstat = PRINTED;
19
/* to make 'hcode -ki | hcode -ki' work: jshin(7/18/96) */
20
if ( wc == StartC && ! (outCode==IS||outCode==SD) )
21
@@ -62,7 +62,7 @@
22
23
wc = (*conv)(wc);
24
25
- if ( prstat == PRINTED && StartC != NULL )
26
+ if ( prstat == PRINTED && StartC != '\0' )
27
putc(StartC,fpout);
28
29
if ( wc>>16 == 0 || wc>>16 == 0x8ffb ) { /* TR, KS */
30
@@ -87,7 +87,7 @@
31
{
32
static int C;
33
int ch,ju,jo;
34
- static unsigned char StartC=NULL, EndC=NULL;
35
+ static unsigned char StartC='\0', EndC='\0';
36
37
if ( prstat == PRNONE ) {
38
C=outCode-NB;
39
@@ -97,7 +97,7 @@
40
}
41
42
if ( wc>>8 == 0 ) {
43
- if (prstat == PRINTING && EndC != NULL) putc(EndC,fpout);
44
+ if (prstat == PRINTING && EndC != '\0') putc(EndC,fpout);
45
if (prstat == PRINTING) prstat = PRINTED;
46
if ( wc == StartC ) putc((char)wc,fpout);
47
putc((char)wc,fpout);
48
49