hedgewars/pas2c.h
changeset 7053 8c9dcaedc7a8
parent 7045 197bf70f8599
child 7054 7e8fb07ef91c
--- a/hedgewars/pas2c.h	Fri May 11 19:33:21 2012 +0400
+++ b/hedgewars/pas2c.h	Fri May 11 20:01:57 2012 +0400
@@ -63,10 +63,12 @@
 
 #define new(a) __new((void **)&a, sizeof(*(a)))
 void __new(void ** p, int size);
-
 #define dispose(a) __dispose(a, sizeof(*(a)))
 void __dispose(pointer p, int size);
 
+void * GetMem(int size);
+void FreeMem(void * p, int size);
+
 #define FillChar(a, b, c) __FillChar(&(a), b, c)
 
 void __FillChar(pointer p, int size, char fill);
@@ -93,8 +95,13 @@
 void reset(int f, int size);
 #define BlockRead(a, b, c, d) BlockRead_(a, &(b), c, &(d))
 void BlockRead_(int f, void * p, int size, int * sizeRead);
+#define BlockWrite(a, b, c) BlockWrite_(a, &(b), c)
+void BlockWrite_(int f, void * p, int size);
 void close(int f);
 
+bool DirectoryExists(string255 dir);
+bool FileExists(string255 filename);
+
 bool odd(int i);