131 |
|
static |
132 |
|
sun_close() /* all done */ |
133 |
|
{ |
134 |
< |
if (frame != 0) { |
135 |
< |
window_set(frame, FRAME_NO_CONFIRM, TRUE, 0); |
136 |
< |
window_destroy(frame); |
134 |
> |
Frame fr; |
135 |
> |
|
136 |
> |
fr = frame; |
137 |
> |
frame = 0; /* death cry */ |
138 |
> |
if (fr != 0) { |
139 |
> |
window_set(fr, FRAME_NO_CONFIRM, TRUE, 0); |
140 |
> |
window_destroy(fr); |
141 |
|
} |
138 |
– |
frame = 0; |
142 |
|
} |
143 |
|
|
144 |
|
|
145 |
|
static Notify_value |
146 |
+ |
my_destroy_func(fr, st) /* say bye-bye */ |
147 |
+ |
Frame fr; |
148 |
+ |
Destroy_status st; |
149 |
+ |
{ |
150 |
+ |
if (st != DESTROY_CHECKING && frame != 0) |
151 |
+ |
quit(1); /* how rude! */ |
152 |
+ |
return(notify_next_destroy_func(fr, st)); |
153 |
+ |
} |
154 |
+ |
|
155 |
+ |
|
156 |
+ |
static Notify_value |
157 |
|
newinput(cid, fd) /* register new input */ |
158 |
|
int (*cid)(); |
159 |
|
int fd; |
162 |
|
getc(ttyin); |
163 |
|
sun_driver.inpready++; |
164 |
|
return(NOTIFY_DONE); |
151 |
– |
} |
152 |
– |
|
153 |
– |
|
154 |
– |
static Notify_value |
155 |
– |
my_destroy_func(dest_frame, status) /* say bye-bye */ |
156 |
– |
Frame dest_frame; |
157 |
– |
Destroy_status status; |
158 |
– |
{ |
159 |
– |
if (status != DESTROY_CHECKING) { |
160 |
– |
frame = 0; /* coordinate with sun_close() */ |
161 |
– |
quit(1); |
162 |
– |
} |
163 |
– |
return(notify_next_destroy_func(dest_frame, status)); |
165 |
|
} |
166 |
|
|
167 |
|
|