Documentation updates
parent
acd1a95f81
commit
b5b80cd0e9
|
@ -58,3 +58,10 @@ $nl
|
||||||
"} cond >>"
|
"} cond >>"
|
||||||
}
|
}
|
||||||
"Note the parse time evaluation with " { $link POSTPONE: << } "." } ;
|
"Note the parse time evaluation with " { $link POSTPONE: << } "." } ;
|
||||||
|
|
||||||
|
ARTICLE: "loading-libs" "Loading native libraries"
|
||||||
|
"Before calling a C library, you must associate its path name on disk with a logical name which Factor uses to identify the library:"
|
||||||
|
{ $subsection add-library }
|
||||||
|
"Once a library has been defined, you can try loading it to see if the path name is correct:"
|
||||||
|
{ $subsection load-library }
|
||||||
|
"If the compiler cannot load a library, or cannot resolve a symbol in a library, a linkage error is reported using the compiler error mechanism (see " { $link "compiler-errors" } "). Once you install the right library, reload the source file containing the " { $link add-library } " form to force the compiler to try loading the library again." ;
|
||||||
|
|
|
@ -14,7 +14,7 @@ $nl
|
||||||
{ { $image "vocab:ui/tools/error-list/icons/compiler-error.tiff" } "Compiler error" { $link "compiler-errors" } }
|
{ { $image "vocab:ui/tools/error-list/icons/compiler-error.tiff" } "Compiler error" { $link "compiler-errors" } }
|
||||||
{ { $image "vocab:ui/tools/error-list/icons/unit-test-error.tiff" } "Unit test failure" { $link "tools.test" } }
|
{ { $image "vocab:ui/tools/error-list/icons/unit-test-error.tiff" } "Unit test failure" { $link "tools.test" } }
|
||||||
{ { $image "vocab:ui/tools/error-list/icons/help-lint-error.tiff" } "Help lint failure" { $link "help.lint" } }
|
{ { $image "vocab:ui/tools/error-list/icons/help-lint-error.tiff" } "Help lint failure" { $link "help.lint" } }
|
||||||
{ { $image "vocab:ui/tools/error-list/icons/linkage-error.tiff" } "Linkage error" { $link "compiler-errors" } }
|
{ { $image "vocab:ui/tools/error-list/icons/linkage-error.tiff" } "Linkage error" { $link "loading-libs" } }
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
ABOUT: "ui.tools.error-list"
|
ABOUT: "ui.tools.error-list"
|
||||||
|
|
|
@ -145,12 +145,6 @@ ARTICLE: "reading-writing-memory" "Reading and writing memory directly"
|
||||||
{ $subsection set-alien-float }
|
{ $subsection set-alien-float }
|
||||||
{ $subsection set-alien-double } ;
|
{ $subsection set-alien-double } ;
|
||||||
|
|
||||||
ARTICLE: "loading-libs" "Loading native libraries"
|
|
||||||
"Before calling a C library, you must associate its path name on disk with a logical name which Factor uses to identify the library:"
|
|
||||||
{ $subsection add-library }
|
|
||||||
"Once a library has been defined, you can try loading it to see if the path name is correct:"
|
|
||||||
{ $subsection load-library } ;
|
|
||||||
|
|
||||||
ARTICLE: "alien-invoke" "Calling C from Factor"
|
ARTICLE: "alien-invoke" "Calling C from Factor"
|
||||||
"The easiest way to call into a C library is to define bindings using a pair of parsing words:"
|
"The easiest way to call into a C library is to define bindings using a pair of parsing words:"
|
||||||
{ $subsection POSTPONE: LIBRARY: }
|
{ $subsection POSTPONE: LIBRARY: }
|
||||||
|
|
Loading…
Reference in New Issue