summaryrefslogtreecommitdiff
path: root/ext/dl/lib/dl/cparser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/lib/dl/cparser.rb')
-rw-r--r--ext/dl/lib/dl/cparser.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/dl/lib/dl/cparser.rb b/ext/dl/lib/dl/cparser.rb
index 210f9534715..7aae9ea4eb3 100644
--- a/ext/dl/lib/dl/cparser.rb
+++ b/ext/dl/lib/dl/cparser.rb
@@ -95,6 +95,16 @@ module DL
return TYPE_FLOAT
when "double"
return TYPE_DOUBLE
+ when "size_t"
+ return TYPE_SIZE_T
+ when "ssize_t"
+ return TYPE_SSIZE_T
+ when "ptrdiff_t"
+ return TYPE_PTRDIFF_T
+ when "intptr_t"
+ return TYPE_INTPTR_T
+ when "uintptr_t"
+ return TYPE_UINTPTR_T
when /\*/, /\[\s*\]/
return TYPE_VOIDP
else