Commit graph

1,977 commits

Author SHA1 Message Date
Artem Serebriyskiy
fadc9c8f31 Fixed registerMethod to work like registerVariable 2014-02-25 14:11:53 +04:00
Artem Serebriyskiy
4a94345c9a Switched to Swig_name_* functions 2014-02-25 12:51:28 +04:00
Artem Serebriyskiy
dac0e989e3 Options in alphabetical order 2014-02-22 19:01:48 +04:00
Artem Serebriyskiy
166b19e860 Members renaming 2014-02-22 18:26:46 +04:00
Artem Serebriyskiy
f12d8aa174 target_name -> lua_name 2014-02-22 18:06:47 +04:00
Artem Serebriyskiy
77a7069f9e Fixing cmd options, again 2014-02-22 17:56:21 +04:00
Artem Serebriyskiy
ec629beb31 Fixing segfault 2014-02-22 15:46:22 +04:00
Artem Serebriyskiy
b30aa53709 Removed class_parent_nspace 2014-02-19 16:02:49 +04:00
Artem Serebriyskiy
2767f2a55e Fixes to module options 2014-02-19 14:05:29 +04:00
Artem Serebriyskiy
4eef510e33 Rename methods to make it clear what 'symbols table' they operate on. 2014-02-19 13:34:50 +04:00
Artem Serebriyskiy
e6d0f1327b Eliminating namespaces_hash and using symbols table instead 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
14452cad03 Attempt to catch unreproducable bug from Travis CI build 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
0c6263a0c2 Small bugfixes 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
705beb6753 Bugfixes for eLua. eLua emulation mode 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
0ee724ca80 Add compatibility option for old-style inheritance 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
6d49a57b53 Add support for C-style enums in C mode. And tests.
In backward compatible mode C style enums binding are correctly
generated
2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
4b0ed73317 Style fixes. Comments fixes. Fixing cmd options. etc 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
a87710275d Some fixes for elua 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
89c6fbb780 Attempt to fix unreproducable bug (from Travis CI build) 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
7e09b6687e Remove some typos 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
1e282e3981 Code beautifier 2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
a3515ca450 Removing obsolete debug code 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
f1fb2cc295 Bugfixes 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
dcbcac42b7 A few bugfixes 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
c775e66048 Fixes for elua 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
9d6cd75c73 Bugfixes 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
da0510376c Bugfixes. CMD args handling. Code cleanup 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
7e052c1873 Bugfixes 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
aa1b8298ca Preparations before pull request - part 1 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
63a26c6dbe More changes. Mostly to the would-be class library 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
577f20c990 Fixing issuse with v2-compatible static function names 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
ad375d9526 Add pointer guard 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
602cf3a797 Bugfixes 2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
295788c8a0 nspace.i example is working 2014-02-19 13:34:47 +04:00
Artem Serebriyskiy
1c5a0f8b9c Initial implementation - everything compiles but might not work 2014-02-19 13:34:47 +04:00
Vladimir Kalinin
2f3d93e93a Nested classes support is diversified, depending on the language capability. If the language cannot support nested classes, they will be unconditionally moved to the global namespace. If language module does not override Language::nestedClassesSupport() function, nested classes will be ignored, unless "feature:flatnested" is used. 2014-02-02 22:38:13 +04:00
Ian Lance Taylor
fa9a6d58ed [Go] Fix handling of C type "long" on 32-bit systems. It was broken
for C++ long& and for big-endian systems in general.
2014-01-27 17:49:35 -08:00
Ian Lance Taylor
f2dc3a9c1f [Go] Add %go_import directive. 2014-01-21 11:27:09 -08:00
William S Fulton
5c6bc5db3e Remove -nonaturalvar and nonaturalvar option in %module
These didn't work, were not documented and don't seem necessary
2014-01-11 19:34:44 +00:00
William S Fulton
c34d7f6d23 %naturalvar feature fixes and documentation
Fix and document the naturalvar feature override behaviour - the naturalvar
feature attached to a variable name has precedence over the naturalvar
feature attached to the variable's type. The overriding was not working
when turning the feature off on the variable's name.

Fix so that any use of the naturalvar feature will override the global
setting. Previously when set globally by -naturalvar or %module(naturalvar=1),
use of the naturalvar feature was not always honoured.
2014-01-11 19:32:43 +00:00
Ian Lance Taylor
90eb5f9095 [Go] Fix bug that broke using directors from a thread not created by Go. 2014-01-06 09:28:52 -08:00
Vladimir Kalinin
3412cc2f64 Merge pull request #123 from wkalinin/test2
fixed enums & enum values language symbol table namespace
fixed skipping of %templates in %extend if they are in the wrong scope
2013-12-26 00:33:28 -08:00
William S Fulton
44dd28950c Python import code beautify 2013-12-24 17:22:42 +00:00
Paweł Tomulik
5562deec62 Fixed SF bug #1297 (Python imports)
This changeset resolves several issues related to python imports.
For example, it's possible now to import modules having same module
names, but belonging to different packages.

From the user's viewpoint, this patch gives a little bit more control on
import directives generated by swig. The user may choose to use relative
or absolute imports (docs are provided in separate PR).

Some details:
  - we (still) generate import directives in form 'import a.b.c' which
    corresponds to absolute imports in python3 and (the only available)
    ambiguous one in python2.
  - added -relativeimport option to use explicit relative import syntax
    (python3),

Tests are under Examples/python, these are in fact regression tests but
with the current swig testing framework it seems to be impossible to put
appropriate tests under test-suite.

Closes #7
2013-12-24 17:22:25 +00:00
William S Fulton
279ebdc0cf Beautify director output 2013-12-23 18:21:52 +00:00
William S Fulton
d1bb451eab Merge branch 'perl5-directors-minimal' of https://github.com/talby-/swig into talby--perl5-directors-minimal
* 'perl5-directors-minimal' of https://github.com/talby-/swig:
  try adding travis ci to this branch
  ran "beautify-file" make target over perl5.cxx patch hunks and rewrote callback and extend examples in the style of existing examples
  prefer polymorphism on existing destructor over custom destructor method
  fix string mangled by tidy
  eliminate dead director code and convert remaining blocks
  mitigate ConvertPtr director cost when directors are not enabled
  steals python director docs and adapts to perl5
  adds "callback" and "extend" examples
  don't forget the most important part
  steals python directors and adapts to perl5
2013-12-23 07:30:37 +00:00
Vladimir Kalinin
715e254e05 fixed enums & enum values language symbol table namespace
fixed skipping of %templates in %extend if they are in the wrong scope
2013-12-20 07:37:49 +04:00
William S Fulton
257a9865e9 Make save_value non-copyable 2013-12-19 18:12:19 +00:00
Vladimir Kalinin
b4fef06c42 fixed %template within %extend, test added
fixed language symbol table nested classes name separator, test added
fixed %feature "flatnested" working with %extend
fixed Swig_offset_string for empty string
added simple template to save/restore values in current scope (readability reasons)
2013-12-19 02:11:22 +04:00
Ian Lance Taylor
ba049db40b Remove Go -longsize option. 2013-12-17 17:37:55 -08:00