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:
parent
f133111e79
commit
62741dd03e
10 changed files with 37 additions and 0 deletions
|
|
@ -5,6 +5,8 @@
|
||||||
//
|
//
|
||||||
// Guile implementation
|
// Guile implementation
|
||||||
|
|
||||||
|
%apply size_t { std::size_t };
|
||||||
|
|
||||||
#define SWIG_bool2scm(b) gh_bool2scm(b ? 1 : 0)
|
#define SWIG_bool2scm(b) gh_bool2scm(b ? 1 : 0)
|
||||||
#define SWIG_string2scm(s) gh_str02scm(s.c_str())
|
#define SWIG_string2scm(s) gh_str02scm(s.c_str())
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1,9 @@
|
||||||
|
//
|
||||||
|
// SWIG typemaps for STL - common utilities
|
||||||
|
// Luigi Ballabio
|
||||||
|
// Aug 17, 2003
|
||||||
|
//
|
||||||
|
// Java implementation
|
||||||
|
|
||||||
|
%apply size_t { std::size_t };
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@
|
||||||
//
|
//
|
||||||
// MzScheme implementation
|
// MzScheme implementation
|
||||||
|
|
||||||
|
%apply size_t { std::size_t };
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@
|
||||||
//
|
//
|
||||||
// Ocaml implementation
|
// Ocaml implementation
|
||||||
|
|
||||||
|
%apply size_t { std::size_t };
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <string>
|
#include <string>
|
||||||
CAML_VALUE SwigString_FromString(const std::string& s) {
|
CAML_VALUE SwigString_FromString(const std::string& s) {
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@
|
||||||
//
|
//
|
||||||
// Perl implementation
|
// Perl implementation
|
||||||
|
|
||||||
|
%apply size_t { std::size_t };
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1,9 @@
|
||||||
|
//
|
||||||
|
// SWIG typemaps for STL - common utilities
|
||||||
|
// Luigi Ballabio
|
||||||
|
// Aug 17, 2003
|
||||||
|
//
|
||||||
|
// PHP implementation
|
||||||
|
|
||||||
|
%apply size_t { std::size_t };
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@
|
||||||
//
|
//
|
||||||
// Python implementation
|
// Python implementation
|
||||||
|
|
||||||
|
%apply size_t { std::size_t };
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@
|
||||||
//
|
//
|
||||||
// Ruby implementation
|
// Ruby implementation
|
||||||
|
|
||||||
|
%apply size_t { std::size_t };
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
// the %include directives below will fetch the files from the
|
// the %include directives below will fetch the files from the
|
||||||
// appropriate language directory
|
// appropriate language directory
|
||||||
|
|
||||||
|
%include std_common.i
|
||||||
%include std_string.i
|
%include std_string.i
|
||||||
%include std_vector.i
|
%include std_vector.i
|
||||||
%include std_map.i
|
%include std_map.i
|
||||||
|
|
|
||||||
|
|
@ -1 +1,9 @@
|
||||||
|
//
|
||||||
|
// SWIG typemaps for STL - common utilities
|
||||||
|
// Luigi Ballabio
|
||||||
|
// Aug 17, 2003
|
||||||
|
//
|
||||||
|
// Tcl implementation
|
||||||
|
|
||||||
|
%apply size_t { std::size_t };
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue