]> gitweb.factorcode.org Git - factor.git/commitdiff
alien-call should be alien-invoke
authorChris Double <chris.double@double.co.nz>
Thu, 10 Feb 2005 22:25:31 +0000 (22:25 +0000)
committerChris Double <chris.double@double.co.nz>
Thu, 10 Feb 2005 22:25:31 +0000 (22:25 +0000)
doc/alien.txt

index 01a6c5a03028711e536b12348344fb127e4896f4..369b941b3cce8995279f5c905548ed895cc9da19 100644 (file)
@@ -8,14 +8,14 @@ its drawbacks -- namely, its not portable.
 All FFI words are in the "alien" vocabulary.
 
 The basic principle is generating machine stubs from C function
-prototypes. The main entry point is the 'alien-call' word, which is
+prototypes. The main entry point is the 'alien-invoke' word, which is
 defined as simply throwing an error. However, it is given special
 compilation behavior. This means it can only be used in compiled words.
 
 Here is an example from sdl-video.factor:
 
 : SDL_LockSurface ( surface -- )
-    "int" "sdl" "SDL_LockSurface" [ "surface*" ] alien-call ;
+    "int" "sdl" "SDL_LockSurface" [ "surface*" ] alien-invoke ;
 
 The parameters are: