mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 11:02:24 +00:00
added SYSTEM.INT8, SYSTEM.INT16, SYSTEM.INT32, SYSTEM.INT64. tested only
on x86_64 yet. -- noch
Former-commit-id: 38794808ac
This commit is contained in:
parent
ebfcd163aa
commit
060ec5134d
6 changed files with 20 additions and 5 deletions
|
|
@ -12,7 +12,6 @@
|
|||
MODULE SYSTEM; (* J. Templ, 31.5.95 *)
|
||||
|
||||
IMPORT SYSTEM; (*must not import other modules*)
|
||||
|
||||
CONST
|
||||
ModNameLen = 20;
|
||||
CmdNameLen = 24;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ uses double # as concatenation operator
|
|||
*/
|
||||
|
||||
#include <alloca.h>
|
||||
|
||||
#include <stdint.h>
|
||||
extern void *memcpy(void *dest, const void *src, unsigned long n);
|
||||
extern void *malloc(unsigned long size);
|
||||
extern void exit(int status);
|
||||
|
|
@ -51,7 +51,10 @@ typedef void *SYSTEM_PTR;
|
|||
//#define *SYSTEM_PTR void
|
||||
//typedef unsigned char SYSTEM_BYTE;
|
||||
#define SYSTEM_BYTE unsigned char
|
||||
|
||||
#define SYSTEM_INT8 int8_t
|
||||
#define SYSTEM_INT16 int16_t
|
||||
#define SYSTEM_INT32 int32_t
|
||||
#define SYSTEM_INT64 int64_t
|
||||
/* runtime system routines */
|
||||
extern long SYSTEM_DIV();
|
||||
extern long SYSTEM_MOD();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue