mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 21:32:26 +00:00
Make address just a synonym for int32 or int64.
This commit is contained in:
parent
24aa3c6508
commit
1bce6ac9b0
1 changed files with 10 additions and 3 deletions
|
|
@ -33,14 +33,14 @@
|
||||||
#if defined (__o_64)
|
#if defined (__o_64)
|
||||||
#if defined(_WIN64)
|
#if defined(_WIN64)
|
||||||
typedef unsigned long long size_t;
|
typedef unsigned long long size_t;
|
||||||
typedef long long address;
|
// typedef long long address;
|
||||||
#else
|
#else
|
||||||
typedef unsigned long size_t;
|
typedef unsigned long size_t;
|
||||||
typedef long address;
|
// typedef long address;
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
typedef unsigned int size_t;
|
typedef unsigned int size_t;
|
||||||
typedef int address;
|
//typedef int address;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _SIZE_T_DECLARED // For FreeBSD
|
#define _SIZE_T_DECLARED // For FreeBSD
|
||||||
|
|
@ -71,6 +71,13 @@ typedef signed char int8;
|
||||||
typedef unsigned char uint8;
|
typedef unsigned char uint8;
|
||||||
|
|
||||||
|
|
||||||
|
// 'address' is a synonym for an int32 of pointer size
|
||||||
|
|
||||||
|
#if defined (__o_64)
|
||||||
|
#define address int64
|
||||||
|
#else
|
||||||
|
#define address int32
|
||||||
|
#endif
|
||||||
|
|
||||||
// The compiler uses 'import' and 'export' which translate to 'extern' and
|
// The compiler uses 'import' and 'export' which translate to 'extern' and
|
||||||
// nothing respectively.
|
// nothing respectively.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue