scsh-0.5/cig/libcig.c

87 lines
2.1 KiB
C
Raw Normal View History

1995-10-13 23:34:21 -04:00
/* This is an Scheme48/C interface file,
** automatically generated by cig.
*/
#include <stdio.h>
#include <stdlib.h> /* For malloc. */
#include "libcig.h"
scheme_value df_strlen_or_false(long nargs, scheme_value *args)
{
extern scheme_value strlen_or_false(const char * );
scheme_value ret1;
scheme_value r1;
cig_check_nargs(1, nargs, "strlen_or_false");
r1 = strlen_or_false((const char * )AlienVal(args[0]));
ret1 = r1;
return ret1;
}
scheme_value df_cstring_nullp(long nargs, scheme_value *args)
{
extern int cstring_nullp(const char * );
scheme_value ret1;
int r1;
cig_check_nargs(1, nargs, "cstring_nullp");
r1 = cstring_nullp((const char * )AlienVal(args[0]));
ret1 = ENTER_BOOLEAN(r1);
return ret1;
}
scheme_value df_c2scheme_strcpy_free(long nargs, scheme_value *args)
{
extern int c2scheme_strcpy_free(scheme_value , char* );
scheme_value ret1;
int r1;
cig_check_nargs(2, nargs, "c2scheme_strcpy_free");
r1 = c2scheme_strcpy_free(args[1], (char* )AlienVal(args[0]));
ret1 = ENTER_BOOLEAN(r1);
return ret1;
}
scheme_value df_c2scheme_strcpy(long nargs, scheme_value *args)
{
extern int c2scheme_strcpy(scheme_value , char* );
scheme_value ret1;
int r1;
cig_check_nargs(2, nargs, "c2scheme_strcpy");
r1 = c2scheme_strcpy(args[1], (char* )AlienVal(args[0]));
ret1 = ENTER_BOOLEAN(r1);
return ret1;
}
scheme_value df_c_veclen(long nargs, scheme_value *args)
{
extern scheme_value c_veclen(long* );
scheme_value ret1;
scheme_value r1;
cig_check_nargs(1, nargs, "c_veclen");
r1 = c_veclen((long* )AlienVal(args[0]));
ret1 = r1;
return ret1;
}
scheme_value df_free(long nargs, scheme_value *args)
{
extern void free(void* );
cig_check_nargs(1, nargs, "free");
free((void* )AlienVal(args[0]));
return SCHFALSE;
}
scheme_value df_set_strvec_carriers(long nargs, scheme_value *args)
{
extern void set_strvec_carriers(scheme_value , char** );
cig_check_nargs(2, nargs, "set_strvec_carriers");
set_strvec_carriers(args[1], (char** )AlienVal(args[0]));
return SCHFALSE;
}