Commit graph

3,752 commits

Author SHA1 Message Date
Vadim Zeitlin
4f032332c9 Work around apparent clang bug.
Clang seems to be confused by "tm" being the name both of a local variable and
a struct tm from the standard <time.h> header, included indirectly in the
doxygen branch from java.cxx via "swig.h" and <stdlin.h>.

Just removing the unnecessary cast helps to clear the confusion.
2014-05-15 01:01:31 +02:00
Vadim Zeitlin
c5e5978287 Merge with the master again.
Bring in the recent JavaScript changes.
2014-05-07 23:25:33 +02:00
Vadim Zeitlin
5c0ed6c635 No changes, just spelling fixes in Doxygen branch changes.
Most are just typos, but also s/JavaDoc/Javadoc/ and s/PythonDoc/Pydoc/ as
this is how they are officially called.
2014-05-07 19:12:10 +02:00
Vadim Zeitlin
c6ef433b9b Don't leak doxygenTranslator in Python module.
Delete the pointer we allocate, just as in Java module.
2014-05-07 18:57:14 +02:00
Vadim Zeitlin
984d5fa299 Initialize doxygenTranslator pointer to NULL when it is unused.
No real changes, but avoid having pointer with junk contents, even if it's
unused.

This also avoid the need for checking whether it's used before deleting it.
2014-05-07 18:46:30 +02:00
Vadim Zeitlin
ed40190fe1 Remove unused and apparently unnecessary file.
This is probably another Eclipse (?) leftover.
2014-05-07 18:43:50 +02:00
Vadim Zeitlin
46a375a135 Avoid unnecessary compilation dependency on DoxygenTranslator.h.
Use forward declaration instead of including this header in the common header
used by all languages (and not just the two of them that actually use
DoxygenTranslator currently).
2014-05-07 18:43:01 +02:00
Vadim Zeitlin
a1c539ed26 Avoid crash in the parser for two consecutive Doxygen comments.
This change fixes the crash which happened when parsing the following code:

	/// Description of the section.
	//@{
	...
	//@}

As the second Doxygen item didn't have any associated text in this case.
2014-05-07 18:32:28 +02:00
Karl Wette
d5b765d388 Whitespace cleanup of all Makefiles*
- some of the %.clean rules in the test-suite Makefiles were using a single tab
  as an empty rule, dangerous! I've replaced these with the safer '@exit 0'.
2014-05-02 20:06:11 +02:00
William S Fulton
a6e5e97157 Javascript cosmetic changes 2014-05-01 19:41:17 +01:00
William S Fulton
f51be1ca5c Merge branch 'master' into javascript
* master:
  Fix some typos
  [PHP] The generated __isset() method now returns true for read-only properties.
  Eliminate needless casting away const from string constants
  Fix typos
  Fix missing ")" in code example
  Fix comment typos
  Fix m4 quoting of checks for yodl2man and yodl2html versions
  Fixed errors from previous commit.
  Removed all unnecessary asserts
  Remove unused variable
  Another go html fix
  Fix intgosize arg documentation
  Optimize metamethods inheritance resolving
  Updating documentation
  Whitespace cleanup of Example Makefiles
  .gitignore: ignore Lib/swigwarn.swg
  Fixing unused variable warnings
  Finish implementation with proxy functions
  Remove duplicate declarations of strtoimax and strtoumax in inttypes.i
  Ignored enum fixes.
  Further shift operator regression fixes
  Fix use of shift operators in expressions regression since 3.0.0
  Fix seg fault with extra ) brackets and >>
  More efficient end of template bracket (>>) handling
  beautify scanner.c
  Tidy up scanner.c
  DOH readme correction
  Fix typo in -lua -help output
  Remove extra </div>
  Update documentation for deprecation and removal of Close()
  Fix segfault when there are too many closing round brackets in parsed code
  Refix operator<< definition giving a syntax error
  Fix regression in 3.0.0 where legal code following an operator<< definition might give a syntax error.
  Remove unnecessary block from PHP version of SWIG_exception macro
  [PHP] Fix wrapping director constructors with default parameters with a ZTS-enabled build of PHP.
  Fix potential bugs found by Coverity analysis
  Eliminate unused parameter from SWIG_Php_GetModule()
  Fix comment typo
  Fix compiler warnings in generated Lua code
  [PHP] Pass the ZTS context we already have to avoid needing to call TSRMLS_FETCH, which is relatively expensive.
  [PHP] Pass ZTS context through to t_output_helper() so it works with a ZTS-enabled build of PHP.  Reported by Pierre Labastie in github PR#155.
  Lua test-suite can now be run out of source
  Fix out of source test-suite runs for Octave
  Add runtime test for commit 7a96fba836
  Add C++11 constexpr runtime test
