~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to fpcsrc/packages/extra/gtk2/glib/glibconfig.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// included by glib2.pas
 
2
 
 
3
{*
 
4
 * glibconfig.inc
 
5
 *
 
6
 * depends on gmacros.inc
 
7
 *}
 
8
 
 
9
{$IFDEF read_forward_definitions}
 
10
   Pgint8 = ^gint8;
 
11
   gint8 = shortint;
 
12
 
 
13
   Pguint8 = ^guint8;
 
14
   guint8 = byte;
 
15
 
 
16
   Pgint16 = ^gint16;
 
17
   gint16 = smallint;
 
18
 
 
19
   Pguint16 = ^guint16;
 
20
   guint16 = word;
 
21
 
 
22
   Pgint32 = ^gint32;
 
23
   gint32 = longint;
 
24
 
 
25
   Pguint32 = ^guint32;
 
26
   guint32 = dword;
 
27
 
 
28
   Pgint64 = ^gint64;
 
29
   gint64  = int64;
 
30
 
 
31
   Pguint64 = ^guint64;
 
32
   guint64  = qword;
 
33
 
 
34
   pgssize  = ^gssize;
 
35
   gssize   = longint;
 
36
   pgsize   = ^gsize;
 
37
   gsize    = dword;
 
38
 
 
39
{$ENDIF read_forward_definitions}
 
40
 
 
41
//------------------------------------------------------------------------------
 
42
 
 
43
{$IFDEF read_interface_rest}
 
44
 
 
45
const
 
46
   G_MINFLOAT   = 5.0e-324;
 
47
   G_MAXFLOAT   = 1.7e308;
 
48
   G_MINDOUBLE  = G_MINFLOAT;  // since gdouble is the same
 
49
   G_MAXDOUBLE  = G_MAXFLOAT;  // as gfloat
 
50
   G_MAXSHORT   = 32767;
 
51
   G_MINSHORT   = -G_MAXSHORT-1;
 
52
   G_MAXUSHORT  = 2*G_MAXSHORT+1;
 
53
   G_MAXINT     = 2147483647;
 
54
   G_MININT     = -G_MAXINT-1;
 
55
   G_MAXUINT    = 4294967295;   //  2*G_MAXINT+1;
 
56
   G_MINLONG    = G_MININT;        // since glong is the same
 
57
   G_MAXLONG    = G_MAXINT;        // as gint
 
58
   G_MAXULONG   = G_MAXUINT;
 
59
   G_MAXINT64   = 9223372036854775807;
 
60
   G_MININT64   = -G_MAXINT64-1;
 
61
   {$IFNDEF KYLIX}
 
62
   G_MAXUINT64  = qword(2)*qword(G_MAXINT64)+1;
 
63
   {$ELSE}
 
64
   G_MAXUINT64  = G_MAXINT64;   //  Kylix doesn't support constants bigger than G_MAXINT64
 
65
   {$ENDIF}
 
66
 
 
67
 
 
68
const
 
69
   G_GINT16_FORMAT = 'hi';
 
70
   G_GUINT16_FORMAT = 'hu';
 
71
 
 
72
   G_GINT32_FORMAT = 'i';
 
73
   G_GUINT32_FORMAT = 'u';
 
74
 
 
75
   G_HAVE_GINT64 = 1;     { always true }
 
76
 
 
77
   G_GINT64_FORMAT  = 'I64i';
 
78
   G_GUINT64_FORMAT = 'I64u';
 
79
 
 
80
   GLIB_SIZEOF_VOID_P = SizeOf(Pointer);
 
81
   GLIB_SIZEOF_LONG   = SizeOf(longint);
 
82
   GLIB_SIZEOF_SIZE_T = SizeOf(longint);
 
83
 
 
84
type
 
85
  PGSystemThread = ^TGSystemThread;
 
86
  TGSystemThread = record
 
87
        data           : array [0..3] of char;
 
88
        dummy_double   : double;
 
89
        dummy_pointer  : pointer;
 
90
        dummy_long     : longint;
 
91
      end;
 
92
 
 
93
 
 
94
const
 
95
   GLIB_SYSDEF_POLLIN    = 1;
 
96
   GLIB_SYSDEF_POLLOUT   = 4;
 
97
   GLIB_SYSDEF_POLLPRI   = 2;
 
98
   GLIB_SYSDEF_POLLERR   = 8;
 
99
   GLIB_SYSDEF_POLLHUP   = 16;
 
100
   GLIB_SYSDEF_POLLNVAL  = 32;
 
101
 
 
102
{$ifdef win32}
 
103
   G_MODULE_SUFFIX  = 'dll';
 
104
{$else}
 
105
   G_MODULE_SUFFIX  = 'so';
 
106
{$endif}
 
107
 
 
108
function GUINT_TO_POINTER(i: guint): pointer;
 
109
 
 
110
 
 
111
 
 
112
{$ENDIF read_interface_rest}
 
113
 
 
114
// included by glib2.pas
 
115