changeset 12197:9cba6f0d9cd7

[_LIBC] (start_of_data): Define to &__data_start for GNU libc.
author Roland McGrath <roland@gnu.org>
date Mon, 12 Jun 1995 17:21:07 +0000
parents 63ca6fb189d7
children 74afe5e734a8
files src/mem-limits.h
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/mem-limits.h	Mon Jun 12 00:55:33 1995 +0000
+++ b/src/mem-limits.h	Mon Jun 12 17:21:07 1995 +0000
@@ -1,5 +1,5 @@
 /* Includes for memory limit warnings.
-   Copyright (C) 1990, 1993, 1994 Free Software Foundation, Inc.
+   Copyright (C) 1990, 1993, 1994, 1995 Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -29,6 +29,9 @@
 #include <sys/resource.h>
 #define BSD4_2			/* Tell code below to use getrlimit.  */
 
+extern int __data_start;
+#define start_of_data()	&__data_start
+
 #else
 
 #if defined (__osf__) && (defined (__mips) || defined (mips) || defined(__alpha))
@@ -53,8 +56,6 @@
 #include <sys/resource.h>
 #endif /* BSD4_2 */
 
-#endif /* _LIBC */
-
 #ifdef emacs
 /* The important properties of this type are that 1) it's a pointer, and
    2) arithmetic on it should work as if the size of the object pointed
@@ -92,7 +93,8 @@
 #define start_of_data() &etext
 #endif /* Not emacs */
 
-  
+#endif /* _LIBC */
+
 
 /* start of data space; can be changed by calling malloc_init */
 static POINTER data_space_start;