From 04d18b7a1fc2541147132155af30544b41868604 Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Tue, 23 Dec 2003 20:31:06 +0000 Subject: [PATCH] Added suffix arg for c output. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5588 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/ocaml.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/Modules/ocaml.cxx b/Source/Modules/ocaml.cxx index c64714d4d..bc98befc4 100755 --- a/Source/Modules/ocaml.cxx +++ b/Source/Modules/ocaml.cxx @@ -30,6 +30,7 @@ static const char *usage = (char*) ("Ocaml Options (available with -ocaml)\n" "-prefix - Set a prefix to be prepended to all names\n" "-where - Emit library location\n" + "-suffix - Change .cxx to something else\n" "\n"); static int classmode = 0; @@ -114,6 +115,14 @@ public: } else { Swig_arg_error(); } + } else if (strcmp (argv[i], "-suffix") == 0) { + if (argv[i + 1]) { + SWIG_config_cppext( argv[i+1] ); + Swig_mark_arg (i); + Swig_mark_arg (i+1); + i++; + } else + Swig_arg_error(); } } }