00001 #ifndef PLATFORM_H 00002 #define PLATFORM_H 00003 00004 #define SCREEN_WIDTH 80 00005 #define SCREEN_HEIGHT 25 00006 extern char *file_prefix; // Path to executable, prepended on filenames 00007 00008 #define get_entropy() time(NULL) 00009 00010 // Stuff in TIGCCLIB which we replace for PC 00011 #define clear_line(a) (move((a),0), clrtoeol()) 00012 #define clrscr() clear() 00013 #define clrtiles() erase() 00014 void *malloc_throw(size_t size); 00015 void *calloc_throw(size_t N, size_t S); 00016 void *realloc_throw(void *ptr, size_t size); 00017 00018 #endif 00019
1.3.6