hedgewars/pas2c.h
changeset 7038 d853e4385241
parent 7002 5d817ba976f7
child 7041 76a9274f280f
equal deleted inserted replaced
7037:7edce323558f 7038:d853e4385241
    44 typedef void * pointer;
    44 typedef void * pointer;
    45 typedef Byte * PByte;
    45 typedef Byte * PByte;
    46 typedef char * PChar;
    46 typedef char * PChar;
    47 typedef LongInt * PLongInt;
    47 typedef LongInt * PLongInt;
    48 typedef Integer * PInteger;
    48 typedef Integer * PInteger;
       
    49 typedef int * PtrInt;
    49 
    50 
    50 #ifdef __GNUG__
    51 #ifdef __GNUG__
    51 #define NULL __null
    52 #define NULL __null
    52 #else   /* G++ */
    53 #else   /* G++ */
    53 /* shield NULL definition for non-gnu parsers */
    54 /* shield NULL definition for non-gnu parsers */
    89 #define BlockRead(a, b, c, d) BlockRead_(a, &(b), c, &(d))
    90 #define BlockRead(a, b, c, d) BlockRead_(a, &(b), c, &(d))
    90 void BlockRead_(int f, void * p, int size, int * sizeRead);
    91 void BlockRead_(int f, void * p, int size, int * sizeRead);
    91 void close(int f);
    92 void close(int f);
    92 
    93 
    93 bool odd(int i);
    94 bool odd(int i);
       
    95 
       
    96 
       
    97 typedef int TThreadId;
       
    98 void ThreadSwitch();
       
    99 #define InterlockedIncrement(a) __InterlockedIncrement(&(a))
       
   100 #define InterlockedDecrement(a) __InterlockedDecrement(&(a))
       
   101 void __InterlockedIncrement(int * a);
       
   102 void __InterlockedDecrement(int * a);
       
   103 
       
   104 bool Assigned(void * a);
       
   105 
       
   106 int random(int max);
       
   107 int abs(int i);