hedgewars/pas2cSystem.pas
author unc0rr
Thu, 26 Jan 2012 16:04:08 +0400
changeset 6600 5810e42d8375
parent 6552 91adc9ee7b8c
child 6635 c2fa29fe2a58
permissions -rw-r--r--
Haha, I was greatly puzzled by "date.month() == 10 && date.daysInMonth() == 31" :D

system;

type 
    LongInt = integer;
    LongWord = integer;
    Cardinal = integer;
    PtrInt = integer;
    Word = integer;
    Integer = integer;
    Byte = integer;
    SmallInt = integer;
    ShortInt = integer;

    pointer = pointer;
    PChar = pointer;

    double = float;
    real = float;
    float = float;

    boolean = boolean;
    LongBool = boolean;

    string = string;
    shortstring = string;
    ansistring = string;

    char = char;
    
    PByte = ^Byte;
    PLongInt = ^LongInt;
    PLongWord = ^LongWord;
    PInteger = ^Integer;
var 
    false, true: boolean;
    write, writeLn, read, readLn, inc, dec: procedure;
    StrLen, ord, Succ, Pred : function : integer;
    Low, High : function : integer;
    Now : function : integer;
    StrPas, FormatDateTime : function : shortstring;
    exit : procedure;