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

« back to all changes in this revision

Viewing changes to Lib/ocaml/cstring.i

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-12-06 10:27:08 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071206102708-t37t62i45n595w0e
Tags: 1.3.33-2ubuntu1
* Merge with Debian; remaining changes:
  - Drop support for pike.
  - Use python2.5 instead of python2.4.
  - Clean Runtime/ as well.
  - Force a few environment variables.
* debian/Rules (clean): Remove Lib/ocaml/swigp4.ml.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 * some way.
11
11
 * ----------------------------------------------------------------------------- */
12
12
 
13
 
%include <fragments.i>
14
 
 
15
13
/* %cstring_input_binary(TYPEMAP, SIZE)
16
14
 * 
17
15
 * Macro makes a function accept binary string data along with
39
37
%typemap(ignore) TYPEMAP(char temp[MAX+1]) {
40
38
    $1 = ($1_ltype) temp;
41
39
}
42
 
%typemap(argout,fragment="t_output_helper") TYPEMAP {
 
40
%typemap(argout) TYPEMAP {
43
41
    $1[MAX] = 0;
44
42
    $result = caml_list_append($result,caml_val_string(str));
45
43
}