comparison src/config.h.in @ 2994:ec5f23ea6d2e

[xemacs-hg @ 2005-10-14 01:21:57 by ben] add gc percentage threshold to mc-alloc config.h.in, alloc.c, dumper.c, emacs.c, lrecord.h, mc-alloc.c, mc-alloc.h, symbols.c: Rename MC_ALLOC_TYPE_STATS to ALLOC_TYPE_STATS, since (with refactoring) this is not really specific to mc-alloc. Generalize code to implement the GC % threshold for garbage collecting. Rename `lrecord-stats' to `object-memory-usage-stats' (defined when not mc-alloc, too). Rename `memory-usage' to `total-memory-usage' and add `object-memory-usage'. Bump gc_cons_threshold to 2,000,000 (suggestion by Stephen Turnbull). Avoid use of C++ reserved word `catch'. Change address for crash reporting to xemacs-beta@xemacs.org from crashes@xemacs.org. new -> new_ in emacs.c. Turn on _CRT_SECURE_NO_DEPRECATE under Visual C++ to avoid tons of warnings in VC8.
author ben
date Fri, 14 Oct 2005 01:22:01 +0000
parents 6fa9919a9a0b
children beef0f850624
comparison
equal deleted inserted replaced
2993:49316578f12d 2994:ec5f23ea6d2e
1 /* XEmacs site configuration template file. -*- C -*- 1 /* XEmacs site configuration template file. -*- C -*-
2 Copyright (C) 1986, 1991-1994, 1998, 1999 Free Software Foundation, Inc. 2 Copyright (C) 1986, 1991-1994, 1998, 1999 Free Software Foundation, Inc.
3 Copyright (C) 2000, 2001, 2002, 2004 Ben Wing. 3 Copyright (C) 2000, 2001, 2002, 2004, 2005 Ben Wing.
4 4
5 This file is part of XEmacs. 5 This file is part of XEmacs.
6 6
7 XEmacs is free software; you can redistribute it and/or modify it 7 XEmacs is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the 8 under the terms of the GNU General Public License as published by the
813 #undef HAVE_TOOLBARS 813 #undef HAVE_TOOLBARS
814 #undef HAVE_WIDGETS 814 #undef HAVE_WIDGETS
815 815
816 #endif /* WIN32_NO_CONFIGURE */ 816 #endif /* WIN32_NO_CONFIGURE */
817 817
818 #ifdef _MSC_VER
819 /* Turn off tons of C4996 warnings in VC 8 about standard functions being
820 "deprecated" in favor of Microsoft-specific "secure" ones (!)
821 This must go *before* the inclusion of any system files. */
822 #define _CRT_SECURE_NO_DEPRECATE
823 #endif
824
818 /* alloca twiddling. 825 /* alloca twiddling.
819 Because we might be #including alloca.h here, feature test macros 826 Because we might be #including alloca.h here, feature test macros
820 such as _XOPEN_SOURCE must be defined above. 827 such as _XOPEN_SOURCE must be defined above.
821 828
822 #### This really should go below the inclusion of s&m files, like 829 #### This really should go below the inclusion of s&m files, like
907 914
908 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC) 915 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
909 #define SYSTEM_MALLOC 916 #define SYSTEM_MALLOC
910 #endif 917 #endif
911 918
919 /* This enables type based information (updated during gc). The output
920 is used by show-memory-usage to print memory information for each
921 type. Since the new allocator does not distinguish between types
922 anymore, this functionality is additionally implemented and
923 consumes a lot of time. That is why this functionality can be
924 disabled; for the moment, we keep it enabled. */
925 #if !defined (MC_ALLOC) || 1
926 # define ALLOC_TYPE_STATS 1
927 #endif
928
912 /* Define the return type of signal handlers if the s/xxx.h file 929 /* Define the return type of signal handlers if the s/xxx.h file
913 did not already do so. */ 930 did not already do so. */
914 #define RETSIGTYPE void 931 #define RETSIGTYPE void
915 932
916 #ifndef XCDECL 933 #ifndef XCDECL