Changeset 34290 in project


Ignore:
Timestamp:
08/15/17 20:57:43 (3 months ago)
Author:
sjamaan
Message:

man/5: Move dynamic-load-libraries docs from TODO/Parameters to "Module (chicken load)"

Location:
wiki/man/5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wiki/man/5/Module (chicken load)

    r34289 r34290  
    5555{{LIBRARYFILE}} must contain at least one slash ({{"/"}}).
    5656
    57 === load-verbose
    58 
    59 <parameter>(load-verbose)</parameter>
    60 
    61 A boolean indicating whether loading of source files, compiled code
    62 (if available) and compiled libraries should display a message.
    63 
    64 === set-dynamic-load-mode!
    65 
    66 <procedure>(set-dynamic-load-mode! MODELIST)</procedure>
    67 
    68 On systems that support dynamic loading of compiled code via the {{dlopen(3)}}
    69 interface (for example Linux and Solaris), some options can be specified to
    70 fine-tune the behaviour of the dynamic linker. {{MODE}} should be a list of
    71 symbols (or a single symbol) taken from the following set:
    72 
    73 ; {{local}} : If {{local}} is given, then any C/C++ symbols defined in the dynamically loaded file are not available for subsequently loaded files and libraries. Use this if you have linked foreign code into your dynamically loadable file and if you don't want to export them (for example because you want to load another file that defines the same symbols).
    74 ; {{global}} : The default is {{global}}, which means all C/C++ symbols are available to code loaded at a later stage.
    75 ; {{now}} : If {{now}} is specified, all symbols are resolved immediately.
    76 ; {{lazy}} : Unresolved symbols are resolved as code from the file is executed. This is the default.
    77 
    78 Note that this procedure does not control the way Scheme variables are handled -
    79 this facility is mainly of interest when accessing foreign code.
    80 
    81 
    8257=== require
    8358
     
    11489
    11590
     91=== Tuning how code is loaded
     92
     93==== dynamic-load-libraries
     94
     95<parameter>(dynamic-load-libraries)</parameter>
     96
     97A list of strings containing shared libraries that should be checked
     98for explicitly loaded library units (this facility is not available on
     99all platforms). See {{load-library}}.
     100
     101
     102==== load-verbose
     103
     104<parameter>(load-verbose)</parameter>
     105
     106A boolean indicating whether loading of source files, compiled code
     107(if available) and compiled libraries should display a message.
     108
     109
     110==== set-dynamic-load-mode!
     111
     112<procedure>(set-dynamic-load-mode! MODELIST)</procedure>
     113
     114On systems that support dynamic loading of compiled code via the
     115{{dlopen(3)}} interface (for example Linux and Solaris), some options
     116can be specified to fine-tune the behaviour of the dynamic
     117linker. {{MODE}} should be a list of symbols (or a single symbol)
     118taken from the following set:
     119
     120; {{local}} : If {{local}} is given, then any C/C++ symbols defined in the dynamically loaded file are not available for subsequently loaded files and libraries. Use this if you have linked foreign code into your dynamically loadable file and if you don't want to export them (for example because you want to load another file that defines the same symbols).
     121; {{global}} : The default is {{global}}, which means all C/C++ symbols are available to code loaded at a later stage.
     122; {{now}} : If {{now}} is specified, all symbols are resolved immediately.
     123; {{lazy}} : Unresolved symbols are resolved as code from the file is executed. This is the default.
     124
     125Note that this procedure does not control the way Scheme variables are handled -
     126this facility is mainly of interest when accessing foreign code.
     127
     128
    116129---
    117130Previous: [[Module (chicken keyword)]]
  • wiki/man/5/TODO/Parameters

    r34289 r34290  
    5252
    5353
    54 === dynamic-load-libraries
    55 
    56 <parameter>(dynamic-load-libraries)</parameter>
    57 
    58 A list of strings containing shared libraries that should be checked
    59 for explicitly loaded library units (this facility is not available on
    60 all platforms). See {{load-library}}.
    61 
    62 
    63 
    6454=== current-read-table
    6555
Note: See TracChangeset for help on using the changeset viewer.