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

« back to all changes in this revision

Viewing changes to Examples/test-suite/wrapmacro.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:
21
21
    (guint16) ((guint16) (val) >> 8) |  \
22
22
    (guint16) ((guint16) (val) << 8)))
23
23
 
24
 
#define max(a,b) ((a) > (b) ? (a) : (b))
 
24
/* Don't use max(), it's a builtin function for PHP. */
 
25
#define maximum(a,b) ((a) > (b) ? (a) : (b))
25
26
  
26
27
%}
27
28
 
41
42
 
42
43
/* Here, wrapping the macros */
43
44
%wrapmacro(guint16, GUINT16_SWAP_LE_BE_CONSTANT, guint16 val, val);
44
 
%wrapmacro(size_t, max, PLIST(size_t a, const size_t& b), PLIST(a, b));
45
 
%wrapmacro(double, max, PLIST(double a, double b), PLIST(a, b));
 
45
%wrapmacro(size_t, maximum, PLIST(size_t a, const size_t& b), PLIST(a, b));
 
46
%wrapmacro(double, maximum, PLIST(double a, double b), PLIST(a, b));
46
47
 
47
48
 
48
49
/* Maybe in the future, a swig directive will make this easier: