summaryrefslogtreecommitdiff
path: root/Lib/ocaml
Commit message (Collapse)AuthorAgeFilesLines
...
* [OCaml] Add the caml_ prefix to some OCaml functionsZackery Spytz2019-01-145-40/+40
| | | | | | | | | | | | | In OCaml 3.08.0, many functions in the OCaml C API were renamed to include a caml_ prefix. Their previous names were retained as macros in caml/compatibility.h and were (apparently) deprecated. Rename occurrences of alloc_string, alloc_tuple, callback, callback2, callback3, copy_double, copy_int64, copy_string, failwith, and modify in the OCaml module. The OCaml module requires OCaml >= 3.08.3, so this change is safe for all supported OCaml versions.
* [OCaml] Fix and re-enable the string_simple, minherit, and unions testsZackery Spytz2019-01-132-2/+2
| | | | | | | | | | copy_string() is a macro in the OCaml C API, so rename the function to copy_str(). Add a runtime test. The minherit runtime test was fixed by b64d685. Use the proper syntax for accessing member variables in unions_runme.ml
* Merge branch 'ZackerySpytz-OCaml_int64_t'William S Fulton2019-01-121-0/+15
|\ | | | | | | | | | | | | | | | | | | * ZackerySpytz-OCaml_int64_t: Add changes entry for fixing OCaml int64_t compile problem Fix OCaml version detection if caml/version.h is not available [OCaml] Use int64_t instead of int64 for OCaml versions >= 4.03.0 Conflicts: CHANGES.current
| * Fix OCaml version detection if caml/version.h is not availableWilliam S Fulton2019-01-121-0/+6
| | | | | | | | | | Needed for OCaml versions < 4.02.0 Issue #1403
| * [OCaml] Use int64_t instead of int64 for OCaml versions >= 4.03.0Zackery Spytz2019-01-081-0/+9
| | | | | | | | | | | | | | OCaml's int64 type was replaced with the C99 int64_t in OCaml 4.03.0. https://github.com/ocaml/ocaml/commit/b868c05ec91a7ee193010a421de768a3b1a80952 Closes #1194.
* | Fix OCAML typemap warnings wrapping C codeWilliam S Fulton2019-01-111-19/+12
| | | | | | | | | | | | | | Fixes: Lib/ocaml/typemaps.i:366: Warning 453: Can't apply (SWIGTYPE &). No typemaps are defined. Lib/ocaml/typemaps.i:367: Warning 453: Can't apply (SWIGTYPE &&). No typemaps are defined. Lib/ocaml/typemaps.i:372: Warning 453: Can't apply (SWIGTYPE &). No typemaps are defined.
* | [OCaml] Fix member var getters and settersZackery Spytz2019-01-062-1/+2
|/ | | | | | | | | | | Add `membervariableHandler()` to the `OCAML` class in ocaml.cxx (it is partly based on the code in python.cxx and octave.cxx). In Lib/ocaml/class.swg, wrapped classes/structs were not being added to `class_master_list`. This is fixed by adding a call to `register_class_byname`. Add a unit test in the form of struct_value_runme.ml.
* [OCaml] Replace SWIGSTATIC with SWIGINTERNZackery Spytz2019-01-013-81/+69
| | | | | | | | Use SWIGINTERN to silence unused function warnings. In addition, remove the declarations for SWIG_MustGetPtr(), wrap_delete_void(), enum_to_int(), and int_to_enum() -- these lacked definitions and caused compiler warnings.
* Update a dead link.Zackery Spytz2018-12-301-1/+1
|
* [OCaml] Add missing keywords to ocamlkw.swgZackery Spytz2018-12-301-0/+8
| | | | | The asr, land, lor, lsl, lsr, lxor, mod, and nonrec keywords were missing from ocamlkw.swg.
* Add support for non-default compare template argument in std::map wrappersWilliam S Fulton2018-10-091-5/+5
|
* Fix ocaml warningWilliam S Fulton2017-03-231-1/+1
| | | | Warning 20: this argument will not be used by the function.
* Fix wrapping of references/pointers and qualifiers to member pointersWilliam S Fulton2017-03-161-0/+2
| | | | Also fix Go wrapping of member const function pointers.
* Add some missing SWIGINTERN usageWilliam S Fulton2017-01-171-6/+9
|
* Fix incorrect commentsOlly Betts2015-05-091-1/+1
|
* Fix typo in forward declarationOlly Betts2015-03-181-1/+1
|
* Remove bogus commentOlly Betts2015-03-181-2/+0
|
* Make Lib/ocaml/swigp4.ml a non-generated file.Olly Betts2014-02-191-0/+0
| | | | | We used to have configure substitute values into it, but that's not been the case for just over 3 years, since patch #3151788 was applied.
* Director exceptions now derive from std::exceptionWilliam S Fulton2014-01-201-15/+16
|
* Error out attempting to use directors without -c++William S Fulton2013-12-231-3/+0
| | | | Remove redundant #ifdef __cplusplus markers in director.swg
* Beautify director.swg filesWilliam S Fulton2013-12-231-16/+17
| | | | Also some comment corrections for Perl
* Merge branch 'master' into gsoc2009-matevzWilliam S Fulton2013-01-286-234/+216
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parser.y still to be fixed up Conflicts: Doc/Devel/engineering.html Examples/Makefile.in Lib/allegrocl/allegrocl.swg Lib/csharp/csharp.swg Lib/csharp/enums.swg Lib/csharp/enumsimple.swg Lib/csharp/enumtypesafe.swg Lib/java/java.swg Lib/python/pydocs.swg Lib/r/rtype.swg Source/Include/swigwarn.h Source/Modules/octave.cxx Source/Modules/python.cxx Source/Modules/ruby.cxx Source/Swig/scanner.c Source/Swig/stype.c Source/Swig/swig.h configure.ac
| * Fix for gcc warning -Wunused-value without triggering -Wunused-parameterWilliam S Fulton2012-09-072-2/+2
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13735 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * std::string typemap modifications so they can be used with %apply for other ↵William S Fulton2012-05-261-5/+5
| | | | | | | | | | | | string classes git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13120 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix some language's std::map wrappers to recognise difference_type, ↵William S Fulton2012-05-151-0/+4
| | | | | | | | | | | | size_type, key_type and mapped_type. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13092 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * The 'directorin' typemap now accepts , etc expansions instead of having to ↵William S Fulton2011-12-211-1/+1
| | | | | | | | | | | | use workarounds - _name, _name etc. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12879 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * [Ocaml] Apply patch #3151788 from Joel Reymont. Brings Ocaml support a up to ↵William S Fulton2011-02-143-231/+209
| | | | | | | | | | | | date (ver 3.11 and 3.12), including std::string. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12460 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* | Add rvalue reference typemapsWilliam S Fulton2013-01-242-1/+37
|/
* Add SWIG_DIRECTOR_CAST recently added to languages needing itWilliam S Fulton2010-04-101-0/+2
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11989 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* remove std::map specializations - not needed since the typemap matching ↵William S Fulton2010-04-041-111/+10
| | | | | | rules were changed to follow type deducation used in template specialization git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11978 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Change typemap matching rules for the default type (SWIGTYPE) to follow ↵William S Fulton2010-04-012-1/+9
| | | | | | template partial specialization type deduction. Fixes some containers of const pointers. SWIGTYPE*& typemps removed and replaced with SWIGTYPE *const&. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Fix typo in rename messageWilliam S Fulton2010-03-311-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11955 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* SWIG license change - The Examples and Lib move to a very permissive license ↵William S Fulton2010-02-2714-42/+0
| | | | | | in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Fix make partialcheck-ocaml-test-suiteWilliam S Fulton2009-02-171-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Add R keyword support. Rename keywords for successful compilation of Java ↵William S Fulton2008-06-191-1/+1
| | | | | | and C# code. More consistent keyword warnings across the different languages. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Add the optimal attribute to the out typemap for more optimal code ↵William S Fulton2008-05-141-1/+1
| | | | | | generation when returning objects by value git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Add newmemory parameter for SWIG_TypeCastWilliam S Fulton2008-02-101-1/+3
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* fragment fixesWilliam S Fulton2007-11-201-3/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10159 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* When wrapping C++ code, generate code which usesOlly Betts2007-09-171-8/+8
| | | | | | | | | std::string::assign(PTR, LEN) rather than assigning std::string(PTR, LEN). Using assign generates more efficient code (tested with GCC 4.1.2). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9936 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Sorry i haven't been here in a while.Art Yerkes2006-11-034-53/+81
| | | | | | | | | | | | | | | | | camlp4 bug was caught by Michael Ethier <methier@cgr.harvard.edu> - director.swg: fix a typo - ocamldec.swg, ocaml.swg: new macros - ac_compare_version.m4: arty's own more liberally licensed version compare autoconf macro. - configure.in: use version_compare and make swigp4.ml generated by configure based on ocaml version. This is due to an incompatible change in camlp4. - ocaml.cxx: use new return macros in the right places (returning non-value) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9518 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* More %ignore director fixesWilliam S Fulton2006-09-271-1/+9
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* - explicitcall feature removed.William S Fulton2006-09-131-69/+1
| | | | | | | | | | | - Instead of using the swig_up flag in each director method (Python, Ruby, Ocaml) to indicate whether the explicit C++ call to the appropriate base class method or a normal polymorphic C++ call should be made, the new approach makes one of these calls directly from the wrapper method. - Java/C# recursive director method calls fixed (no need for explicitcall feature to solve this now) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9272 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Common template for head of each file detailing licence, distribution and ↵William S Fulton2006-03-0715-81/+111
| | | | | | authors information git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* fix wrong %include reported by Jab RehdersMarcelo Matus2006-02-282-8/+9
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8915 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* std::wstring global and member variables are wrapped as strings by defaultWilliam S Fulton2006-01-291-0/+1
| | | | | | | No need to use the %apply const std::wstring& { std::wstring* } trick anymore git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* std::string global and member variables are wrapped as strings by defaultWilliam S Fulton2006-01-291-0/+2
| | | | | | | | | No need to use the %apply const std::string& { std::string* } trick anymore Please test if possible, I can't run these languages. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8618 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* add initial stl.i to ensure proper file inclussion and extensions for each ↵Marcelo Matus2006-01-061-0/+7
| | | | | | language git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Use the system angle brackets for %includeWilliam S Fulton2005-11-268-14/+14
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* activating the keyword warningsMarcelo Matus2005-10-212-2/+6
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7701 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* warning/error fixes for Visual StudioWilliam S Fulton2005-09-281-0/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7543 626c5289-ae23-0410-ae9c-e8d60b6d4f22