Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
map bool/size_t, and bump nqp/moar
  • Loading branch information
FROGGS committed Dec 14, 2015
1 parent 0447386 commit 61f085c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/NativeCall.pm6
Expand Up @@ -88,6 +88,7 @@ sub return_hash_for(Signature $s, &r?, :$with-typeobj) {
# Gets the NCI type code to use based on a given Perl 6 type.
my %type_map =
'int8' => 'char',
'bool' => 'char',
'Bool' => 'char',
'int16' => 'short',
'int32' => 'int',
Expand All @@ -103,6 +104,7 @@ my %type_map =
'ulonglong' => 'ulonglong',
'ulong' => 'ulong',
'uint' => 'ulong',
'size_t' => 'size_t',
'num32' => 'float',
'num64' => 'double',
'longdouble' => 'longdouble',
Expand Down
4 changes: 2 additions & 2 deletions lib/NativeCall/Types.pm6
Expand Up @@ -10,8 +10,8 @@ our native long is Int is ctype("long") is repr("P6int") { };
our native longlong is Int is ctype("longlong") is repr("P6int") { };
our native ulong is Int is ctype("long") is unsigned is repr("P6int") { };
our native ulonglong is Int is ctype("longlong") is unsigned is repr("P6int") { };
our native size_t is Int is ctype("size_t") is repr("P6int") { };
our native bool is Int is ctype("bool") is repr("P6int") { };
our native size_t is Int is ctype("size_t") is repr("P6int") { };
our native bool is Int is ctype("bool") is repr("P6int") { };
our class void is repr('Uninstantiable') { };
# Expose a Pointer class for working with raw pointers.
our class Pointer is repr('CPointer') {
Expand Down
2 changes: 1 addition & 1 deletion tools/build/NQP_REVISION
@@ -1 +1 @@
2015.11-48-ged362a9
2015.11-53-g30d8359

0 comments on commit 61f085c

Please sign in to comment.