| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
Examples still don't work though!
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Complete the prototype removal in ca1431.
The script prevents SWIGTOOL=gdb from working as gdb can't be used to
debug a shell script, it requires a binary.
Add support for SWIGTOOL in all the examples.
SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles.
See issue #473.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Prototype for Java test-suite and Java class example.
SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles.
SWIG_LIB is explicitly set where necessary.
Allows use of 'make SWIGTOOL="gdb --args"' to work as gdb can't be used
to debug a shell script, for both examples and test-suite.
See issue #473.
|
| |
|
| |
|
|
|
|
| |
Fix is in progress, see Github patch #500
|
|
|
|
| |
via args option to R
|
|
|
|
|
| |
Add and use nuget-install.cmd based on
https://github.com/appveyor/ci/blob/master/scripts/nuget-restore.cmd
|
|
|
|
|
| |
This reverts commit cb8973f3139d4d31d731cd8020641a70c7c293b1, reversing
changes made to ac3284f78c3af61027ffe4765ba50161670d929e.
|
|\
| |
| | |
replacement for enumR2015 - tidied and rebased
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
includes the addition of a _runme for an existing test - preproc_constants
that was previously not run. That tests includes a preprocessor based
setting of an enumeration which is ignored by the existing r enumeration
infrastructure. The new version correctly reports the enumeration value
as 4 - previous versions set it to 0. Traditional enumerations are unchanged.
The approach used to deal with these enumerations is similar to that of
other languages, and requires a call to a C function at runtime to return
the enumeration value. The previous approach figured out the values statically
and this is still used where possible. The need for a runtime call leads to
changes in when swig code is used in packages - see below.
One test that previously passed now fails - namely the R sourcing of
preproc_constants.R, as the enumeration code requires the shared library,
which isn't loaded by that script.
There is also a modification to the way the R _runme.R files are used.
The call to R CMD BATCH now includes a --args option that indicates
the source folder for the unittest.R file, and the first couple
of lines of the _runme.R files deal with correctly locating this.
Out of source tests now run correctly.
This work was motivated by problems generating the SimpleITK binding,
specifically with some of the more complex enumerations.
This approach does have some issues wrt to code in packages, but I can't
see an alternative. The problem with packages is that the R code setting
up the enumeration structures requires the shared library so that the C
functions returning enumeration values can be called. The enumeration
setup code thus needs to be moved to the package initialisation section.
For SimpleITK I do this using an R script, which I think is an acceptable
solution. The core part of the process is the following function. I dump
all the enumeration stuff into a .onload function. This is only necessary
if some of the enumerations are tricky.
splitSwigFile <- function(filename, onloadfile, mainfile)
{
p1 <- parse(file=filename)
getdefineEnum <- function(X)
{
return (is.call(X) & (X[[1]]=="defineEnumeration"))
}
dd <- sapply(p1, getdefineEnum)
enums <- p1[dd]
enums <- unlist(lapply(enums, deparse))
enums <- c(".onLoad <- function(libname, pkgname) {", enums, "}")
everythingelse <- p1[!dd]
everythingelse <- unlist(lapply(everythingelse, deparse))
writeLines(everythingelse, mainfile)
writeLines(enums, onloadfile)
}
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
* talby--surgical-perlprimtypes-fix:
update CHANGES.current
check ranges in perlprimtype.swg more carefully to avoid clang warnings
capture the current behavior of perlprimtypes.swg is more detail
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
[Go] Undelete and updated the 'callback' and 'extend' examples.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
After the documentation update on how to utilize the director feature with
commit @17b1c1c the 'callback' and 'extend' examples needed an update as well.
|
|/ /
| |
| |
| |
| |
| |
| | |
The 'callback' and 'extend' examples were presumed to be obsoleted by the new
'director' example. The examples are helpful though to have similar examples
across target languages and hence the commit @5e88857 which removed these
examples got reverted.
|
| |
| |
| |
| | |
Changes entry for 92328a. Closes #383.
|
| | |
|
|\ \
| |/
|/| |
Make (char*, size_t) typemap usable for strings of other types in Java.
|
|/
|
|
|
|
|
| |
Notably it now works for "unsigned char*" strings.
Add a test to check that it now works in Java and also showing that it already
worked for the other languages with support for this typemap.
|
| |
|
|\
| |
| | |
[Go] 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.
|
|\
| |
| | |
Fleshed out Go's documentation about the director feature and added a director example.
|
| |
| |
| |
| |
| | |
Renamed overwritenMethodsOnFooBarAbs to overwrittenMethodsOnFooBarAbs.
Changed some line breaks.
|
| |
| |
| |
| | |
during clean if a separate build directory is in use.
|
| |
| |
| |
| | |
cleaned up in separate build directories.
|
| |
| |
| |
| | |
build directories.
|
| | |
|
|/
|
|
|
|
| |
director example.
Fixes issues #418.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| | |
This should speed up configure and shorten its output.
|
| |
| |
| |
| |
| | |
There is no need for it, nor any other Python-related variables, to be defined
if Python is not used.
|