diff options
| author | Richard M. Stallman | 1993-05-26 03:49:40 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-26 03:49:40 +0000 |
| commit | a8c0e5ea6b7639c4cabd939676764062f11b96a5 (patch) | |
| tree | 02218096a50f4c89b98a455881ed1709d86b0450 /src | |
| parent | bd0b85c32a17aa890c607d9192f46af1b2b5f0f9 (diff) | |
| download | emacs-a8c0e5ea6b7639c4cabd939676764062f11b96a5.tar.gz emacs-a8c0e5ea6b7639c4cabd939676764062f11b96a5.zip | |
(POINTER): Always use char *.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ralloc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ralloc.c b/src/ralloc.c index e5860a1d784..a8ab0754268 100644 --- a/src/ralloc.c +++ b/src/ralloc.c | |||
| @@ -33,6 +33,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 33 | /* The important properties of this type are that 1) it's a pointer, and | 33 | /* The important properties of this type are that 1) it's a pointer, and |
| 34 | 2) arithmetic on it should work as if the size of the object pointed | 34 | 2) arithmetic on it should work as if the size of the object pointed |
| 35 | to has a size of 1. */ | 35 | to has a size of 1. */ |
| 36 | #if 0 /* Arithmetic on void* is a GCC extension. */ | ||
| 36 | #ifdef __STDC__ | 37 | #ifdef __STDC__ |
| 37 | typedef void *POINTER; | 38 | typedef void *POINTER; |
| 38 | #else | 39 | #else |
| @@ -44,6 +45,10 @@ typedef void *POINTER; | |||
| 44 | typedef char *POINTER; | 45 | typedef char *POINTER; |
| 45 | 46 | ||
| 46 | #endif | 47 | #endif |
| 48 | #endif /* 0 */ | ||
| 49 | |||
| 50 | /* Unconditionally use char * for this. */ | ||
| 51 | typedef char *POINTER; | ||
| 47 | 52 | ||
| 48 | typedef unsigned long SIZE; | 53 | typedef unsigned long SIZE; |
| 49 | 54 | ||