* otherwise use \x (x is value)
* (NUL isn't used)
*/
-static unsigned char escape[256] = {
+static const unsigned char escape[256] = {
/* NUL */
0, /* Unused: strings can't contain nulls */
/* SOH STX ETX EOT ENQ ACK BEL */
fprintf(_e_err_file, ": ");
}
fprintf(_e_err_file, "%s\n", strerror(code));
- if (_e_err_exit.type)
+ if (_e_err_exit.type) {
#ifdef __BLOCKS__
- if (_e_err_exit.type == ERR_EXIT_BLOCK)
+ if (_e_err_exit.type == ERR_EXIT_BLOCK) {
_e_err_exit.block(eval);
- else
-#endif /* __BLOCKS__ */
+ } else {
_e_err_exit.func(eval);
+ }
+#else
+ _e_err_exit.func(eval);
+#endif /* __BLOCKS__ */
+ }
exit(eval);
}
if (fmt != NULL)
_e_visprintf(_e_err_file, fmt, ap);
fprintf(_e_err_file, "\n");
- if (_e_err_exit.type)
+ if (_e_err_exit.type) {
#ifdef __BLOCKS__
- if (_e_err_exit.type == ERR_EXIT_BLOCK)
+ if (_e_err_exit.type == ERR_EXIT_BLOCK) {
_e_err_exit.block(eval);
- else
-#endif /* __BLOCKS__ */
+ } else {
_e_err_exit.func(eval);
+ }
+#else
+ _e_err_exit.func(eval);
+#endif /* __BLOCKS__ */
+ }
exit(eval);
}