comparison src/emacs.c @ 19729:fce71d3f95b1

(main): Call run_time_remap earlier, before any use of stdio.
author Richard M. Stallman <rms@gnu.org>
date Wed, 03 Sep 1997 20:34:22 +0000
parents 85ac99b8b5c8
children d82a99796033
comparison
equal deleted inserted replaced
19728:6fad157cece4 19729:fce71d3f95b1
501 { 501 {
502 malloc_set_state (malloc_state_ptr); 502 malloc_set_state (malloc_state_ptr);
503 free (malloc_state_ptr); 503 free (malloc_state_ptr);
504 r_alloc_reinit (); 504 r_alloc_reinit ();
505 } 505 }
506 #endif
507
508 #ifdef RUN_TIME_REMAP
509 if (initialized)
510 run_time_remap (argv[0]);
506 #endif 511 #endif
507 512
508 sort_args (argc, argv); 513 sort_args (argc, argv);
509 514
510 if (argmatch (argv, argc, "-version", "--version", 3, NULL, &skip_args)) 515 if (argmatch (argv, argc, "-version", "--version", 3, NULL, &skip_args))
612 } 617 }
613 #endif /* HAVE_SETRLIMIT and RLIMIT_STACK */ 618 #endif /* HAVE_SETRLIMIT and RLIMIT_STACK */
614 619
615 /* Record (approximately) where the stack begins. */ 620 /* Record (approximately) where the stack begins. */
616 stack_bottom = &stack_bottom_variable; 621 stack_bottom = &stack_bottom_variable;
617
618 #ifdef RUN_TIME_REMAP
619 if (initialized)
620 run_time_remap (argv[0]);
621 #endif
622 622
623 #ifdef USG_SHARED_LIBRARIES 623 #ifdef USG_SHARED_LIBRARIES
624 if (bss_end) 624 if (bss_end)
625 brk ((void *)bss_end); 625 brk ((void *)bss_end);
626 #endif 626 #endif