~ubuntu-branches/ubuntu/oneiric/swig1.3/oneiric

« back to all changes in this revision

Viewing changes to Examples/test-suite/chicken_ext_test.i

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2009-11-15 14:00:28 UTC
  • mfrom: (1.2.9 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091115140028-me7amr2rie8zz1xn
Tags: 1.3.40-2ubuntu1
* Merge from Debian testing (LP: #356529), remaining changes:
  - Drop libchicken-dev from the build-depends (it's in universe)
  - Remove Pike from package description and from configure flags
  - drop "--without-mzscheme", we don't have it in our build-depends
  - use php-config5
  - Clean Runtime/ as well.
  - debian/rules (clean): Remove Lib/ocaml/swigp4.ml.
* debian/rules: Remove hardcoded python version.
* Remove upper limit for python from Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%module chicken_ext_test
 
2
 
 
3
/* just use the imports_a.h header... for this test we only need a class */
 
4
%{
 
5
#include "imports_a.h"
 
6
%}
 
7
 
 
8
%include "imports_a.h"
 
9
 
 
10
%{
 
11
void test_create(C_word,C_word,C_word) C_noret;
 
12
%}
 
13
 
 
14
%init %{
 
15
 {
 
16
    C_word *space = C_alloc(2 + C_SIZEOF_INTERNED_SYMBOL(11));
 
17
    sym = C_intern (&space, 11, "test-create");
 
18
    C_mutate ((C_word*)sym+1, (*space=C_CLOSURE_TYPE|1, space[1]=(C_word)test_create, tmp=(C_word)space, space+=2, tmp));
 
19
 }
 
20
%}
 
21