comparison src/emacs.c @ 2286:04bc9d2f42c7

[xemacs-hg @ 2004-09-20 19:18:55 by james] Mark all unused parameters as unused. Also eliminate some unneeded local variables.
author james
date Mon, 20 Sep 2004 19:20:08 +0000
parents 61855263cb07
children ecf1ebac70d8
comparison
equal deleted inserted replaced
2285:914c5afaac33 2286:04bc9d2f42c7
700 the conventional dumper or `xemacs -nd' with the pdumper). See 700 the conventional dumper or `xemacs -nd' with the pdumper). See
701 Frun_emacs_from_temacs(). 701 Frun_emacs_from_temacs().
702 */ 702 */
703 DECLARE_DOESNT_RETURN (main_1 (int, Extbyte **, Extbyte **, int)); 703 DECLARE_DOESNT_RETURN (main_1 (int, Extbyte **, Extbyte **, int));
704 DOESNT_RETURN 704 DOESNT_RETURN
705 main_1 (int argc, Extbyte **argv, Extbyte **envp, int restart) 705 main_1 (int argc, Extbyte **argv,
706 #if defined (WIN32_NATIVE) || defined (_SCO_DS)
707 Extbyte **envp,
708 #else
709 Extbyte **UNUSED (envp),
710 #endif
711 int restart)
706 { 712 {
707 char stack_bottom_variable; 713 char stack_bottom_variable;
708 int skip_args = 0; 714 int skip_args = 0;
709 Lisp_Object load_me; 715 Lisp_Object load_me;
710 #ifdef NeXT 716 #ifdef NeXT
3359 /* The following needs conditionalization on whether either XEmacs or */ 3365 /* The following needs conditionalization on whether either XEmacs or */
3360 /* various system shared libraries have been built and linked with */ 3366 /* various system shared libraries have been built and linked with */
3361 /* GCC >= 2.8. -slb */ 3367 /* GCC >= 2.8. -slb */
3362 #if defined (GNU_MALLOC) 3368 #if defined (GNU_MALLOC)
3363 static void 3369 static void
3364 voodoo_free_hook (void *mem) 3370 voodoo_free_hook (void *UNUSED (mem))
3365 { 3371 {
3366 /* Disable all calls to free() when XEmacs is exiting and it doesn't */ 3372 /* Disable all calls to free() when XEmacs is exiting and it doesn't */
3367 /* matter. */ 3373 /* matter. */
3368 __free_hook = 3374 __free_hook =
3369 #ifdef TYPEOF 3375 #if defined (TYPEOF) && !defined (UNO)
3370 /* prototype of __free_hook varies with glibc version */ 3376 /* prototype of __free_hook varies with glibc version */
3371 (TYPEOF (__free_hook)) 3377 (TYPEOF (__free_hook))
3372 #endif 3378 #endif
3373 voodoo_free_hook; 3379 voodoo_free_hook;
3374 } 3380 }
3430 3436
3431 shut_down_emacs (0, STRINGP (arg) ? arg : Qnil, 0); 3437 shut_down_emacs (0, STRINGP (arg) ? arg : Qnil, 0);
3432 3438
3433 #if defined (GNU_MALLOC) 3439 #if defined (GNU_MALLOC)
3434 __free_hook = 3440 __free_hook =
3435 #ifdef TYPEOF 3441 #if defined (TYPEOF) && !defined (UNO)
3436 /* prototype of __free_hook varies with glibc version */ 3442 /* prototype of __free_hook varies with glibc version */
3437 (TYPEOF (__free_hook)) 3443 (TYPEOF (__free_hook))
3438 #endif 3444 #endif
3439 voodoo_free_hook; 3445 voodoo_free_hook;
3440 #endif 3446 #endif