view include/system.h @ 21:7c2adb65ceac

Started working on dynamic memory I have a slightly adapted version of dynamic memory allocation from the H&R book in the program now, I will soon be adding the free function. I fixed sPrint so it will work with large buffers.
author Jonathan Pevarnek <pevarnj@gmail.com>
date Tue, 15 Mar 2011 22:55:36 -0400
parents d24d69066fc0
children f68b59af5ea6
line wrap: on
line source

#ifndef __SYSTEM_H
#define __SYSTEM_H

#define NULL	((void*) 0)
#define CON_LEN 132

typedef unsigned long long u64;
typedef signed long long s64;

typedef unsigned int u32;
typedef signed int s32;

typedef unsigned short u16;
typedef signed short s16;

typedef unsigned char u8;
typedef signed char s8;

#ifdef __cplusplus
extern "C" {
#endif
	extern int putline(char *buf, int len);
	extern int getline(char *buf, int len);

#ifdef __cplusplus
}
#endif

#endif