Commit graph

19,782 commits

Author SHA1 Message Date
Michael Schaller
736613e26c [Go] Documentation cleanup of obsolete 'callback' and 'extend' examples.
After commit 17b1c1c (pull request 447; issue 418) the 'callback' and 'extend'
examples have been removed in favor of the 'director' example.
2015-08-05 10:01:15 +02:00
Ian Lance Taylor
17b1c1c2d3 Merge pull request #447 from michael-schaller/doc
Fleshed out Go's documentation about the director feature and added a director example.
2015-08-04 10:36:33 -07:00
Michael Schaller
d9d26149e7 Some minor changes after first code review by ianlancetaylor.
Renamed overwritenMethodsOnFooBarAbs to overwrittenMethodsOnFooBarAbs.
Changed some line breaks.
2015-08-04 09:50:56 +02:00
Michael Schaller
e47d87e404 Fixed Examples/go/director/Makefile as there might be no copy of director.go during clean if a separate build directory is in use. 2015-08-04 09:34:26 +02:00
Michael Schaller
0db9a6ba7b Fixed Examples/go/director/Makefile as the copy of director.go wasn't cleaned up in separate build directories. 2015-08-04 09:34:26 +02:00
Michael Schaller
afd6a55ce1 Fixed Examples/go/director/Makefile as director.go was missing in separate build directories. 2015-08-04 09:34:26 +02:00
Michael Schaller
94994a749e Removed empty line in table of contents of the Go documentation. 2015-08-04 09:34:26 +02:00
Michael Schaller
a17c9727bd Fleshed out Go's documentation about the director feature and added a director example.
Fixes issues #418.
2015-08-04 09:34:26 +02:00
William S Fulton
5d363276f5 Bump version to 3.0.8 2015-08-03 22:33:52 +01:00
William S Fulton
9babc26634 Update Scilab test-suite output wording 2015-08-03 08:12:38 +01:00
William S Fulton
9d509ba92b Add 3.0.7 release summary and release date 2015-08-02 22:51:59 +01:00
William S Fulton
c0de963191 Test case warning suppression for visual c++ fix 2015-08-02 22:22:24 +01:00
William S Fulton
892aaf577a Test case warning suppression for visual c++ 2015-08-02 21:50:32 +01:00
William S Fulton
c6f8aadc64 Cosmetic corrections - Mac OS X 2015-08-02 20:14:20 +01:00
William S Fulton
f970d9aae5 testcase warning fix 2015-08-02 19:58:10 +01:00
William S Fulton
9c23981992 HTML fix in docs 2015-08-02 19:47:02 +01:00
William S Fulton
442ed8812b Merge branch 'vadz-better-no-all'
* vadz-better-no-all:
  Don't check for all the languages in Travis language-specific builds.
  Skip check for pep8 if Python is disabled in configure.
  Make configure --without-alllang option actually useful.
  Cosmetic: fix wrong configure options indentation in --help.
2015-08-02 19:42:27 +01:00
William S Fulton
2d4416136b Tweak configure output for Java 2015-08-02 19:41:10 +01:00
William S Fulton
fa16701d5c Merge branch 'vadz-java-home'
* vadz-java-home:
  Don't duplicate Java headers path under OS X in configure.
  Use JAVA_HOME value in configure to detect Java.
  Remove executable permission from appveyor.yml.
2015-08-02 19:18:56 +01:00
Vadim Zeitlin
43b2075918 Don't check for all the languages in Travis language-specific builds.
This should speed up configure and shorten its output.
2015-08-02 19:58:37 +02:00
Vadim Zeitlin
a9c6edb3fb Skip check for pep8 if Python is disabled in configure.
There is no need for it, nor any other Python-related variables, to be defined
if Python is not used.
2015-08-02 19:57:59 +02:00
Vadim Zeitlin
1824cabcbc Make configure --without-alllang option actually useful.
Use it to disable all languages by default, but still allow enabling
individual languages by explicitly using --with-lang options for them.

E.g. to enable tests for Java only "--without-alllang --with-java" can now be
used to skip the configure checks for all the other languages.
2015-08-02 19:57:59 +02:00
Vadim Zeitlin
11974efe2e Cosmetic: fix wrong configure options indentation in --help.
Ensure that help for all options starts in the same column (unless the options
are too long, as --with-guile-config=path, but at least avoid indenting it by
a tab stop then).
2015-08-02 19:57:33 +02:00
Vadim Zeitlin
651ad3030c Don't duplicate Java headers path under OS X in configure.
Use /System/Library/Frameworks/JavaVM.framework/Headers in a single place only
to make it easier to change it later and, hopefully, make the rather
convoluted process of Java detection under OS X slightly more clear.
2015-08-02 15:40:41 +02:00
William S Fulton
a1771cb8a0 Fix potential security exploit in generated Java classes 2015-08-02 11:22:46 +01:00
William S Fulton
130834aac2 Merge branch 'vadz-msw-srcdir'
* vadz-msw-srcdir:
  SWIG_LIB fix for out of source MinGW builds
  Use "mixed" path to source directory under Cygwin.
