diff -r b1b7eb9c8cc9 -r bcf9d8e64e92 hedgewars/pas2c.h --- a/hedgewars/pas2c.h Sat May 12 22:50:33 2012 +0400 +++ b/hedgewars/pas2c.h Sat May 12 23:55:09 2012 +0400 @@ -84,6 +84,7 @@ int Length(string255 a); string255 copy(string255 a, int s, int l); string255 delete(string255 a, int s, int l); +string255 trim(string255 a); #define STRINIT(a) {.len = sizeof(a) - 1, .str = a} @@ -97,7 +98,8 @@ #define assign(a, b) assign_(&(a), b) void assign_(int * f, string255 fileName); -void reset(int f, int size); +void reset_1(int f, int size); +void reset_2(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) @@ -136,3 +138,6 @@ void _val(string255 str, LongInt * a); extern double pi; + +string255 EnumToStr(int a); +string255 ExtractFileName(string255 f);