PageRenderTime 36ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Lib/modula3/typemaps.i

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