diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2005-10-18 13:24:15 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2005-10-18 13:24:15 +0000 |
commit | 7e5e4fd1f9c8adfcd0eb1328e35143e110e115ff (patch) | |
tree | c9290832aaa1a42f5bcb6dd14ffaf82ed584ddca /Lib/swigrun.swg | |
parent | 5bbd841acc554b9e3d1ec33d604e825197ae6e0c (diff) | |
download | swig-7e5e4fd1f9c8adfcd0eb1328e35143e110e115ff.tar.gz |
massive typemap unification
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/swigrun.swg')
-rw-r--r-- | Lib/swigrun.swg | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/Lib/swigrun.swg b/Lib/swigrun.swg index f24b7697e..2092c2b64 100644 --- a/Lib/swigrun.swg +++ b/Lib/swigrun.swg @@ -36,6 +36,39 @@ # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif +/* Generic buffer size */ +#ifndef SWIG_BUFFER_SIZE +# define SWIG_BUFFER_SIZE 1024 +#endif + +/* Flags for pointer conversions */ +#define SWIG_POINTER_DISOWN 0x1 + +/* Flags for new pointer objects */ +#define SWIG_POINTER_OWN 0x1 + +/* Alloc. memory flags */ +#define SWIG_OLDOBJ 1 +#define SWIG_NEWOBJ 2 + +/* Error flags */ +#define SWIG_OK 0 +#define SWIG_ERROR -1 + +#define SWIG_MemoryError 1 +#define SWIG_IOError 2 +#define SWIG_RuntimeError 3 +#define SWIG_IndexError 4 +#define SWIG_TypeError 5 +#define SWIG_DivisionByZero 6 +#define SWIG_OverflowError 7 +#define SWIG_SyntaxError 8 +#define SWIG_ValueError 9 +#define SWIG_SystemError 10 +#define SWIG_AttributeError 11 +#define SWIG_UnknownError 99 + + #include <string.h> #ifdef __cplusplus @@ -74,7 +107,6 @@ typedef struct swig_module_info { void *clientdata; /* Language specific module data */ } swig_module_info; - /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class<int>" == "Class<int >", etc. @@ -208,6 +240,7 @@ SWIG_TypePrettyName(const swig_type_info *type) { type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ + if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; @@ -318,7 +351,6 @@ SWIG_TypeQueryModule(swig_module_info *start, return 0; } - /* Pack binary data into a string */ |