diff options
author | Matthias Köppe <mkoeppe@mail.math.uni-magdeburg.de> | 2004-08-23 15:28:58 +0000 |
---|---|---|
committer | Matthias Köppe <mkoeppe@mail.math.uni-magdeburg.de> | 2004-08-23 15:28:58 +0000 |
commit | 23d5f2ab9ac7c3f525cab023c15eef644c5b1040 (patch) | |
tree | d1f29def993ce945137b7d1e8973d9b46780c1cb /Lib/allegrocl/allegrocl.swg | |
parent | dffd437b7f918b2b12b1bb7bed05f7ee01314cc0 (diff) | |
download | swig-23d5f2ab9ac7c3f525cab023c15eef644c5b1040.tar.gz |
Replace hardcoded type specifiers by typemap-based type specifier lookup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/allegrocl/allegrocl.swg')
-rw-r--r-- | Lib/allegrocl/allegrocl.swg | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Lib/allegrocl/allegrocl.swg b/Lib/allegrocl/allegrocl.swg index 73be29776..f468edb4c 100644 --- a/Lib/allegrocl/allegrocl.swg +++ b/Lib/allegrocl/allegrocl.swg @@ -3,6 +3,29 @@ #define SWIG_ALLEGRO_CL +/* Typespecs for basic types. */ + +%typemap(ffitype) char ":char"; +%typemap(lisptype) char "character"; +%typemap(ffitype) unsigned char ":unsigned-char"; +%typemap(lisptype) unsigned char "integer"; +%typemap(ffitype) signed char ":char"; +%typemap(lisptype) signed char "integer"; +%typemap(ffitype) short ":short"; +%typemap(ffitype) signed short ":short"; +%typemap(ffitype) unsigned short ":unsigned-short"; +%typemap(ffitype) int ":int"; +%typemap(ffitype) signed int ":int"; +%typemap(ffitype) unsigned int ":unsigned-int"; +%typemap(ffitype) long ":long"; +%typemap(ffitype) signed long ":long"; +%typemap(ffitype) unsigned long ":unsigned-long"; +%typemap(ffitype) float ":float"; +%typemap(ffitype) double ":double"; +%typemap(ffitype) char * "(* :char)"; +%typemap(ffitype) void * "(* :void)"; +%typemap(ffitype) void ":void"; + %wrapper %{ ;; $Id$ |