hedgewars/pas2c.h
author unc0rr
Sun, 15 Apr 2012 00:47:22 +0400
changeset 6891 ab9843957664
parent 6889 149638c9cbc4
child 6894 555a8d8db228
permissions -rw-r--r--
Improve rendering of function types, ranges, and more
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6875
6528171ce36d First try to compile with clang: improve renderer a bit. The result of pas2c is still far from normal C source.
unc0rr
parents:
diff changeset
     1
#pragma once
6528171ce36d First try to compile with clang: improve renderer a bit. The result of pas2c is still far from normal C source.
unc0rr
parents:
diff changeset
     2
6878
0af34406b83d Improve rendering of function types, arrays, and more
unc0rr
parents: 6875
diff changeset
     3
#include <stdbool.h>
0af34406b83d Improve rendering of function types, arrays, and more
unc0rr
parents: 6875
diff changeset
     4
6883
70aec33185e2 Support string constants
unc0rr
parents: 6878
diff changeset
     5
typedef struct string255_
70aec33185e2 Support string constants
unc0rr
parents: 6878
diff changeset
     6
    {
70aec33185e2 Support string constants
unc0rr
parents: 6878
diff changeset
     7
        char s[256];
70aec33185e2 Support string constants
unc0rr
parents: 6878
diff changeset
     8
    } string255;
6889
149638c9cbc4 More string types
unc0rr
parents: 6886
diff changeset
     9
typedef struct string192_
149638c9cbc4 More string types
unc0rr
parents: 6886
diff changeset
    10
    {
149638c9cbc4 More string types
unc0rr
parents: 6886
diff changeset
    11
        char s[193];
149638c9cbc4 More string types
unc0rr
parents: 6886
diff changeset
    12
    } string192;
149638c9cbc4 More string types
unc0rr
parents: 6886
diff changeset
    13
typedef struct string31_
149638c9cbc4 More string types
unc0rr
parents: 6886
diff changeset
    14
    {
149638c9cbc4 More string types
unc0rr
parents: 6886
diff changeset
    15
        char s[32];
149638c9cbc4 More string types
unc0rr
parents: 6886
diff changeset
    16
    } string31;
6891
ab9843957664 Improve rendering of function types, ranges, and more
unc0rr
parents: 6889
diff changeset
    17
typedef struct string15_
ab9843957664 Improve rendering of function types, ranges, and more
unc0rr
parents: 6889
diff changeset
    18
    {
ab9843957664 Improve rendering of function types, ranges, and more
unc0rr
parents: 6889
diff changeset
    19
        char s[16];
ab9843957664 Improve rendering of function types, ranges, and more
unc0rr
parents: 6889
diff changeset
    20
    } string15;
6875
6528171ce36d First try to compile with clang: improve renderer a bit. The result of pas2c is still far from normal C source.
unc0rr
parents:
diff changeset
    21
6528171ce36d First try to compile with clang: improve renderer a bit. The result of pas2c is still far from normal C source.
unc0rr
parents:
diff changeset
    22
typedef int SmallInt;
6528171ce36d First try to compile with clang: improve renderer a bit. The result of pas2c is still far from normal C source.
unc0rr
parents:
diff changeset
    23
typedef int Word;
6528171ce36d First try to compile with clang: improve renderer a bit. The result of pas2c is still far from normal C source.
unc0rr
parents:
diff changeset
    24
typedef int LongInt;
6528171ce36d First try to compile with clang: improve renderer a bit. The result of pas2c is still far from normal C source.
unc0rr
parents:
diff changeset
    25
typedef int LongWord;
6528171ce36d First try to compile with clang: improve renderer a bit. The result of pas2c is still far from normal C source.
unc0rr
parents:
diff changeset
    26
typedef int Byte;
6878
0af34406b83d Improve rendering of function types, arrays, and more
unc0rr
parents: 6875
diff changeset
    27
typedef int Integer;
6886
4463ee51c9ec Render unions
unc0rr
parents: 6883
diff changeset
    28
typedef long long int QWord;
6878
0af34406b83d Improve rendering of function types, arrays, and more
unc0rr
parents: 6875
diff changeset
    29
0af34406b83d Improve rendering of function types, arrays, and more
unc0rr
parents: 6875
diff changeset
    30
typedef float extended;
0af34406b83d Improve rendering of function types, arrays, and more
unc0rr
parents: 6875
diff changeset
    31
typedef float real;
0af34406b83d Improve rendering of function types, arrays, and more
unc0rr
parents: 6875
diff changeset
    32
0af34406b83d Improve rendering of function types, arrays, and more
unc0rr
parents: 6875
diff changeset
    33
typedef bool boolean;
6875
6528171ce36d First try to compile with clang: improve renderer a bit. The result of pas2c is still far from normal C source.
unc0rr
parents:
diff changeset
    34
6528171ce36d First try to compile with clang: improve renderer a bit. The result of pas2c is still far from normal C source.
unc0rr
parents:
diff changeset
    35
typedef void * pointer;
6878
0af34406b83d Improve rendering of function types, arrays, and more
unc0rr
parents: 6875
diff changeset
    36
typedef Byte * PByte;
0af34406b83d Improve rendering of function types, arrays, and more
unc0rr
parents: 6875
diff changeset
    37
typedef char * PChar;
0af34406b83d Improve rendering of function types, arrays, and more
unc0rr
parents: 6875
diff changeset
    38
typedef LongInt * PLongInt;
0af34406b83d Improve rendering of function types, arrays, and more
unc0rr
parents: 6875
diff changeset
    39
typedef Integer * PInteger;
6875
6528171ce36d First try to compile with clang: improve renderer a bit. The result of pas2c is still far from normal C source.
unc0rr
parents:
diff changeset
    40