aboutsummaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorArt Yerkes <ayerkes@speakeasy.net>2003-06-06 04:29:38 +0000
committerArt Yerkes <ayerkes@speakeasy.net>2003-06-06 04:29:38 +0000
commit0f445779b95d66eb3e3cda8df125f4ffbd70d053 (patch)
tree7c9823205585750017f4258d9eead11a82188ec3 /Lib
parentf31bcd2a0e57760d9091c4b260bce55f4eb3d400 (diff)
downloadswig-0f445779b95d66eb3e3cda8df125f4ffbd70d053.tar.gz
All test cases work.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ocaml/std_string.i8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/ocaml/std_string.i b/Lib/ocaml/std_string.i
index 627229c4e..3f6647f36 100644
--- a/Lib/ocaml/std_string.i
+++ b/Lib/ocaml/std_string.i
@@ -131,8 +131,7 @@ namespace std {
}
}
-%template (StringVector) std::vector<string >;
-
+#ifdef ENABLE_CHARPTR_ARRAY
char **c_charptr_array( const std::vector <string > &str_v );
%{
@@ -145,6 +144,10 @@ char **c_charptr_array( const std::vector <string > &str_v );
return out;
}
%}
+#endif
+
+#ifdef ENABLE_STRING_VECTOR
+%template (StringVector) std::vector<string >;
%insert(ml) %{
(* Some STL convenience items *)
@@ -160,3 +163,4 @@ char **c_charptr_array( const std::vector <string > &str_v );
%insert(mli) %{
val c_string_array: string array -> c_obj
%}
+#endif