Skip to content

Commit 0a689ec

Browse files
committed
Adds missing native types to list
The list includes also some that are not listed in the NativeCall code, but I guess that's OK. Closes #1511
1 parent b1551fe commit 0a689ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/Language/nativecall.pod6

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,12 @@ likely grow with time).
6565
6666
X<|int8>X<|int16>X<|int32>X<|int64>X<|uint8>X<|uint16>X<|uint32>X<|uint64>X<|long>X<|longlong>X<|ulong>X<|ulonglong>X<|num32>X<|num64>X<|Str>X<|Pointer>X<|bool>X<|size_t>X<|ssize_t>
6767
=begin table
68+
int (long in C)
6869
int8 (int8_t in C, also used for char)
6970
int16 (int16_t in C, also used for short)
7071
int32 (int32_t in C, also used for int)
7172
int64 (int64_t in C)
73+
uint (ulong in C)
7274
uint8 (uint8_t in C, also used for unsigned char)
7375
uint16 (uint16_t in C, also used for unsigned short)
7476
uint32 (uint32_t in C, also used for unsigned int)
@@ -77,6 +79,8 @@ X<|int8>X<|int16>X<|int32>X<|int64>X<|uint8>X<|uint16>X<|uint32>X<|uint64>X<|lon
7779
longlong (long long in C, at least 64-bit)
7880
ulong (unsigned long in C)
7981
ulonglong (unsigned long long in C, at least 64-bit)
82+
longdouble (longdouble in C)
83+
Num, num (double in C)
8084
num32 (float in C)
8185
num64 (double in C)
8286
Str (C string)
@@ -85,6 +89,7 @@ X<|int8>X<|int16>X<|int32>X<|int64>X<|uint8>X<|uint16>X<|uint32>X<|uint64>X<|lon
8589
bool (bool from C99)
8690
size_t (size_t in C)
8791
ssize_t (ssize_t in C)
92+
Callable (callback in C)
8893
=end table
8994
9095
Don't use Perl 6 native types like C<int> or C<num> in native calls, as they don't have to

0 commit comments

Comments
 (0)