summary refs log tree commit diff stats
path: root/lib/wrappers/x11
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-07-15 10:39:21 +0200
committerAraq <rumpf_a@web.de>2012-07-15 10:39:21 +0200
commit089e7db08a8088ac6ed885fbdb4ee215033bbbf3 (patch)
treef7e6fdb243d14205636aee0855b2a42e645d9ae9 /lib/wrappers/x11
parent1279bd285507524d32bc7bfe6c2d4c706d1157a9 (diff)
downloadNim-089e7db08a8088ac6ed885fbdb4ee215033bbbf3.tar.gz
x11 wrapper uses system's types
Diffstat (limited to 'lib/wrappers/x11')
-rwxr-xr-xlib/wrappers/x11/x.nim2
-rwxr-xr-xlib/wrappers/x11/xlib.nim8
2 files changed, 3 insertions, 7 deletions
diff --git a/lib/wrappers/x11/x.nim b/lib/wrappers/x11/x.nim
index aa6e7f821..5763f9f16 100755
--- a/lib/wrappers/x11/x.nim
+++ b/lib/wrappers/x11/x.nim
@@ -16,8 +16,6 @@ const
   X_PROTOCOL_REVISION* = 0
 
 type
-  culong* = int
-  cuchar* = char
   PXID* = ptr TXID
   TXID* = culong
   PMask* = ptr TMask
diff --git a/lib/wrappers/x11/xlib.nim b/lib/wrappers/x11/xlib.nim
index f915f0eae..946f9566a 100755
--- a/lib/wrappers/x11/xlib.nim
+++ b/lib/wrappers/x11/xlib.nim
@@ -6,19 +6,17 @@ const
   libX11* = "libX11.so"
 
 type
-  cuint* = cint
   cunsigned* = cint
-  cushort* = int16
   Pcint* = ptr cint
   PPcint* = ptr Pcint
   PPcuchar* = ptr ptr cuchar
   PWideChar* = ptr int16
   PPChar* = ptr cstring
   PPPChar* = ptr ptr cstring
-  Pculong* = ptr int
+  Pculong* = ptr culong
   Pcuchar* = cstring
-  Pcuint* = ptr cint
-  Pcushort* = ptr int16
+  Pcuint* = ptr cuint
+  Pcushort* = ptr uint16
 #  Automatically converted by H2Pas 0.99.15 from xlib.h
 #  The following command line parameters were used:
 #    -p