aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-04-11Update to v4.2.1HEADmastermainAlistair Delva
Change-Id: I47cef2be94299220d80265d949a95b58eee2c23b
2023-03-23kleaf: Export Lib directory.llvm-r487747Yifan Hong
Bug: 259292099 Change-Id: I92777295bc0304d0515a5a145082ee06302d6f19
2020-08-13ANDROID: Add cc_binary_host supportllvm-r450784llvm-r416183llvm-r399163bAlistair Delva
Support building SWIG as a host binary. Needed for to generate python bindings to libfdt in the U-Boot project. The swigwarn.swg file is transformed from the C error codes header. We can't use a genrule for this file, because it must appear in the source tree for use by code generated by SWIG, and it only needs to be generated "once" per source import. The swigconfig.h is usually generated by autoconf, and contains various hard-coded paths that don't make sense for Android. Bug: 162801433 Change-Id: Ibd59eab31af9017dab623f33c000412077620116
2020-08-13ANDROID: Update parser.h include pathAlistair Delva
The Android integration of yacc will write the include file out to a non-controllable location based on the path of the source .y file. Update the direct inclusion of this header to match the schema of the Android build system. Bug: 162801433 Change-Id: Ibe288ab4496d2f0dfb98f95c49fcdcfe0776fd23
2020-08-05swig: Annotate SWIG_exit() with noreturnAlistair Delva
Android builds all host tools with -Werror=no-return, which generates a false positive in name_regexmatch_value() if HAVE_PCRE is not present. Fix this by annotating SWIG_exit() with noreturn so the compiler knows that the call will not return, thus the missing return code is in fact not a problem. Bug: 162801433 Change-Id: I0ee1ec89eff1f3e7aaf9056dda5543734bec2980
2020-08-05javascript: replace exceptions with SWIG_exitAlistair Delva
When building SWIG for Android, there is no support for C++ exceptions. In the cases there is "Illegal state", it seems more like an internal error, so we can replace the throw calls with a debug print and exit immediately. Bug: 162801433 Change-Id: I8096656f5a9f333ac2f4704438116ac8621b8193
2020-08-05Add myself to OWNERSAlistair Delva
We need a host build of SWIG to generate some python bindings to libfdt to build the U-Boot bootloader. May as well pitch in to maintain SWIG. Bug: 162801433 Change-Id: I2148cbb5bf0f880d886c86a84771d2ec0605833a
2019-11-14Upgrade swig to 'rel-4.0.1'llvm-r383902bHaibo Huang
Also run autogen.sh to generate configure files. Exempt-From-Owner-Approval: add myself to owners Change-Id: I391aa20428836ae74dab8c8427627ca4dbc8ecf4
2019-08-20Add swig-4.0.1 summary to release notesWilliam S Fulton
2019-08-20Add swig-4.0.1 release dateWilliam S Fulton
2019-08-20R html docs formatting fixes.William S Fulton
[skip-ci]
2019-08-20Add %native Javascript to changes fileWilliam S Fulton
2019-08-20Merge branch 'contrib/TekuConcept'William S Fulton
* contrib/TekuConcept: Dev Checkpoint 201908200213 Dev Checkpoint 201906261312 Dev Checkpoint 201906252227 Dev Checkpoint 201906252221 Dev Checkpoint 201906252210 Dev Checkpoint 201906252113 Add JS Native Directive Testcase JS Example Campatibility Update Add Native Directive Example Update JavaScript Documentation Add JS Native Wrapper API
2019-08-20Dev Checkpoint 201908200213Chris Walker
2019-08-20Add SWIG_JavaIllegalStateException to changes fileWilliam S Fulton
2019-08-20Merge branch 'illegal_state_except'William S Fulton
* illegal_state_except: [Java] Add support for throwing IllegalStateException
2019-08-19Add note to changes file about Lua tostring changeWilliam S Fulton
2019-08-19Merge branch 'sjml-patch-1-lua-print'William S Fulton
* sjml-patch-1-lua-print: removing unnecessary bits closer match to Python's output typo actually seeing both is useful matching code conventions Lua userdata print pointing to wrapped memory
2019-08-18[Java] Add support for throwing IllegalStateExceptionBrad Kotsopoulos
2019-08-09Fix Go version check and Go in-tree example testsIan Lance Taylor
Fixes #1607
2019-08-08Restore setting of GOVERSIONOPTIONIan Lance Taylor
Accidentally removed in last commit.
2019-08-08Fix all Go tests to build with "go build"Ian Lance Taylor
Tested against Go 1.6 through Go 1.13beta1, and gccgo. Fixes #1607
2019-08-08Merge branch 'python-stl-overloading'William S Fulton
* python-stl-overloading: Python STL container method overloading fix
2019-08-08Add changes entry for %constant enum fixWilliam S Fulton
2019-08-08Merge branch 'cshar-fix-enum-constants'William S Fulton
* cshar-fix-enum-constants: Fix invalid code generated for "%constant enum EnumType ..." and add a test.
2019-08-06Python STL container method overloading fixWilliam S Fulton
Fix method overloading of methods that take STL containers of different types. Due to some error handling that was not cleared during typehecking.
2019-08-02removing unnecessary bitsShane Liesegang
2019-08-02closer match to Python's outputShane Liesegang
2019-08-01Merge pull request #1604 from vadz/init-docWilliam S Fulton
Correct %init documentation for C#/Java
2019-08-01Parameter name expansion fix for template functions.William S Fulton
Fix regression in 4.0.0 where a template function containing a parameter with the same name as the function name led to the parameter name used in the target language being incorrectly modified. Closes #1602
2019-08-01Fix invalid code generated for "%constant enum EnumType ..." and add a test.Rokas Kupstys
2019-07-31The errors testcases use -module to obtain a unique module nameWilliam S Fulton
Fixes parallel make where each invocation of swig was writing and deleting the same file resulting in lots of the newly introduced warning messages: On exit, could not delete file xxx.py: No such file or directory
2019-07-31Replace all exit() with SWIG_exit()William S Fulton
For consistent cleanup on error
2019-07-31Remove all generated files on error.William S Fulton
Previously generated files were not removed, potentially breaking Makefiles using file dependencies, especially when -Werror (warnings as errors) was used.
2019-07-31Exit code change when using -WerrorWilliam S Fulton
Exit code is now sum of all errors, not just warnings as errors. I'm can't think why the exit code wasn't like this in the first place.
2019-07-31Remove deprecated DohClose in DOHWilliam S Fulton
2019-07-30Correct %init documentation for C#/JavaVadim Zeitlin
For these languages, %init doesn't inject the code into the initialization function (because there is none), but just puts it into the global scope instead. [skip ci]
2019-07-28typoShane Liesegang
2019-07-27actually seeing both is usefulShane Liesegang
2019-07-25Update docs on %typecheck precedence levelsWilliam S Fulton
2019-07-25Add note about wchar_t marshalling fix required for WindowsWilliam S Fulton
2019-07-24Make Python module source non-executable againVadim Zeitlin
0f88f9997c78a937eb9afa122389caf9666e33dc (probably accidentally) changed this file to be executable, undo this as it doesn't make sense for a source file to have this mode. See #1242.
2019-07-24Remove failing wchar c# testWilliam S Fulton
2019-07-23Add changes entry for C# std::wstring marshalling fixWilliam S Fulton
2019-07-23More C# wstring testingWilliam S Fulton
2019-07-23More C# wstring testingWilliam S Fulton
2019-07-23C# wstring testingWilliam S Fulton
Test code from issue #1530
2019-07-22fix undesirable `wstring` encoding at return value marshalling for C#smithx
2019-07-22fix undesirable `wstring` encoding at return value marshalling for C#smithx
2019-07-22Split testcases li_std_wstring.i and li_std_wstring_inherit.iWilliam S Fulton
Not many languages have support for std_wstring.i, so disable testing for these languages until added.