summaryrefslogtreecommitdiff
path: root/devtools/swigwin-1.3.34/Lib/modula3/typemaps.i
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /devtools/swigwin-1.3.34/Lib/modula3/typemaps.i
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'devtools/swigwin-1.3.34/Lib/modula3/typemaps.i')
-rw-r--r--devtools/swigwin-1.3.34/Lib/modula3/typemaps.i77
1 files changed, 77 insertions, 0 deletions
diff --git a/devtools/swigwin-1.3.34/Lib/modula3/typemaps.i b/devtools/swigwin-1.3.34/Lib/modula3/typemaps.i
new file mode 100644
index 0000000..79ddfda
--- /dev/null
+++ b/devtools/swigwin-1.3.34/Lib/modula3/typemaps.i
@@ -0,0 +1,77 @@
+/* -----------------------------------------------------------------------------
+ * See the LICENSE file for information on copyright, usage and redistribution
+ * of SWIG, and the README file for authors - http://www.swig.org/release.html.
+ *
+ * typemaps.i
+ *
+ * Pointer and reference handling typemap library
+ *
+ * These mappings provide support for input/output arguments and common
+ * uses for C/C++ pointers and C++ references.
+ * ----------------------------------------------------------------------------- */
+
+/* These typemaps will eventually probably maybe make their way into named typemaps
+ * OUTPUT * and OUTPUT & as they currently break functions that return a pointer or
+ * reference. */
+
+%typemap(ctype) bool *, bool & "bool *"
+%typemap(ctype) char & "char *"
+%typemap(ctype) signed char *, signed char & "signed char *"
+%typemap(ctype) unsigned char *, unsigned char & "unsigned short *"
+%typemap(ctype) short *, short & "short *"
+%typemap(ctype) unsigned short *, unsigned short & "unsigned short *"
+%typemap(ctype) int *, int & "int *"
+%typemap(ctype) unsigned int *, unsigned int & "unsigned int *"
+%typemap(ctype) long *, long & "long *"
+%typemap(ctype) unsigned long *, unsigned long & "unsigned long *"
+%typemap(ctype) long long *, long long & "long long *"
+%typemap(ctype) unsigned long long *, unsigned long long & "unsigned long long *"
+%typemap(ctype) float *, float & "float *"
+%typemap(ctype) double *, double & "double *"
+
+%typemap(imtype) bool *, bool & "ref bool"
+%typemap(imtype) char & "ref char"
+%typemap(imtype) signed char *, signed char & "ref sbyte"
+%typemap(imtype) unsigned char *, unsigned char & "ref byte"
+%typemap(imtype) short *, short & "ref short"
+%typemap(imtype) unsigned short *, unsigned short & "ref ushort"
+%typemap(imtype) int *, int & "ref int"
+%typemap(imtype) unsigned int *, unsigned int & "ref uint"
+%typemap(imtype) long *, long & "ref int"
+%typemap(imtype) unsigned long *, unsigned long & "ref uint"
+%typemap(imtype) long long *, long long & "ref long"
+%typemap(imtype) unsigned long long *, unsigned long long & "ref ulong"
+%typemap(imtype) float *, float & "ref float"
+%typemap(imtype) double *, double & "ref double"
+
+%typemap(cstype) bool *, bool & "ref bool"
+%typemap(cstype) char & "ref char"
+%typemap(cstype) signed char *, signed char & "ref sbyte"
+%typemap(cstype) unsigned char *, unsigned char & "ref byte"
+%typemap(cstype) short *, short & "ref short"
+%typemap(cstype) unsigned short *, unsigned short & "ref ushort"
+%typemap(cstype) int *, int & "ref int"
+%typemap(cstype) unsigned int *, unsigned int & "ref uint"
+%typemap(cstype) long *, long & "ref int"
+%typemap(cstype) unsigned long *, unsigned long & "ref uint"
+%typemap(cstype) long long *, long long & "ref long"
+%typemap(cstype) unsigned long long *, unsigned long long & "ref ulong"
+%typemap(cstype) float *, float & "ref float"
+%typemap(cstype) double *, double & "ref double"
+
+%typemap(csin) bool *, bool &,
+ char &,
+ signed char *, signed char &,
+ unsigned char *, unsigned char &,
+ short *, short &,
+ unsigned short *, unsigned short &,
+ int *, int &,
+ unsigned int *, unsigned int &,
+ long *, long &,
+ unsigned long *, unsigned long &,
+ long long *, long long &,
+ unsigned long long *, unsigned long long &,
+ float *, float &,
+ double *, double &
+ "ref $csinput"
+