[go: up one dir, main page]

File: guile.i

package info (click to toggle)
swig1.3 1.3.11-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,852 kB
  • ctags: 4,764
  • sloc: ansic: 20,489; cpp: 10,052; sh: 7,256; yacc: 2,669; makefile: 2,381; python: 873; java: 762; tcl: 686; perl: 474; lisp: 444; ruby: 370; php: 367
file content (34 lines) | stat: -rw-r--r-- 1,103 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
/* SWIG Configuration File for Guile. -*-c-*-
   This file is parsed by SWIG before reading any other interface
   file. */

/* Include headers */
%insert(runtime) "guiledec.swg"

#ifndef SWIG_NOINCLUDE
%insert(runtime) "guile.swg"
#endif

#define %scheme	    %insert("scheme")

#define %values_as_list   %pragma(guile) beforereturn = ""
#define %values_as_vector %pragma(guile) beforereturn = "GUILE_MAYBE_VECTOR"
#define %multiple_values  %pragma(guile) beforereturn = "GUILE_MAYBE_VALUES"

/* The following definitions are supposed to provide a common API for
   the supported Scheme dialects, so that typemaps may be shared.  I
   also plan to adopt Guile's high-level interface (GH) for this
   purpose. */
#define SWIG_malloc(size) \
  SCM_MUST_MALLOC(size)
#define SWIG_free(mem) \
  scm_must_free(mem)
#define SWIG_GetPtr(s, result, type) \
  SWIG_Guile_GetPtr(s, result, type)
#define SWIG_MustGetPtr(s, type, argnum) \
  SWIG_Guile_MustGetPtr(s, type, argnum, FUNC_NAME)
#define SWIG_MakePtr(ptr, type) \
  SWIG_Guile_MakePtr(ptr, type)

/* Read in standard typemaps. */
%include "typemaps.i"