Browse Source

* use cint

peter 20 years ago
parent
commit
54f70b6349
2 changed files with 313 additions and 323 deletions
  1. 14 8
      packages/extra/x11/x.pp
  2. 299 315
      packages/extra/x11/xlib.pp

+ 14 - 8
packages/extra/x11/x.pp

@@ -6,6 +6,10 @@ interface
   {$LinkLib X11}
   {$LinkLib X11}
 {$endif}
 {$endif}
 
 
+type
+  culong = dword;
+  cuchar = byte;
+
 {
 {
   Automatically converted by H2Pas 0.99.15 from x.h
   Automatically converted by H2Pas 0.99.15 from x.h
   The following command line parameters were used:
   The following command line parameters were used:
@@ -42,20 +46,20 @@ const
 type
 type
 
 
    PXID = ^TXID;
    PXID = ^TXID;
-   TXID = dword;
+   TXID = culong;
 
 
    PMask = ^TMask;
    PMask = ^TMask;
-   TMask = dword;
+   TMask = culong;
 
 
    PPAtom = ^PAtom;
    PPAtom = ^PAtom;
    PAtom = ^TAtom;
    PAtom = ^TAtom;
-   TAtom = dword;
+   TAtom = culong;
 
 
    PVisualID = ^TVisualID;
    PVisualID = ^TVisualID;
-   TVisualID = dword;
+   TVisualID = culong;
 
 
    PTime = ^TTime;
    PTime = ^TTime;
-   TTime = dword;
+   TTime = culong;
 
 
    PPWindow = ^PWindow;
    PPWindow = ^PWindow;
    PWindow = ^TWindow;
    PWindow = ^TWindow;
@@ -83,7 +87,7 @@ type
    TKeySym = TXID;
    TKeySym = TXID;
 
 
    PKeyCode = ^TKeyCode;
    PKeyCode = ^TKeyCode;
-   TKeyCode = byte;
+   TKeyCode = cuchar;
 
 
 const
 const
    None = 0;
    None = 0;
@@ -206,6 +210,8 @@ const
    FamilyInternet = 0;
    FamilyInternet = 0;
    FamilyDECnet = 1;
    FamilyDECnet = 1;
    FamilyChaos = 2;
    FamilyChaos = 2;
+   FamilyInternet6 = 6;
+   FamilyServerInterpreted = 5;
    PropertyNewValue = 0;
    PropertyNewValue = 0;
    PropertyDelete = 1;
    PropertyDelete = 1;
    ColormapUninstalled = 0;
    ColormapUninstalled = 0;
@@ -225,8 +231,8 @@ const
    ReplayKeyboard = 5;
    ReplayKeyboard = 5;
    AsyncBoth = 6;
    AsyncBoth = 6;
    SyncBoth = 7;
    SyncBoth = 7;
-   RevertToNone = 0;
-   RevertToPointerRoot = 1;
+   RevertToNone = None;
+   RevertToPointerRoot = PointerRoot;
    RevertToParent = 2;
    RevertToParent = 2;
    Success = 0;
    Success = 0;
    BadRequest = 1;
    BadRequest = 1;

File diff suppressed because it is too large
+ 299 - 315
packages/extra/x11/xlib.pp


Some files were not shown because too many files changed in this diff