Oliver Buchtala
8b10c47ed8
Fix regression: add an include for Node.js header.
2013-08-31 03:34:37 +02:00
Oliver Buchtala
22525249f2
Resolve compile warnings in v8_shell.
2013-08-31 03:34:37 +02:00
Oliver Buchtala
8eb9aa9e73
Add gitignore file.
2013-08-31 03:34:37 +02:00
Oliver Buchtala
04c0803f73
Fixes in configuration to detect JavascriptCore on MacOSX correctly.
2013-08-31 03:34:37 +02:00
Oliver Buchtala
4ac7065c3b
Bugfix: in javascript interpreter load extensions on MacOSX correctly.
2013-08-31 03:34:37 +02:00
Oliver Buchtala
04cdde0563
Add test to check javascript unicode strings.
2013-08-31 03:34:37 +02:00
Oliver Buchtala
caa92740d3
Add an option to deactivate creation of an extra module object in javascript.
...
This is useful, if the extension host calls the initializer with custom
local variables.
E.g., this is the case with node.js.
2013-08-31 03:23:12 +02:00
Oliver Buchtala
213c107b7f
Add a swig macro to register node.js extensions.
2013-08-31 03:23:12 +02:00
Oliver Buchtala
4fea3a403e
Generate an extra file part after the initializer for v8 modules.
...
E.g., this is useful for creating node.js modules.
2013-08-31 03:23:12 +02:00
Oliver Buchtala
31844ac72a
Simplify the signature of the v8 module intializer.
2013-08-31 03:23:11 +02:00
Oliver Buchtala
9d630ab930
Fix std::string support for v8.
2013-08-31 03:23:11 +02:00
Oliver Buchtala
2c4a90a37d
Generate defines for initializer function.
2013-08-31 03:23:11 +02:00
Oliver Buchtala
be06ceea26
Fixes in std_string for JSC generator.
2013-08-31 03:23:11 +02:00
Oliver Buchtala
7fffd801e4
Fix std_string.i which generated compile errors in certain cases.
2013-08-31 03:23:11 +02:00
Oliver Buchtala
fb9c4955fb
Not a real change: removed some trailing spaces.
2013-08-31 03:23:11 +02:00
Oliver Buchtala
f9d6afbdfe
Add a missing return statement in JS shell.
2013-08-31 03:23:11 +02:00
Oliver Buchtala
9d22644563
Rename a argument variable to avoid errors with overloaded functions.
2013-08-31 03:23:11 +02:00
Oliver Buchtala
bad64925ed
Configuration is now easier for building and running examples and tests using v8.
2013-08-31 03:23:10 +02:00
Oliver Buchtala
caa6827daf
Javascript interpreter supports for JSC and V8 simultaneously.
...
Before, one had to build two different versions.
2013-08-31 03:23:10 +02:00
Oliver Buchtala
008adca72f
Provide more control about the target object/namespace where a v8 module is registered to.
2013-08-31 03:23:10 +02:00
Oliver Buchtala
6754bf2b49
Generate cleanup code for %newobject.
2013-08-31 03:23:10 +02:00
Oliver Buchtala
058a27bf32
Simplify creation of a Javascript shell.
2013-08-31 03:23:10 +02:00
Oliver Buchtala
57980975a0
Generate cleanup code.
2013-08-31 03:23:10 +02:00
William S Fulton
4492a3d76b
Document Include Lua error locus in SWIG error messages patches.
...
Closes #81
2013-08-30 07:11:43 +01:00
Miles Bader
c746ae7a0f
Include Lua error locus in SWIG error messages
...
This is standard information in Lua error messages, and makes it much
easier to find bugs.
2013-08-30 06:56:33 +01:00
Miles Bader
663c41e248
Add Lua runtime helper functions for error-handling
...
Add two helper functions to the Lua runtime, "SWIG_Lua_pusherrstring"
and "SWIG_Lua_pushferrstring".
These are like the standard Lua functions lua_pushstring and
lua_pushfstring respectively, except that the strings are prefixed
with the location of the innermost Lua call-point (as generated by
luaL_where).
2013-08-30 06:56:33 +01:00
William S Fulton
ada7dd92e4
Fix testcase name
2013-08-29 22:49:59 +01:00
William S Fulton
f55ff50dd5
Skip the UTF-8 BOM of including files.
...
For avoiding illegal token error when parsing include files which have the UTF-8 BOM.
Closes #75 .
2013-08-29 19:22:50 +01:00
Vadim Zeitlin
9efaf954c7
Add support for std::map<> comparator template argument for C#.
...
Allow exporting maps using non-default comparison function.
Closes #77
2013-08-29 19:08:15 +01:00
Olly Betts
6efe3d61f2
Strip trailing whitespace
2013-08-29 11:16:58 +12:00
William S Fulton
b58dabced9
%implicitconv is improved for overloaded functions.
...
Like in C++, the methods with the actual types are considered before trying implicit conversions.
2013-08-28 20:30:46 +01:00
William S Fulton
1cc735df5e
%implicitconv will now accept None where the implicit conversion takes a C/C++ pointer.
...
Problem highlighted by Bo Peng on the swig-user mailing list. SF patch #230 .
2013-08-28 20:28:15 +01:00
Olly Betts
628b4710e5
[Python] Fix clang++ warning in generated wrapper code.
2013-08-24 08:40:08 +12:00
Olly Betts
b477cb66be
Use offsetof() rather than icky homemade equivalent
2013-08-24 08:34:50 +12:00
Kris Thielemans
a495b5a985
Remove SwigPyObject_print and SwigPyObject_str, and make the generated wrapper use the default python implementations, which will fall back to repr (for -builtin option).
...
Advantages:
- it avoids the swig user having to jump through hoops to get print to
work as expected when redefining repr/str slots.
- typing the name of a variable on the python prompt now prints the
result of a (possibly redefined) repr, without the swig user having to
do any extra work.
- when redefining repr, the swig user doesn't necessarily have to
redefine str as it will call the redefined repr
- the behaviour is exactly the same as without the -builtin option while
requiring no extra work by the user (aside from adding the
%feature("python:slot...) statements of course)
- the patch simplifies pyrun.swg a tiny bit.
Disadvantage:
- default str() will give different (but clearer?) output on swigged
classes compared to unpatched swig
SF Bug #326
2013-08-07 20:22:03 +01:00
William S Fulton
a0af86811d
Travis builds - add in apt-get update
...
php tests were failing. Travis suggest running this before any install - http://about.travis-ci.org/docs/user/build-configuration/#Installing-Packages-Using-apt
2013-08-06 21:16:11 +01:00
William S Fulton
80f8d1d922
Fix for missing C++ code in std::multimap wrappers.
...
%template for a std::multimap generated uncompilable code unless a
%template for a std::map of the same template types was also coded up.
This patch is needed in conjunction with previous commit - 5f1fff1849
Closes #64
Closes #65
2013-08-06 07:02:49 +01:00
Andrew Simmons
5f1fff1849
Copied std::pair<> fragment from Lib/std/std_map.i into Lib/std/std_multimap.i. This fixes an error when a std::multimap template is wrapped by itself.
2013-07-25 18:23:45 +01:00
William S Fulton
83178a1fe4
Correction for detecting invalid Octave options
2013-07-16 23:05:59 +01:00
Karl Wette
b28de20869
Octave: fixups to previous configuration patch
...
- remove unneeded test -n "$OCTAVE"
- do not rely on Octave returning non-zero status for unrecognised option;
search first line of output for 'unrecognized' instead
2013-07-16 20:59:50 +01:00
Karl Wette
479df82616
Octave: more robust configuration
...
- do not rely on --eval argument to find mkoctfile, instead assume it
is in the same directory as octave itself (which it always should be)
- check Octave options to make sure they are supported, including
--no-window-system to prevent warnings if building without an X server
- disable Octave if any vital tests fail
2013-07-16 20:59:50 +01:00
joequant
e8c6384f77
add regression tests for SEXP return values
2013-07-14 20:29:37 +08:00
joequant
93b63969f9
change to allow file SEXP return values
2013-07-14 20:28:17 +08:00
William S Fulton
d0af4f50d3
Add %pythonbegin directive.
...
For adding code at the beginning of the generated .py file.
2013-07-05 06:30:16 +01:00
William S Fulton
eb98c0be99
Correct dates in recent commits to CHANGES file
2013-07-05 06:25:07 +01:00
William S Fulton
1c44078751
Improve testing of %pythonprepend and %pythonappend
2013-07-02 20:00:17 +01:00
William S Fulton
ace8fcd972
SWIG_AsWCharPtrAndSize improper operation if cptr NULL
...
SF bug #1327
This doesn't have any noticeable effect with the usage of
SWIG_AsWCharPtrAndSize as shipped by SWIG, but could be a problem if a
user is using this function with cptr equal to zero and psize is non-zero
- the length would be incorrectly set due to the call to PyUnicode_GetSize
failing.
2013-07-02 18:58:56 +01:00
Olly Betts
d3252bbf7f
Fix comment typo
2013-07-02 13:22:35 +12:00
Olly Betts
c8a879303c
Fix comment typo (interpeters)
2013-07-02 12:29:28 +12:00
William S Fulton
112d7aa6d0
Go examples and test-suite format fixes
...
Patch has the results of find . -name *.go -exec gofmt -w {} \;
SF Patch #339 .
2013-07-01 20:13:36 +01:00