Next: , Previous: , Up: Trap Library Functions   [Index]


7.26.3.3 x1f4_init_lxtrap

extern int x1f4_init_lxtrap
    (void **lxtrap, unsigned flags, const struct x1f4_lxtrap_type *attributes);

The x1f4_init_lxtrap function constructs a trap library as requested by the flags generation flags and the attributes library attributes and stores the address of the construct at the lxtrap address.

See Trap Library Generation Flags.

See struct x1f4_lxtrap_type.

Only the function mapper and the temporaries allocator against which the temporary object constructs are to be registered fields in the attributes struct x1f4_lxtrap_type record are observed without explicit indication, the rest of the struct x1f4_lxtrap_type fields are observed only if explicitly requested (via flags).

The function returns 0 for success, one of the defined error codes for failure.

See Trap Library Errors.

See Trap Library Specifics.

See Trap Library Usage Mechanics.