Mercurial > emacs
comparison src/xterm.c @ 46435:278371336b60
* xterm.c (x_catch_errors, x_clear_errors): Use SSET.
author | Ken Raeburn <raeburn@raeburn.org> |
---|---|
date | Tue, 16 Jul 2002 15:50:09 +0000 |
parents | 40db0673e6f0 |
children | 4729f849c572 |
comparison
equal
deleted
inserted
replaced
46434:0baf57bc9d62 | 46435:278371336b60 |
---|---|
12129 XSync (dpy, False); | 12129 XSync (dpy, False); |
12130 | 12130 |
12131 record_unwind_protect (x_catch_errors_unwind, x_error_message_string); | 12131 record_unwind_protect (x_catch_errors_unwind, x_error_message_string); |
12132 | 12132 |
12133 x_error_message_string = make_uninit_string (X_ERROR_MESSAGE_SIZE); | 12133 x_error_message_string = make_uninit_string (X_ERROR_MESSAGE_SIZE); |
12134 SREF (x_error_message_string, 0) = 0; | 12134 SSET (x_error_message_string, 0, 0); |
12135 | 12135 |
12136 return count; | 12136 return count; |
12137 } | 12137 } |
12138 | 12138 |
12139 /* Unbind the binding that we made to check for X errors. */ | 12139 /* Unbind the binding that we made to check for X errors. */ |
12179 | 12179 |
12180 void | 12180 void |
12181 x_clear_errors (dpy) | 12181 x_clear_errors (dpy) |
12182 Display *dpy; | 12182 Display *dpy; |
12183 { | 12183 { |
12184 SREF (x_error_message_string, 0) = 0; | 12184 SSET (x_error_message_string, 0, 0); |
12185 } | 12185 } |
12186 | 12186 |
12187 /* Stop catching X protocol errors and let them make Emacs die. | 12187 /* Stop catching X protocol errors and let them make Emacs die. |
12188 DPY should be the display that was passed to x_catch_errors. | 12188 DPY should be the display that was passed to x_catch_errors. |
12189 COUNT should be the value that was returned by | 12189 COUNT should be the value that was returned by |