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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-11-10 16:29:56 UTC
  • mfrom: (1.2.8 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20081110162956-xue6itkuqhbza87s
Tags: 1.3.36-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop pike and libchicken-dev from the build-depends 
    (both are universe)
  - Use python2.5 instead of python2.4.
  - use php5
  - Clean Runtime/ as well.
  - debian/Rules (clean): Remove Lib/ocaml/swigp4.ml.
  - drop "--without-mzscheme", we don't have it in our build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Test reserved keyword renaming
 
3
 */
 
4
 
 
5
%module keyword_rename
 
6
 
 
7
#pragma SWIG nowarn=SWIGWARN_PARSE_KEYWORD
 
8
 
 
9
%inline %{
 
10
 
 
11
#define KW(x, y) int x (int y) { return y; }
 
12
 
 
13
/* Python keywords */
 
14
KW(in, except)
 
15
KW(except, in)
 
16
KW(pass, in)
 
17
 
 
18
/* Perl keywords */
 
19
KW(tie, die)
 
20
KW(use, next)
 
21
 
 
22
/* Java keywords */
 
23
KW(implements, native)
 
24
KW(synchronized, final)
 
25
 
 
26
/* C# Keywords */
 
27
KW(string, out)
 
28
struct sealed {int i;};
 
29
 
 
30
%}
 
31
 
 
32