enhanced callback functions for os2

This commit is contained in:
hyunghwan.chung
2018-11-06 06:24:59 +00:00
parent 72f500e73b
commit 65a702a88b
4 changed files with 48 additions and 7 deletions

View File

@ -421,7 +421,7 @@ class MyObject(Object)
[
| ss |
httpd start: %(
SocketAddress fromString: ('[::]:' & base_port asString),
## SocketAddress fromString: ('[::]:' & base_port asString),
SocketAddress fromString: ('0.0.0.0:' & (base_port + 1) asString)
).
@ -463,7 +463,7 @@ httpd connect: addr.
[
| ss |
httpd start: %(
SocketAddress fromString: '[::]:7777',
## SocketAddress fromString: '[::]:7777',
SocketAddress fromString: '0.0.0.0:7776'
).

View File

@ -84,6 +84,7 @@ class MyObject(Object)
[Exception hash dump] ensure: ['xxxx' dump].
] on: Exception do: [:ex | ('Exception caught - ' & ex asString) dump ].*)
(*
ffi := FFI new: '/lib64/libc.so.6'.
if (ffi isError)
{
@ -96,6 +97,7 @@ class MyObject(Object)
(ffi call: #printf signature: 's|iis)i' arguments: #(S'A=>%d B=>%d Hello, world %s\n' 1 2 'jump down')) dump.
ffi close.
}.
*)
(('abcd' == 'abcd') ifTrue: [1] ifFalse: [2]) dump.
}

View File

@ -261,7 +261,7 @@ TODO: how to pass all variadic arguments to another variadic methods???
class SmallPointer(Object)
{
method(#primitive) asString.
method(#primitive) getInt8 (offset).
method(#primitive) getInt16 (offset).
method(#primitive) getInt32 (offset).