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

« back to all changes in this revision

Viewing changes to Lib/python/pyvoid.swg

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-09-01 18:35:55 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050901183555-eq59uwhq8b62e44c
Tags: 1.3.24-1ubuntu4
* Use php5-dev instead of php4-dev, to kick php4 out of main.
* Drop support for generation of pike bindings, as nothing uses it,
  and swig is the only thing keeping pike7.6 in main (Ubuntu #13796)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
/* in */
6
6
 
7
 
%typemap(in) void * 
8
 
  "if ((SWIG_ConvertPtr($input,&$1,0,SWIG_POINTER_EXCEPTION | $disown)) == -1) SWIG_fail;";
 
7
%typemap(in) void * {
 
8
  if ((SWIG_ConvertPtr($input,SWIG_reinterpret_cast(&$1,void **),0,SWIG_POINTER_EXCEPTION|$disown))== -1) { 
 
9
    SWIG_arg_fail($argnum);SWIG_fail;
 
10
  }
 
11
}
 
12
 
 
13
%typemap(in) void * const& ($*ltype temp) {
 
14
  SWIG_ConvertPtr($input,(void **)&temp,0,SWIG_POINTER_EXCEPTION|$disown);
 
15
  if (SWIG_arg_fail($argnum)) SWIG_fail;
 
16
  $1 = &temp;
 
17
}
9
18
 
10
19
 
11
20
/* out */
16
25
 
17
26
%typemap(varin) void * {
18
27
  void * temp;
19
 
  if ((SWIG_ConvertPtr($input, &temp, 0,
 
28
  if ((SWIG_ConvertPtr($input, SWIG_static_cast(&temp,void **), 0,
20
29
                       SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) {
21
 
    PyErr_SetString(PyExc_TypeError, "C/C++ variable '$name ($1_ltype)'");
 
30
    SWIG_append_errmsg("C/C++ variable '$name'");
22
31
    return 1;
23
32
  }
24
33
  $1 = ($1_ltype) temp;
30
39
 
31
40
/* directorout */
32
41
 
33
 
%typemap(directorout) void * 
34
 
  "if ((SWIG_ConvertPtr($input,(void **)(&$result),
 
42
%typemap(directorout) void * {
 
43
  if ((SWIG_ConvertPtr($input,(void **)(&$result),
35
44
                       0, SWIG_POINTER_EXCEPTION | $disown )) == -1)
36
 
     throw Swig::DirectorTypeMismatchException(\"Pointer conversion failed.\");";
 
45
    throw Swig::DirectorTypeMismatchException("Pointer conversion failed.");
 
46
}
 
47
 
37
48
 
38
49
 
39
50
/* typecheck */