1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 06:20:43 -08:00

Catch-up merge from master sources @186519 to branch/2014-05-17/chunk-tree.

Copied from Perforce
 Change: 186520
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2014-06-12 11:43:56 +01:00
commit 2b313decf1
4 changed files with 36 additions and 4 deletions

View file

@ -402,6 +402,7 @@ static void error(const char *format, ...)
if (error_handler) {
longjmp(*error_handler, 1);
} else {
fflush(stdout);
fprintf(stderr, "Fatal error during initialization: %s\n",
error_message);
abort();
@ -3991,6 +3992,7 @@ static mps_res_t obj_scan(mps_ss_t ss, mps_addr_t base, mps_addr_t limit)
break;
default:
assert(0);
fflush(stdout);
fprintf(stderr, "Unexpected object on the heap\n");
abort();
}
@ -4067,6 +4069,7 @@ static mps_addr_t obj_skip(mps_addr_t base)
break;
default:
assert(0);
fflush(stdout);
fprintf(stderr, "Unexpected object on the heap\n");
abort();
}
@ -4297,6 +4300,7 @@ static int start(int argc, char *argv[])
make_operator(optab[i].name, optab[i].entry,
obj_empty, obj_empty, env, op_env));
} else {
fflush(stdout);
fprintf(stderr,
"Fatal error during initialization: %s\n",
error_message);
@ -4305,8 +4309,10 @@ static int start(int argc, char *argv[])
if (argc > 0) {
/* Non-interactive file execution */
if (setjmp(*error_handler) != 0) {
if(setjmp(*error_handler) != 0) {
fflush(stdout);
fprintf(stderr, "%s\n", error_message);
fflush(stderr);
exit_code = EXIT_FAILURE;
} else
for (i = 0; i < argc; ++i)
@ -4324,12 +4330,15 @@ static int start(int argc, char *argv[])
"If you recurse too much the interpreter may crash from using too much C stack.");
for(;;) {
if(setjmp(*error_handler) != 0) {
fflush(stdout);
fprintf(stderr, "%s\n", error_message);
fflush(stderr);
}
mps_chat();
printf("%lu, %lu> ", (unsigned long)total,
(unsigned long)mps_collections(arena));
fflush(stdout);
obj = read(input);
if(obj == obj_eof) break;
obj = eval(env, op_env, obj);