PageRenderTime 60ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-29/SWIG/Lib/modula3/typemaps.i

#
Swig | 77 lines | 57 code | 6 blank | 14 comment | 0 complexity | 102340b886d7faa591f21cd255a9d2a3 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. /* -----------------------------------------------------------------------------
  2. * See the LICENSE file for information on copyright, usage and redistribution
  3. * of SWIG, and the README file for authors - http://www.swig.org/release.html.
  4. *
  5. * typemaps.i
  6. *
  7. * Pointer and reference handling typemap library
  8. *
  9. * These mappings provide support for input/output arguments and common
  10. * uses for C/C++ pointers and C++ references.
  11. * ----------------------------------------------------------------------------- */
  12. /* These typemaps will eventually probably maybe make their way into named typemaps
  13. * OUTPUT * and OUTPUT & as they currently break functions that return a pointer or
  14. * reference. */
  15. %typemap(ctype) bool *, bool & "bool *"
  16. %typemap(ctype) char & "char *"
  17. %typemap(ctype) signed char *, signed char & "signed char *"
  18. %typemap(ctype) unsigned char *, unsigned char & "unsigned short *"
  19. %typemap(ctype) short *, short & "short *"
  20. %typemap(ctype) unsigned short *, unsigned short & "unsigned short *"
  21. %typemap(ctype) int *, int & "int *"
  22. %typemap(ctype) unsigned int *, unsigned int & "unsigned int *"
  23. %typemap(ctype) long *, long & "long *"
  24. %typemap(ctype) unsigned long *, unsigned long & "unsigned long *"
  25. %typemap(ctype) long long *, long long & "long long *"
  26. %typemap(ctype) unsigned long long *, unsigned long long & "unsigned long long *"
  27. %typemap(ctype) float *, float & "float *"
  28. %typemap(ctype) double *, double & "double *"
  29. %typemap(imtype) bool *, bool & "ref bool"
  30. %typemap(imtype) char & "ref char"
  31. %typemap(imtype) signed char *, signed char & "ref sbyte"
  32. %typemap(imtype) unsigned char *, unsigned char & "ref byte"
  33. %typemap(imtype) short *, short & "ref short"
  34. %typemap(imtype) unsigned short *, unsigned short & "ref ushort"
  35. %typemap(imtype) int *, int & "ref int"
  36. %typemap(imtype) unsigned int *, unsigned int & "ref uint"
  37. %typemap(imtype) long *, long & "ref int"
  38. %typemap(imtype) unsigned long *, unsigned long & "ref uint"
  39. %typemap(imtype) long long *, long long & "ref long"
  40. %typemap(imtype) unsigned long long *, unsigned long long & "ref ulong"
  41. %typemap(imtype) float *, float & "ref float"
  42. %typemap(imtype) double *, double & "ref double"
  43. %typemap(cstype) bool *, bool & "ref bool"
  44. %typemap(cstype) char & "ref char"
  45. %typemap(cstype) signed char *, signed char & "ref sbyte"
  46. %typemap(cstype) unsigned char *, unsigned char & "ref byte"
  47. %typemap(cstype) short *, short & "ref short"
  48. %typemap(cstype) unsigned short *, unsigned short & "ref ushort"
  49. %typemap(cstype) int *, int & "ref int"
  50. %typemap(cstype) unsigned int *, unsigned int & "ref uint"
  51. %typemap(cstype) long *, long & "ref int"
  52. %typemap(cstype) unsigned long *, unsigned long & "ref uint"
  53. %typemap(cstype) long long *, long long & "ref long"
  54. %typemap(cstype) unsigned long long *, unsigned long long & "ref ulong"
  55. %typemap(cstype) float *, float & "ref float"
  56. %typemap(cstype) double *, double & "ref double"
  57. %typemap(csin) bool *, bool &,
  58. char &,
  59. signed char *, signed char &,
  60. unsigned char *, unsigned char &,
  61. short *, short &,
  62. unsigned short *, unsigned short &,
  63. int *, int &,
  64. unsigned int *, unsigned int &,
  65. long *, long &,
  66. unsigned long *, unsigned long &,
  67. long long *, long long &,
  68. unsigned long long *, unsigned long long &,
  69. float *, float &,
  70. double *, double &
  71. "ref $csinput"