#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Sat, 12 Nov 2016 11:50:23 +0100
changeset 20957 9b5bcb4a87ce
parent 20956 d8ed7f775615
child 20958 4a8561ed705e
#DOCUMENTATION by cg class: ExternalFunction comment/format in: #documentation
ExternalFunction.st
--- a/ExternalFunction.st	Sat Nov 12 11:50:12 2016 +0100
+++ b/ExternalFunction.st	Sat Nov 12 11:50:23 2016 +0100
@@ -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 )
 "
 !