help.markup help.syntax make vectors ;
IN: compiler.codegen.relocation
-HELP: relocation-table
-{ $description "A " { $link byte-vector } " holding the relocations for the current compilation. Each sequence of four bytes in the vector represents one relocation." }
-{ $see-also init-relocation } ;
-
HELP: add-dlsym-parameters
{ $values { "symbol" byte-array } { "dll" dll } }
-{ $description "Adds a pair of parameters for a reference to an external C function to the " { $link parameter-table } "." } ;
+{ $description "Adds a pair of parameters for a reference to an external C function to the " { $link parameter-table } ". 'symbol' is the name of the function and 'dll' is the shared library which contains it." } ;
HELP: add-relocation
{ $values
} ;
HELP: parameter-table
-{ $var-description "The parameter table is a " { $link vector } " which contains all the paramters for the word being generated." } ;
+{ $var-description "The parameter table is a " { $link vector } " which contains all the parameters for the word being generated." }
+{ $see-also add-dlsym-parameters init-relocation } ;
+
+HELP: relocation-table
+{ $description "A " { $link byte-vector } " holding the relocations for the current compilation. Each sequence of four bytes in the vector represents one relocation." }
+{ $see-also init-relocation } ;
HELP: rel-decks-offset
{ $values { "class" "a relocation class" } }
-USING: alien.accessors alien.c-types alien.libraries
+USING: alien.accessors alien.c-types alien.libraries alien.strings
alien.syntax byte-arrays cpu.x86 eval help.markup help.syntax io
-io.backend kernel math quotations sequences system ;
+io.backend io.encodings.utf16n io.encodings.utf8 kernel math
+quotations sequences system ;
IN: alien
HELP: callee-cleanup?
{ $class-description "The class of alien pointers. See " { $link "syntax-aliens" } " for syntax and " { $link "c-data" } " for general information." } ;
HELP: dll
-{ $class-description "The class of native library handles. See " { $link "syntax-aliens" } " for syntax and " { $link "dll.private" } " for general information." } ;
+{ $class-description "The class of native library handles. See " { $link "syntax-aliens" } " for syntax and " { $link "dll.private" } " for general information."
+$nl
+"The dll tuple has one slot 'path' which holds the filesystem path to the library being loaded in the systems " { $link native-string-encoding } ", usually " { $link utf8 } " on unices and " { $link utf16n } " on windows." } ;
HELP: dll-valid?
{ $values { "dll" dll } { "?" boolean } }