File: libcig.c

package info (click to toggle)
scsh 0.5.1-2
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 6,540 kB
  • ctags: 8,656
  • sloc: lisp: 39,346; ansic: 13,466; sh: 1,669; makefile: 624
file content (86 lines) | stat: -rw-r--r-- 2,161 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* 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)
{
    

    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;
    }