hedgewars/pas2cSystem.pas
author Medo <smaxein@googlemail.com>
Sun, 01 Apr 2012 04:27:46 +0200
changeset 6844 69fb04c8a841
parent 6837 a137733c5776
child 6838 b1a0e7a52c04
permissions -rw-r--r--
Scheme definitions now use .ini files.

system;

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

    pointer = pointer;
    PChar = pointer;

    float = float;
    double = float;
    real = float;
    extended = float;
    GLFloat = float;

    boolean = boolean;
    LongBool = boolean;

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

    char = char;
    
    PByte = ^Byte;
    PLongInt = ^LongInt;
    PLongWord = ^LongWord;
    PInteger = ^Integer;
    
    Handle = integer;
    stderr = Handle;
var 
    false, true: boolean;
    write, writeLn, read, readLn, inc, dec: procedure;
    StrLen, ord, Succ, Pred : function : integer;
    Low, High : function : integer;
    Now : function : integer;
    Length : function : integer;
    Abs, Sqr : function : integer;
    StrPas, FormatDateTime, copy, delete, str : function : shortstring;
    exit, flush : procedure;
    Sqrt : function : float;
    TextFile : Handle;