49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
/* This is an Scheme48/C interface file,
|
|
** automatically generated by a hacked version of cig 3.0.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h> /* For malloc. */
|
|
#include "libcig.h"
|
|
|
|
#include <sys/types.h>
|
|
|
|
/* Make sure foreign-function stubs interface to the C funs correctly: */
|
|
#include "fdports1.h"
|
|
|
|
s48_value df_read_delim(s48_value g1, s48_value g2, s48_value g3, s48_value g4, s48_value g5, s48_value mv_vec)
|
|
{
|
|
extern s48_value read_delim(const char *, char *, int , int , int , int *);
|
|
s48_value ret1;
|
|
s48_value r1;
|
|
int r2;
|
|
|
|
|
|
r1 = read_delim(s48_extract_string(g1), s48_extract_string(g2), s48_extract_fixnum(g3), s48_extract_fixnum(g4), s48_extract_fixnum(g5), &r2);
|
|
ret1 = r1;
|
|
S48_VECTOR_SET(mv_vec,0,s48_enter_fixnum(r2));
|
|
return ret1;
|
|
}
|
|
|
|
s48_value df_skip_chars(s48_value g1, s48_value g2, s48_value mv_vec)
|
|
{
|
|
extern s48_value skip_chars(const char *, int , int *);
|
|
s48_value ret1;
|
|
s48_value r1;
|
|
int r2;
|
|
|
|
|
|
r1 = skip_chars(s48_extract_string(g1), s48_extract_fixnum(g2), &r2);
|
|
ret1 = r1;
|
|
S48_VECTOR_SET(mv_vec,0,s48_enter_fixnum(r2));
|
|
return ret1;
|
|
}
|
|
|
|
s48_value s48_init_rdelim(void)
|
|
{
|
|
S48_EXPORT_FUNCTION(df_read_delim);
|
|
S48_EXPORT_FUNCTION(df_skip_chars);
|
|
|
|
return S48_UNSPECIFIC;
|
|
}
|