Olly Betts
b5dbcb4ece
Rename free variable to jsfree
...
The collision with free() is a latent problem.
2022-03-03 12:23:41 +13:00
William S Fulton
d2e9b80be3
Merge branch 'using-declarations' into upstream-master
...
* using-declarations:
Typo fixes
Fix warning suppression for WARN_PARSE_USING_UNDEF
Using declarations fix in symbol tables
Revert recent using-declarations code changes
Conflicts:
CHANGES.current
2022-02-20 17:04:56 +00:00
William S Fulton
1b0a9ccfc5
Typo fixes
2022-02-20 16:45:11 +00:00
Olly Betts
fd6c0255a2
Remove superfluous semicolons
2022-02-15 14:00:12 +13:00
Olly Betts
7ec2f89fe2
Remove redundant NULL checks before free()/delete ( #2184 )
...
Remove redundant NULL checks before free()/delete
The ISO C and C++ standards guarantee that it's safe to call these
on a NULL pointer, so it's not necessary for the calling code to
also check.
Fixes https://sourceforge.net/p/swig/feature-requests/70/
2022-01-29 22:03:48 +13:00
Dimitris Apostolou
f586d920f7
Fix typos
2021-11-17 07:07:02 +02:00
Olly Betts
f198ff0a43
Fix more "allows to" and other typos
2021-04-21 15:54:46 +12:00
William S Fulton
e71f781140
Apply suggestions from code review
...
Print errors to stderr instead of stdout
2020-10-07 22:06:47 +01:00
Alistair Delva
4d844a8dc2
javascript: replace exceptions with SWIG_exit
...
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.
Closes #1858
2020-08-13 07:55:35 -07:00
Chris Walker
025269f121
Dev Checkpoint 201908200213
2019-08-20 02:13:50 -06:00
Chris Walker
2c2e638d89
Dev Checkpoint 201906252210
2019-06-25 22:10:46 -06:00
TekuConcept
ff19363abf
Add JS Native Wrapper API
2019-05-08 15:36:46 -06:00
luz.paz
6f69830321
follow-up typos
2018-05-17 10:26:00 -04:00
luz.paz
60dfa31a67
Misc. typos
...
found via `codespell` and `grep`
2018-05-17 10:04:23 -04:00
William S Fulton
2171f52635
Javascript %nspace fix in generated C++ code
...
When using %nspace on namespaces that are more than two levels deep.
Fixes cpp17_nspace_nested_namespaces testcase.
2018-05-15 22:22:10 +01:00
William S Fulton
57a89f987d
Fix %import and %fragment forced inclusion to not generate code.
2017-06-03 18:37:05 +01:00
William S Fulton
08688d7d9d
Add support for "ret" typemap where missing and improve documentation on it.
2016-09-29 08:07:26 +01:00
William S Fulton
c6f8aadc64
Cosmetic corrections - Mac OS X
2015-08-02 20:14:20 +01:00
William S Fulton
59ff3e6a3a
C90 fixes for Javascript JSC
2015-02-11 23:32:45 +00:00
Jason Turner
fa36b6228e
Fix function naming conflict with class overloads.
...
This fix takes into account the classname while generating overload
handlers.
Example:
If you have two classes:
class A {
public:
void doSomething(int);
void doSomething(double);
};
class B {
public:
void doSomething(int);
void doSomething(double);
};
Before this patch, the overload handlers for A::doSomething and
B::doSomething create conflicting names and function redefinition errors
are caused.
After the patch, the overload handlers are named classname_doSomething
and no longer conflict.
This is might not the best way to implement this, but it
solves a critical problem on large projects, and specifically can affect
operator overloads that are being wrapped.
2014-06-06 18:24:22 +02:00
William S Fulton
b531956467
Warning fixes compiling with Visual Studio
2014-05-27 21:55:17 +01:00
Oliver Buchtala
0c42158723
Javascript: preparations for using Language::getNSpace().
2014-05-19 00:20:19 +02:00
William S Fulton
a6e5e97157
Javascript cosmetic changes
2014-05-01 19:41:17 +01:00
William S Fulton
5792e97a44
Javascript: ensure banner appears before %begin code
2014-05-01 18:13:35 +01:00
Oliver Buchtala
7a7faab765
Fix bug and regression in javascript namespace generator.
2014-04-27 00:34:49 +02:00
Oliver Buchtala
d81fe244e3
Prettify generated output in JS emitters.
2014-04-27 00:34:19 +02:00
Oliver Buchtala
74825d2d1a
Fix regression of 226da4.
2014-04-26 22:47:57 +02:00
Oliver Buchtala
226da453fc
Print error when specified multiple js engines.
...
Plus, consolidated names: EmitterType, mode, engine -> engine.
2014-04-26 22:27:12 +02:00
William S Fulton
4edb618501
beautify javascript.cxx
2014-04-25 07:26:27 +01:00
William S Fulton
a80f4551db
Javascript variable naming convention corrections
...
Also rename global -> globals just to placate the beautifier
2014-04-25 07:21:32 +01:00
William S Fulton
a5e91f26a1
Cosmetic code changes in javascript.cxx
2014-04-24 21:54:44 +01:00
Oliver Buchtala
fe3f00837c
Fix regression in Javascript generator for enums.
2014-04-23 03:46:46 +02:00
Oliver Buchtala
953f2f91dc
Fix generator for Javascript enums.
2014-04-23 02:26:47 +02:00
Oliver Buchtala
3c593f56de
Turn on Swig_cparse_cplusplusout for Javascript/v8.
2014-04-23 02:26:24 +02:00
William S Fulton
4837c5c9eb
Add missing license info
2014-04-16 07:50:28 +01:00
William S Fulton
d8b3b4e474
Improve missing JS engine error message
2014-04-16 07:39:25 +01:00
Oliver Buchtala
89610e984e
Beautified Javascript module.
2014-03-05 01:39:26 +01:00
Oliver Buchtala
b5bc87667d
Fix regressions.
...
- Adapted to changes in UTL
- Fixed detection of setters and getters.
2014-03-05 01:10:55 +01:00
Oliver Buchtala
70385842df
Add missing copy ctor for Javascript Code Template class.
2014-02-28 10:40:41 +01:00
Oliver Buchtala
16a702c0aa
Added a comment.
2014-02-26 10:48:38 +01:00
Oliver Buchtala
15550dab45
Fix issue with strange constants under OSX.
...
Receiving strange constant nodes before the real tree
under OSX 10.8. Not so under Ubuntu 12.04.
2014-02-25 20:16:15 +01:00
Oliver Buchtala
8e65414a76
Add an extra argument for enabling nodejs support.
...
This is essentially using the v8 emitter plus setting a #define.
2014-02-20 11:37:15 +01:00
Oliver Buchtala
48e7df8eb2
Better error message when no Javascript emitter is specified.
2014-02-20 11:15:18 +01:00
Oliver Buchtala
915b709433
Not a real change.
...
Using a macro to reset JSEmitterStates for the sake of readability.
2014-02-14 00:02:05 +01:00
Oliver Buchtala
1e34ecdc31
Next iteration on creating a documentation for the Javascript module.
2014-02-13 19:25:16 +01:00
Oliver Buchtala
6a366cc050
Fix regression.
2013-09-27 03:24:50 +02:00
Oliver Buchtala
51b36d1a1f
Add non pretty printing function to Templates.
2013-09-24 03:55:51 +02:00
Oliver Buchtala
dc62a69775
Fix bug with typedefd function pointers.
2013-09-24 03:55:10 +02:00
Oliver Buchtala
b9ecf75f17
Fix emitter for member pointer constants.
...
However, I am not happy with the constant emitter in general.
Should not return dynamic values but register constant wrappers statically.
2013-09-24 01:50:13 +02:00
Oliver Buchtala
8bf966a65c
Fix %nspace support and activated relevant tests.
2013-09-24 01:47:13 +02:00