[previous] [up] [next]     [contents] [index]
Next: Library Functions Up: MzScheme Architecture Previous: Library Functions

Units

Primitive units can be created by allocating an instance of the Scheme_Unit data type:

  typedef struct Scheme_Unit {
    Scheme_Type type;  /* = scheme_unit_type */
    short num_imports;
    short num_exports;
    Scheme_Object **exports;
    Scheme_Object **export_debug_names; /* NULL */
    Scheme_Object *(*init_func)(Scheme_Object **boxes, Scheme_Object **anchors,
                                struct Scheme_Unit *m, void *debug_request);
    Scheme_Object *data;
  } Scheme_Unit;

The fields are filled as follows:





PLT