2014-05-01 19:01:20 +01:00
William S Fulton
5792e97a44 Javascript: ensure banner appears before %begin code 2014-05-01 18:13:35 +01:00
Olly Betts
73bb909bae [PHP] The generated __isset() method now returns true for read-only properties. 2014-05-01 14:37:58 +12:00
Vadim Zeitlin
1ebd2334b8 Merge branch 'master' into doxygen
Merge with ~3.0.1 sources from master.
2014-04-30 18:37:57 +02:00
Olly Betts
36be36d618 Eliminate needless casting away const from string constants 2014-04-30 12:00:23 +12:00
Olly Betts
618868ce3d Fix typos 2014-04-29 11:31:29 +12:00
Olly Betts
1a256b7f32 Merge pull request #160 from v-for-vandal/issue_157
Fixing unused variable warnings
2014-04-28 08:10:54 +12: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
Artem Serebriyskiy
c1ca144ed2 Fixed errors from previous commit.
Also in previous commit also fixed warning with unsigned vs signed
comparison
2014-04-23 01:48:10 +04:00
William S Fulton
61a75f3b65 Remove unused variable 2014-04-22 19:43:16 +01: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
William S Fulton
a3ad811cee Makefile and autoconf file tidy up for Javascript 2014-04-16 07:38:52 +01:00
Artem Serebriyskiy
8512bad8c2 Fixing unused variable warnings
* Fixing unused variable warning. Generated code should compile
  with -Wall -Werror flags

* Fixing forgotten __Module -> SwigModule renaming
2014-04-16 03:37:27 +04:00
William S Fulton
244ad06c25 Alphabetical order for Javascript in -help output 2014-04-10 08:11:33 +01:00
William S Fulton
dc8428889e Ignored enum fixes.
C#/Java - Enums which have been ignored via %ignore and are subsequently
used are handled slightly differently. Type wrapper classes are now generated
which are effectively a wrapper of an empty enum. Previously in Java uncompilable
code was generated and in C# an int was used.
2014-04-08 23:25:27 +01:00
William S Fulton
7bec7c1b60 Further shift operator regression fixes 2014-04-08 19:19:44 +01:00
William S Fulton
0be33b1900 Fix use of shift operators in expressions regression since 3.0.0 2014-04-08 19:19:44 +01:00
William S Fulton
aa4b14a3d2 Fix seg fault with extra ) brackets and >> 2014-04-08 19:19:44 +01:00
William S Fulton
5feaa79176 More efficient end of template bracket (>>) handling 2014-04-08 19:19:44 +01:00
William S Fulton
9959860235 beautify scanner.c 2014-04-08 19:19:43 +01:00
William S Fulton
6cbf059fb8 Tidy up scanner.c
Make local functions static and rename them accordingly
2014-04-08 19:19:43 +01:00
William S Fulton
b86a171e43 DOH readme correction 2014-04-08 19:19:43 +01:00
Olly Betts
559128e14e Fix typo in -lua -help output 2014-04-07 23:00:49 +12:00
Olly Betts
4959957c18 Update documentation for deprecation and removal of Close() 2014-04-06 06:00:49 +12:00
William S Fulton
e442903fde Fix segfault when there are too many closing round brackets in parsed code 2014-04-05 00:18:30 +01:00
William S Fulton
e64d388957 Refix operator<< definition giving a syntax error 2014-04-05 00:17:06 +01:00
William S Fulton
1d857beb9d Fix regression in 3.0.0 where legal code following an operator<< definition might give a syntax error.
SF Bug #1365.
2014-04-04 08:31:59 +01:00
Olly Betts
f563069e7b [PHP] Fix wrapping director constructors with default parameters with a ZTS-enabled build of PHP. 2014-04-03 10:38:19 +13:00
William S Fulton
4928eaf662 Merge branch 'master' of github.com:/swig/swig
* 'master' of github.com:/swig/swig:
  Eliminate unused parameter from SWIG_Php_GetModule()
  Fix comment typo
  Fix compiler warnings in generated Lua code
  [PHP] Pass the ZTS context we already have to avoid needing to call TSRMLS_FETCH, which is relatively expensive.
  [PHP] Pass ZTS context through to t_output_helper() so it works with a ZTS-enabled build of PHP.  Reported by Pierre Labastie in github PR#155.
2014-04-02 22:10:47 +01:00
William S Fulton
dcbd6e39e3 Fix potential bugs found by Coverity analysis 2014-04-02 22:08:32 +01:00