Mercurial > hg > xemacs-beta
comparison src/gmalloc.c @ 272:c5d627a313b1 r21-0b34
Import from CVS: tag r21-0b34
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:28:48 +0200 |
parents | 084402c475ba |
children | c42ec1d1cded |
comparison
equal
deleted
inserted
replaced
271:c7b7086b0a39 | 272:c5d627a313b1 |
---|---|
76 #ifndef memcpy | 76 #ifndef memcpy |
77 #define memcpy(d, s, n) bcopy ((s), (d), (n)) | 77 #define memcpy(d, s, n) bcopy ((s), (d), (n)) |
78 #endif | 78 #endif |
79 #endif | 79 #endif |
80 | 80 |
81 #if defined(__GNU_LIBRARY__) || defined(__STDC__) | |
82 #include <limits.h> | 81 #include <limits.h> |
83 #else | |
84 #define CHAR_BIT 8 | |
85 #endif | |
86 | 82 |
87 #ifdef HAVE_UNISTD_H | 83 #ifdef HAVE_UNISTD_H |
88 #include <unistd.h> | 84 #include <unistd.h> |
89 #endif | 85 #endif |
90 | 86 |
94 #ifdef __cplusplus | 90 #ifdef __cplusplus |
95 extern "C" | 91 extern "C" |
96 { | 92 { |
97 #endif | 93 #endif |
98 | 94 |
99 /* #### XEmacs change for Solaris */ | |
100 #if defined (__cplusplus) || (defined (__STDC__) && __STDC__) || \ | |
101 (defined (__STDC__) && defined (SOLARIS2)) || defined (WINDOWSNT) | |
102 #undef __P | 95 #undef __P |
103 #define __P(args) args | 96 #define __P(args) args |
104 #undef __ptr_t | 97 #undef __ptr_t |
105 #define __ptr_t void * | 98 #define __ptr_t void * |
106 #else /* Not C++ or ANSI C. */ | 99 |
107 #undef __P | |
108 #define __P(args) () | |
109 #undef const | |
110 #define const | |
111 #undef __ptr_t | |
112 #define __ptr_t char * | |
113 #endif /* C++ or ANSI C. */ | |
114 | |
115 #ifdef __STDC__ | |
116 #include <stddef.h> | 100 #include <stddef.h> |
117 #define __malloc_size_t size_t | 101 #define __malloc_size_t size_t |
118 #else | |
119 #ifdef OSF1 /* from grunwald@foobar.cs.colorado.edu */ | |
120 #define __malloc_size_t unsigned long | |
121 #else | |
122 #define __malloc_size_t unsigned int | |
123 #endif | |
124 #endif | |
125 | 102 |
126 #ifndef NULL | 103 #ifndef NULL |
127 #define NULL 0 | 104 #define NULL 0 |
128 #endif | 105 #endif |
129 | 106 |