2015-08-02 10:07:59 +01:00
William S Fulton
f5db2b43e6 SWIG_LIB fix for out of source MinGW builds 2015-08-02 10:05:09 +01:00
William S Fulton
026d879058 Move MinGW mixed path conversion code to the pathconvert tool
In preparation for adding MinGW support to patch #438.
2015-08-01 23:08:53 +01:00
Vadim Zeitlin
2e7331964a Use JAVA_HOME value in configure to detect Java.
This is simpler than having to use --with-java, --with-javac and
--with-javaincl options and, even more importantly, will usually just work by
default.
2015-08-01 18:50:27 +02:00
William S Fulton
cc6804724f Improve configure output when python is not installed 2015-08-01 17:43:36 +01:00
Vadim Zeitlin
2837550c4b Remove executable permission from appveyor.yml.
This is not an executable file.
2015-08-01 18:04:50 +02:00
William S Fulton
4ffbe8fc2c Merge branch 'kkaempf-fix-configure-ocamlc-setting'
* kkaempf-fix-configure-ocamlc-setting:
  Ocaml configure changes
  Set OCAMLC to empty if Ocaml compiler not found
2015-07-30 23:35:12 +01:00
William S Fulton
a3f0921c57 Ocaml configure changes
Remove use of peculiar ':' default for OCAML in AC_CHECK_PROGS.
Further refinement of issue #458.
2015-07-30 23:32:54 +01:00
William S Fulton
4b23f5d9d4 Consistent memory initialization in php typemaps.
Memory was only initialized in C and not C++ - potential bug?
2015-07-30 20:41:20 +01:00
William S Fulton
1ba48ceb99 Initialise all newly created arrays in arrays.i library.
Affects C++ code only.

Closes #440.
2015-07-30 20:41:15 +01:00
William S Fulton
cd04b372a4 Consistent memory intiailization between C and C++ in typemaps
Remove unnecessary initialization via calloc calls and replace with
malloc.
2015-07-30 20:20:38 +01:00
William S Fulton
00a9b8d3af Merge branch 'docstring-indentation'
* docstring-indentation:
  Improve python code indentation warning / error messages
  Function comment header formatting corrections
  Improve Python docstring indentation handling
2015-07-30 20:17:49 +01:00
Vladimir Kalinin
366e8a9f06 Restored broken ignoring of operators etc. Added more comments.
Added check for explicit $ignore, to allow correct using protected symbols

This is a single commit for patch #476
2015-07-30 08:40:52 +01:00
William S Fulton
e69cc0c0f5 Improve python code indentation warning / error messages 2015-07-30 08:26:17 +01:00
William S Fulton
a779f9bbc1 Function comment header formatting corrections 2015-07-30 08:26:17 +01:00
William S Fulton
fa282b3540 Improve Python docstring indentation handling
SWIG-3.0.5 and earlier sometimes truncated text provided in the docstring
feature.
SWIG-3.0.6 gave a 'Line indented less than expected' error instead of
truncating the docstring text.
Now the indentation for the 'docstring' feature is smarter and is
adjusted so that no truncation occurs.

Closes #475
2015-07-30 08:26:08 +01:00
Vadim Zeitlin
658f92a993 Use correct separator in Java class path under Windows.
A semicolon must be used there and not a colon as under Unix.
2015-07-28 00:05:55 +02:00
Vadim Zeitlin
b472a01ae8 Remove executable permission from appveyor.yml.
This is not an executable file.
2015-07-28 00:05:55 +02:00
Vadim Zeitlin
03d5ea426a Use JAVA_HOME value in configure to detect Java.
This is simpler than having to use --with-java, --with-javac and
--with-javaincl options and, even more importantly, will usually just work by
default.
2015-07-28 00:05:55 +02:00
Vadim Zeitlin
e80d9eead6 Display JAVA_HOME value in "make java_version".
This can be useful for diagnostic purposes when using automated build systems.
2015-07-27 04:35:31 +02:00
Vadim Zeitlin
86531935b5 Fix harmless MSVC warning in DoxygenTranslator code.
Explicitly compare pointer with NULL instead of implicitly converting it to
bool as this resulted in MSVS "warning C4800: forcing value to bool 'true' or
'false' (performance warning)".
2015-07-27 04:29:46 +02:00
Vadim Zeitlin
68492869fd Reset "_last" for all but first enum elements.
There is an implicit assumption (see TypePass::enumvalueDeclaration()) that
only the first enum element has a non-null "_last" attribute, but this was
broken by the latest enum-related grammar changes as the second enum element
also had "_last" set, coming from the new "enumlist_tail" production. This
resulted in wrong values being used for the second (only) element.

Fix this by explicitly resetting "_last" of enumlist_tail to NULL when
building the semantic value associated with it.
2015-07-27 04:25:48 +02:00
Vadim Zeitlin
dc23904408 Don't duplicate Javadoc from global enum Doxygen comments twice.
The commit d52de0f36f did fix the bug with
missing Javadoc comments for the nested enums, but it also resulted in the
Javadoc being generated twice for global enums, remove the code outputting the
same Javadoc for the second time to fix this.
2015-07-27 01:14:48 +02:00
Vadim Zeitlin
4884f8cb3c Move Doxygen comments concatenation from the parser to the lexer.
This allows to write the grammar in a simpler way without running into
shift/reduce conflicts all the time because a Doxygen post comment can often
be either reduced with the preceding token or shifted if there is another
Doxygen post comment after it.

Just take care of concatenating the comments in the lexer, which makes it
handling of comment tokens slightly more complex as it now needs to look ahead
at the next tokens, but it's worse the simplifications in the parser.

No changes in behaviour.
2015-07-27 01:14:48 +02:00
Vadim Zeitlin
864945ba2e Fix shift/reduce conflicts in Doxygen pre/post comment parsing.
Don't accept both pre- and post-comments for the same declaration (a function
parameter or a class member), this didn't work before neither as the
pre-comment overrode the post-one due to the default shift/reduce resolution
preferring to shift, but it happened silently whereas now it will result in a
parse error.

In the future we could complicate the grammar to detect this and give a
warning about one of the comments being ignored instead, but for now keep
things simple.
2015-07-27 01:14:47 +02:00