Deferred class handling low-level C interfaces. Its heirs will fully
expose each other their internals.
No assumption is made on memory handling; to create a proper wrapper for
it the developer shall inherit both from this class and from classes
providing memory handling behaviour, depending on how structure's memory
shall be handled. This is decided case-by-case by C library.
Currently available memory handling classes are:
C_OWNED: memory is always handled by the underlying C library.
EIFFEL_OWNED: once created memory is fully handled by Eiffel runtime,
usually with the Garbage Collector.
GLOBALLY_CACHED: Until disposed by Eiffel the wrapper registered in
wrappers dictionary will be the unique wrapper used on the Eiffel side.
MIXED_MEMORY_HANDLING: whose memory can either by handled by the Eiffel
library or by the underlying C code. Who handles memory is decided on a
per-object based on the value of the flag is_shared: handle will not
be freed on dispose of the Eiffel wrapper object, when is_shared
true.
REFERENCE_COUNTED: memory is handled throught reference counting, i.e.
GObject
Previous design was a black-or-white design either Eiffel-owned or not:
C_STRUCT's are "owned" by the Eiffel code, and the Eiffel side should
keep then longest lived reference to this struct. This allows us to
forget about wrapping for this objects. If you have to share this
struct and/or will have pointers to it around that will outlive the
wrapper, please use SHARED_C_STRUCT
Build a FAST_ARRAY of STRINGs from a_pointer which must be of a
NULL-terminated array of C strings, that is a "char**" String
contents and array itself are copied.
This exception occurs when Void is passed as the expression
to inspect ("inspect on STRING only).
This exception also occurs when the inspected value selects no branch (when the keyword "else"
not used, one "when" branch _must_ be selected). Some value which is not one of the inspect
constants, if there is no Else_part
h
Build a FAST_ARRAY of STRINGs from a_pointer which must be of a
NULL-terminated array of C strings, that is a "char**" String
contents and array itself are copied.