hedgewars/pas2c.h
changeset 7073 26f960656cc9
parent 7072 159616c24bb8
child 7074 3f23bd0f2af2
equal deleted inserted replaced
7072:159616c24bb8 7073:26f960656cc9
     1 #pragma once
     1 #pragma once
     2 
     2 
     3 #include <stdint.h>
     3 #include <stdint.h>
     4 #include <stdbool.h>
     4 #include <stdbool.h>
       
     5 #include <wchar.h>
     5 
     6 
     6 typedef union string255_
     7 typedef union string255_
     7     {
     8     {
     8         struct {
     9         struct {
     9             char s[256];
    10             char s[256];
    34 typedef int16_t SmallInt;
    35 typedef int16_t SmallInt;
    35 typedef uint32_t LongWord;
    36 typedef uint32_t LongWord;
    36 typedef int32_t LongInt;
    37 typedef int32_t LongInt;
    37 typedef uint64_t QWord;
    38 typedef uint64_t QWord;
    38 typedef int64_t Int64;
    39 typedef int64_t Int64;
       
    40 typedef LongWord Cardinal;
    39 
    41 
    40 typedef LongInt Integer;
    42 typedef LongInt Integer;
    41 typedef float extended;
    43 typedef float extended;
    42 typedef float real;
    44 typedef float real;
    43 typedef float single;
    45 typedef float single;
    50 typedef char * PChar;
    52 typedef char * PChar;
    51 typedef LongInt * PLongInt;
    53 typedef LongInt * PLongInt;
    52 typedef LongWord * PLongWord;
    54 typedef LongWord * PLongWord;
    53 typedef Integer * PInteger;
    55 typedef Integer * PInteger;
    54 typedef int PtrInt;
    56 typedef int PtrInt;
       
    57 typedef wchar_t widechar;
    55 
    58 
    56 #ifdef __GNUG__
    59 #ifdef __GNUG__
    57 #define NULL __null
    60 #define NULL __null
    58 #else   /* G++ */
    61 #else   /* G++ */
    59 /* shield NULL definition for non-gnu parsers */
    62 /* shield NULL definition for non-gnu parsers */