ExternalLibraryFunction.st
changeset 19950 ee2f6bfd55c1
parent 19933 d45636ff51df
child 19951 2ba5ef097a79
--- a/ExternalLibraryFunction.st	Sun Jun 05 11:59:17 2016 +0200
+++ b/ExternalLibraryFunction.st	Mon Jun 06 10:00:18 2016 +0200
@@ -85,9 +85,9 @@
 # define TYPE_SINT64    __get_ffi_type_sint64()
 
 # define TYPE_POINTER   __get_ffi_type_pointer()
-# define TYPE_FLOAT     __get_ffi_type_float();
-# define TYPE_DOUBLE    __get_ffi_type_double();
-# define TYPE_VOID      __get_ffi_type_void();
+# define TYPE_FLOAT     __get_ffi_type_float()
+# define TYPE_DOUBLE    __get_ffi_type_double()
+# define TYPE_VOID      __get_ffi_type_void()
 
 #else /* NO FFI */
 
@@ -140,14 +140,14 @@
     A limited fallback implementation is provided for systems with no libffi.
     (this may have limitations on the supported argument types; for example,
      the x86_64 fallback does not support float/double arguments).
-    Therefore the fallback should be considered a temporary workaround, 
+    Therefore the fallback should be considered a temporary workaround,
     until libffi has been ported.
-    
+
     Inside a method, when a special external-call pragma such as:
-        <api: bool MessageBeep(uint)>
+	<api: bool MessageBeep(uint)>
 
     is encountered by the parser, the compiler generates a call via
-        <correspondingExternalLibraryFunctionObject> invokeWithArguments: argumentArray.
+	<correspondingExternalLibraryFunctionObject> invokeWithArguments: argumentArray.
     and the correspondingExternalLibraryFunctionObject is kept in the literal array.
 
     In the invoke method, the library is checked to be loaded (and loaded if not already),
@@ -155,22 +155,22 @@
     and finally, the return value is converted back from C to a smalltalk object.
 
     The parser supports the call-syntax of various other smalltalk dialects:
-        Squeak / ST-X:
-            <cdecl:   [async] [virtual|nonVirtual][const] returnType functionNameStringOrIndex ( argType1..argTypeN ) module: moduleName >
-            <apicall: [async] [virtual|nonVirtual][const] returnType functionNameStringOrIndex ( argType1..argTypeN ) module: moduleName >
+	Squeak / ST-X:
+	    <cdecl:   [async] [virtual|nonVirtual][const] returnType functionNameStringOrIndex ( argType1..argTypeN ) module: moduleName >
+	    <apicall: [async] [virtual|nonVirtual][const] returnType functionNameStringOrIndex ( argType1..argTypeN ) module: moduleName >
 
-        Dolphin:
-            <stdcall: [virtual|nonVirtual][const] returnType functionNameStringOrIndex argType1..argTypeN>
-            <cdecl:   [virtual|nonVirtual][const] returnType functionNameStringOrIndex argType1..argTypeN>
+	Dolphin:
+	    <stdcall: [virtual|nonVirtual][const] returnType functionNameStringOrIndex argType1..argTypeN>
+	    <cdecl:   [virtual|nonVirtual][const] returnType functionNameStringOrIndex argType1..argTypeN>
 
-        ST/V:
-            <api: functionName argType1 .. argTypeN returnType>
-            <ccall: functionName argType1 .. argTypeN returnType>
-            <ole: vFunctionIndex argType1 .. argTypeN returnType>
+	ST/V:
+	    <api: functionName argType1 .. argTypeN returnType>
+	    <ccall: functionName argType1 .. argTypeN returnType>
+	    <ole: vFunctionIndex argType1 .. argTypeN returnType>
 
-        VisualWorks:
-            <c: ...>
-            <c: #define NAME value>
+	VisualWorks:
+	    <c: ...>
+	    <c: #define NAME value>
 "
 !