89 |
|
|
90 |
|
|
91 |
|
void |
92 |
– |
xt_puts(s, t) /* output a string */ |
93 |
– |
register char *s; |
94 |
– |
TEXTWIND *t; |
95 |
– |
{ |
96 |
– |
int oldcurs; |
97 |
– |
|
98 |
– |
oldcurs = xt_cursor(t, TNOCURS); /* for efficiency */ |
99 |
– |
while (*s) |
100 |
– |
xt_putc(*s++, t); |
101 |
– |
xt_cursor(t, oldcurs); |
102 |
– |
} |
103 |
– |
|
104 |
– |
|
105 |
– |
void |
92 |
|
xt_putc(c, t) /* output a character */ |
93 |
< |
char c; |
93 |
> |
int c; |
94 |
|
register TEXTWIND *t; |
95 |
|
{ |
96 |
|
checkcurs(t); |
119 |
|
break; |
120 |
|
} |
121 |
|
restorecurs(t); |
122 |
+ |
} |
123 |
+ |
|
124 |
+ |
|
125 |
+ |
void |
126 |
+ |
xt_puts(s, t) /* output a string */ |
127 |
+ |
register char *s; |
128 |
+ |
TEXTWIND *t; |
129 |
+ |
{ |
130 |
+ |
int oldcurs; |
131 |
+ |
|
132 |
+ |
oldcurs = xt_cursor(t, TNOCURS); /* for efficiency */ |
133 |
+ |
while (*s) |
134 |
+ |
xt_putc(*s++, t); |
135 |
+ |
xt_cursor(t, oldcurs); |
136 |
|
} |
137 |
|
|
138 |
|
|