--- a/ExternalFunction.st Wed Oct 26 23:35:39 2016 +0100
+++ b/ExternalFunction.st Fri Nov 18 20:48:04 2016 +0000
@@ -138,13 +138,13 @@
Instances of this class represent external (non-Smalltalk) functions.
(Obsolete) Custom Functions:
- This class also provides access to custom functions.
- These custom functions enable you to call c functions
- even if no stc compiler is available (they are kind of what user-primitives are in ST-80).
- You can register your own custom C-functions in a private main.c and relink ST/X from the binaries.
- (see the demo functions provided in main.c).
- Notice, that custom functions are ugly and inflexible.
- They are to be considered obsolete and support for them will vanish.
+ This class also provides access to custom functions.
+ These custom functions enable you to call c functions
+ even if no stc compiler is available (they are kind of what user-primitives are in ST-80).
+ You can register your own custom C-functions in a private main.c and relink ST/X from the binaries.
+ (see the demo functions provided in main.c).
+ Notice, that custom functions are ugly and inflexible.
+ They are to be considered obsolete and support for them will vanish.
If you have the stc compiler, we recommend using either inline primitive
code or the new external function call interface which is based upon libffi.
@@ -160,22 +160,22 @@
with the call / callWith: methods.
ST-arguments are converted to C as follows:
- ST class C argument
- ------------------------------
- SmallInteger int
- LargeInteger int (must be 4-byte unsigned largeInteger)
- String char *
- Symbol char *
- Character int
- ExternalBytes char *
- ExternalAddress char *
- ExternalFunction char *
- FloatArray float *
- DoubleArray double *
- ByteArray char *
- ShortFloat float
- true 1
- false 0
+ ST class C argument
+ ------------------------------
+ SmallInteger int
+ LargeInteger int (must be 4-byte unsigned largeInteger)
+ String char *
+ Symbol char *
+ Character int
+ ExternalBytes char *
+ ExternalAddress char *
+ ExternalFunction char *
+ FloatArray float *
+ DoubleArray double *
+ ByteArray char *
+ ShortFloat float
+ true 1
+ false 0
The returned value is converted to an unsigned integer (smallInteger or largeInteger).
@@ -191,11 +191,11 @@
general use. For now, use inline C-code.
[author:]
- Claus Gittinger
+ Claus Gittinger
[see also:]
- ExternalAddress ExternalBytes
- ( how to write primitive code :html: programming/primitive.html )
+ ExternalAddress ExternalBytes
+ ( how to write primitive code :html: programming/primitive.html )
"
!