previous up next     contents index
Next: Flags and Hooks Up: Miscellaneous Utilities Previous: Miscellaneous Utilities

Library Functions

 
int   scheme_eq(Scheme_Object *obj1, Scheme_Object *obj2) 

Returns 1 if the Scheme values are  eq?.

 
int   scheme_eqv(Scheme_Object *obj1, Scheme_Object *obj2) 

Returns 1 if the Scheme values are  eqv?.

 
int   scheme_equal(Scheme_Object *obj1, Scheme_Object *obj2) 

Returns 1 if the Scheme values are  equal?.

 
int   scheme_list_length(Scheme_Object *list) 

Returns the length of the list. If list is not a proper list, then the last cdr counts as an item. If there is a cycle in list (involvng only cdrs), this procedure will not terminate.

 
int   scheme_proper_list_length(Scheme_Object *list) 

Returns the length of the list, or -1 if it is not a proper list. If there is a cycle in list (involvng only cdrs), this procedure returns -1.

 
Scheme_Object *  scheme_car(Scheme_Object *pair) 

Returns the  car of the pair.

 
Scheme_Object *  scheme_cdr(Scheme_Object *pair) 

Returns the  cdr of the pair.

 
Scheme_Object *  scheme_cadr(Scheme_Object *pair) 

Returns the  cadr of the pair.

 
Scheme_Object *  scheme_caddr(Scheme_Object *pair) 

Returns the  caddr of the pair.

 
Scheme_Object *  scheme_vector_to_list(Scheme_Object *vec) 

Creates a list with the same elements as the given vector.

 
Scheme_Object *  scheme_list_to_vector(Scheme_Object *list) 

Creates a vector with the same elements as the given list.

 
Scheme_Object *  scheme_append(Scheme_Object *lstx, Scheme_Object *lsty) 

Non-destructively appends the given lists.

 
Scheme_Object *  scheme_unbox(Scheme_Object *obj) 

Returns the contents of the given box.

 
void   scheme_set_box(Scheme_Object *b, Scheme_Object *v) 

Sets the contents of the given box.

 
int   scheme_load(char *file) 

Loads the specified Scheme file.

 
void   scheme_load_extension(char *filename) 

Loads the specified Scheme extension file.

 
int  scheme_double_to_int(char *where, double d) 

Returns a fixnum value for the gien floating-point number d. If d is not an integer or if it is too large, then an error message will be reported; name is used for error-reporting.

 
void   scheme_set_package_path(char *path) 

Sets the current library path to path.

 
void   scheme_secure_exceptions(Scheme_Env *env) 

Secures the primitive exception types, just like secure-primitive-expcetion-types.

 
long   scheme_get_millseconds() 

Returns the current ``time'' in millseconds, just like get-millseconds.

 
char *  scheme_banner() 

Returns a string that should be used for the MzScheme startup banner.

 
char *  scheme_version() 

Returns a string for the version of MzScheme being used.


previous up next     contents index
Next: Flags and Hooks Up: Miscellaneous Utilities Previous: Miscellaneous Utilities

PLT