Typemap for size_t applied to std::size_t

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Luigi Ballabio 2003-08-17 11:52:31 +00:00
commit 62741dd03e
10 changed files with 37 additions and 0 deletions

View file

@ -5,6 +5,8 @@
//
// Guile implementation
%apply size_t { std::size_t };
#define SWIG_bool2scm(b) gh_bool2scm(b ? 1 : 0)
#define SWIG_string2scm(s) gh_str02scm(s.c_str())

View file

@ -1 +1,9 @@
//
// SWIG typemaps for STL - common utilities
// Luigi Ballabio
// Aug 17, 2003
//
// Java implementation
%apply size_t { std::size_t };

View file

@ -5,6 +5,8 @@
//
// MzScheme implementation
%apply size_t { std::size_t };
%{
#include <string>

View file

@ -6,6 +6,8 @@
//
// Ocaml implementation
%apply size_t { std::size_t };
%{
#include <string>
CAML_VALUE SwigString_FromString(const std::string& s) {

View file

@ -5,6 +5,8 @@
//
// Perl implementation
%apply size_t { std::size_t };
%{
#include <string>

View file

@ -1 +1,9 @@
//
// SWIG typemaps for STL - common utilities
// Luigi Ballabio
// Aug 17, 2003
//
// PHP implementation
%apply size_t { std::size_t };

View file

@ -5,6 +5,8 @@
//
// Python implementation
%apply size_t { std::size_t };
%{
#include <string>

View file

@ -5,6 +5,8 @@
//
// Ruby implementation
%apply size_t { std::size_t };
%{
#include <string>

View file

@ -6,6 +6,7 @@
// the %include directives below will fetch the files from the
// appropriate language directory
%include std_common.i
%include std_string.i
%include std_vector.i
%include std_map.i

View file

@ -1 +1,9 @@
//
// SWIG typemaps for STL - common utilities
// Luigi Ballabio
// Aug 17, 2003
//
// Tcl implementation
%apply size_t { std::size_t };