Examples updated.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5206 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Art Yerkes 2003-10-25 06:24:43 +00:00
commit b770c69ebc
5 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,6 @@
(* example_prog.ml *)
open Swig
open Example
(* Call our gcd() function *)

View file

@ -1,5 +1,6 @@
(* This example was mostly lifted from the guile example directory *)
open Swig
open Example
let y = "\205\177"

View file

@ -8,10 +8,8 @@
%include stl.i
/* instantiate the required template specializations */
namespace std {
%template(IntVector) std::vector<int>;
%template(DoubleVector) std::vector<double>;
}
%template(IntVector) std::vector<int>;
%template(DoubleVector) std::vector<double>;
/* Let's just grab the original header file here */
%include "example.h"

View file

@ -1,5 +1,6 @@
(* This example was mostly lifted from the guile example directory *)
open Swig
open Example
(* repeatedly invoke a procedure with v and an index as arguments *)

View file

@ -1,5 +1,6 @@
(* This example was mostly lifted from the guile example directory *)
open Swig
open Example
let v = new_StringVector C_void