summaryrefslogtreecommitdiff
path: root/Lib/runtime.swg
diff options
context:
space:
mode:
authorJohn Lenz <jlenz2@math.uiuc.edu>2005-02-01 00:08:24 +0000
committerJohn Lenz <jlenz2@math.uiuc.edu>2005-02-01 00:08:24 +0000
commitc3338b1a1686503721583a9e53a2f78a7a88731f (patch)
treebd4b02a8e82f457a2324d80c4755eb1418a9a9e1 /Lib/runtime.swg
parent0f2ed8e65544fe8c284035008ce0e987df8ba81c (diff)
downloadswig-c3338b1a1686503721583a9e53a2f78a7a88731f.tar.gz
- Improve the runtime type sytesm
- Update all languages to new type system - Add DohSortList function - Fix mzscheme Examples/Makefile git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/runtime.swg')
-rw-r--r--Lib/runtime.swg38
1 files changed, 19 insertions, 19 deletions
diff --git a/Lib/runtime.swg b/Lib/runtime.swg
index 1d7cc63f0..750473d52 100644
--- a/Lib/runtime.swg
+++ b/Lib/runtime.swg
@@ -15,32 +15,32 @@
* -----------------------------------------------------------------------------*/
+#ifdef SWIG_MODULE_CLIENTDATA_TYPE
+
SWIGRUNTIMEINLINE swig_type_info *
-SWIG_Runtime_TypeQuery(const char *name) {
- swig_type_info *tl = SWIG_Runtime_GetTypeList();
- return SWIG_TypeQueryTL(tl, name);
+SWIG_TypeQuery(SWIG_MODULE_CLIENTDATA_TYPE clientdata, const char *name) {
+ swig_module_info *module = SWIG_Runtime_GetModule(clientdata);
+ return SWIG_TypeQueryModule(module, module, name);
}
SWIGRUNTIMEINLINE swig_type_info *
-SWIG_Runtime_TypeRegister(swig_type_info *ti) {
- swig_type_info *tl = SWIG_Runtime_GetTypeList();
- return SWIG_TypeRegisterTL(&tl, ti);
+SWIG_MangledTypeQuery(SWIG_MODULE_CLIENTDATA_TYPE clientdata, const char *name) {
+ swig_module_info *module = SWIG_Runtime_GetModule(clientdata);
+ return SWIG_MangledTypeQueryModule(module, module, name);
}
-SWIGRUNTIMEINLINE void
-SWIG_Runtime_TypeClientData(swig_type_info *ti, void *clientdata) {
- swig_type_info *tl = SWIG_Runtime_GetTypeList();
- SWIG_TypeClientDataTL(tl, ti, clientdata);
+#else
+
+SWIGRUNTIMEINLINE swig_type_info *
+SWIG_TypeQuery(const char *name) {
+ swig_module_info *module = SWIG_Runtime_GetModule();
+ return SWIG_TypeQueryModule(module, module, name);
}
-SWIGRUNTIMEINLINE void
-SWIG_Runtime_PropagateClientData(swig_type_info *type) {
- swig_type_info *tl = SWIG_Runtime_GetTypeList();
- SWIG_PropagateClientDataTL(tl, type);
+SWIGRUNTIMEINLINE swig_type_info *
+SWIG_MangledTypeQuery(const char *name) {
+ swig_module_info *module = SWIG_Runtime_GetModule();
+ return SWIG_MangledTypeQueryModule(module, module, name);
}
-#define SWIG_GetTypeList() SWIG_Runtime_GetTypeList()
-#define SWIG_TypeQuery(name) SWIG_Runtime_TypeQuery(name)
-#define SWIG_TypeRegister(ti) SWIG_Runtime_TypeRegister(ti)
-#define SWIG_TypeClientData(ti, cd) SWIG_Runtime_TypeClientData(ti, cd)
-#define SWIG_PropagateClientData(ti) SWIG_Runtime_PropagateClientData(ti)
+#endif