diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2005-09-22 14:21:50 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2005-09-22 14:21:50 +0000 |
commit | 3de54dec267abf845ca32bd1f6026834cc04d853 (patch) | |
tree | daa34de1fd38e86c2dd0c67896c3c5748511fe1c /config | |
parent | 11524e2578b62fa30620121873aa372b180c0a74 (diff) | |
download | ocaml-3de54dec267abf845ca32bd1f6026834cc04d853.tar.gz |
Remplacement long/unsigned long par intnat/uintnat
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7064 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'config')
-rw-r--r-- | config/m-nt.h | 1 | ||||
-rw-r--r-- | config/m-templ.h | 12 |
2 files changed, 8 insertions, 5 deletions
diff --git a/config/m-nt.h b/config/m-nt.h index 46e8817bd7..f7a3b51e03 100644 --- a/config/m-nt.h +++ b/config/m-nt.h @@ -21,6 +21,7 @@ #undef ARCH_ALIGN_DOUBLE #define SIZEOF_INT 4 #define SIZEOF_LONG 4 +#define SIZEOF_PTR 4 #define SIZEOF_SHORT 2 #ifdef __MINGW32__ #define ARCH_INT64_TYPE long long diff --git a/config/m-templ.h b/config/m-templ.h index fdfc0c8c85..392ec562b8 100644 --- a/config/m-templ.h +++ b/config/m-templ.h @@ -18,9 +18,9 @@ #define ARCH_SIXTYFOUR /* Define ARCH_SIXTYFOUR if the processor has a natural word size of 64 bits. - That is, both sizeof(long) = 8 and sizeof(char *) = 8. - Otherwise, leave ARCH_SIXTYFOUR undefined. This assumes - sizeof(long) = sizeof(char *) = 4. */ + That is, sizeof(char *) = 8. + Otherwise, leave ARCH_SIXTYFOUR undefined. + This assumes sizeof(char *) = 4. */ #define ARCH_BIG_ENDIAN @@ -44,10 +44,12 @@ #define SIZEOF_INT 4 #define SIZEOF_LONG 4 +#define SIZEOF_PTR 4 #define SIZEOF_SHORT 2 -/* Define SIZEOF_INT, SIZEOF_LONG and SIZEOF_SHORT to the sizes in byte - of the C types "int", "long" and "short", respectively. */ +/* Define SIZEOF_INT, SIZEOF_LONG, SIZEOF_PTR and SIZEOF_SHORT + to the sizes in bytes of the C types "int", "long", "char *" and "short", + respectively. */ #define ARCH_INT64_TYPE long long #define ARCH_UINT64_TYPE unsigned long long |