Activity for William Fulton

  • William Fulton William Fulton posted a comment on ticket #978

    The documentation, https://swig.org/Doc4.1/SWIGPlus.html#SWIGPlus_template_class_inheritance, does clearly state that you need to instantiate a template before it is used as a base class. Any change from this behaviour will be a major change.

  • William Fulton William Fulton modified ticket #884

    [csharp] getCPtr should use object.ReferenceEquals

  • William Fulton William Fulton posted a comment on ticket #884

    I'm not sure it will be easy to keep the code based maintained to always cover this corner case. The relevant typemaps can be easily changed by the user to use ReferenceEquals instead and so I'm closing as won't change. I can't there being a runtime overhead when there is no operator== overload.

  • William Fulton William Fulton created a blog post

    SWIG-4.2.1 released

  • William Fulton William Fulton modified ticket #807

    Identifier warning for friend methods in a namespace

  • William Fulton William Fulton posted a comment on ticket #807

    Fixed in a6ab9145115aa124ff9c98e2b3c39fde9f205760

  • William Fulton William Fulton modified ticket #960

    Namespace breaks %ignore with unbound C++ operator<<

  • William Fulton William Fulton posted a comment on ticket #960

    Fixed by a6ab9145115aa124ff9c98e2b3c39fde9f205760. All 6 of the %ignore directives shown now work.

  • William Fulton William Fulton modified a blog post

    SWIG-4.2.0 released

  • William Fulton William Fulton modified a blog post

    SWIG-4.2.0 released

  • William Fulton William Fulton created a blog post

    SWIG-4.2.0 released

  • William Fulton William Fulton modified ticket #793

    Swig, perl5 and union

  • William Fulton William Fulton posted a comment on ticket #793

    The union variable name is called intRep and is an anonymous union, that is, it does not have any type name. It is thus not possible to create a type outside of Object to assign to intRep. Consider a small change to give the union a type name, say IntRepType as follows: typedef struct Object { int objtype; union IntRepType { int ivalue; double dvalue; char *strvalue; void *ptrvalue; } intRep; } Object; void tester() { /* approach (1) */ obj.intRep.dvalue = 1.23; /* approach (2) */ union IntRepType...

  • William Fulton William Fulton modified ticket #919

    c++ private assignment operator not obeyed for arrays

  • William Fulton William Fulton posted a comment on ticket #919

    Fixed in https://github.com/swig/swig/commit/650aad82ede59abe1a9355c274e213d33ae9d543.

  • William Fulton William Fulton modified ticket #1006

    swig tries to call private constructor

  • William Fulton William Fulton posted a comment on ticket #1006

    Fixed in https://github.com/swig/swig/commit/f11bffcb1993eb5435b093f2641f857ccb674a77.

  • William Fulton William Fulton modified ticket #932

    'using' directive may prevent constructor wrapping

  • William Fulton William Fulton posted a comment on ticket #932

    Fixed in 93732bb19562534c81c537b8a83e38451556415c for swig-4.2.0.

  • William Fulton William Fulton modified ticket #1317

    template constructor of template class not recognized

  • William Fulton William Fulton posted a comment on ticket #1317

    Corrected testcase: %inline %{ template <typename T, typename U> struct MyClass { template<typename P> // MyClass<T,D>(P p) MyClass<T,U>(P p) { } }; %} %template(MyClassImpl) MyClass<int, int>; Note that MyClass<T,U> is not valid syntax from C++20 onwards, but SWIG continues to support it. The warning no longer appears in master, so this issue is fixed for swig-4.2.0.

  • William Fulton William Fulton modified a comment on ticket #932

    Your code above is invalid. However, if it is corrected: %inline %{ class Base { public: virtual void f(int n) = 0; void f(double another_representation_of_n) { } }; //And a derived class class Derived : public Base { public: Derived() {} using Base::f; virtual void f(int n) {} }; %} Then Derived does not have a constructor and this is incorrect. There is an easy workaround for now and that is to swap two lines around as such: virtual void f(int n) {} using Base::f;

  • William Fulton William Fulton modified ticket #678

    -copyctor bug?!

  • William Fulton William Fulton posted a comment on ticket #678

    This bug is a problem with non-const copy constructors in an inheritance chain. SWIG always assumed the implicit copy constructor was defined with a const reference parameter. For reference, https://en.cppreference.com/w/cpp/language/copy_constructor outlines nicely when the implicit constructor uses a const or non-const reference parameter. Fixed in 74e1deef6bd86135ee2a5f007b6347202813d143.

  • William Fulton William Fulton posted a comment on ticket #1062

    Duplicate of https://github.com/swig/swig/issues/1603 which is now fixed

  • William Fulton William Fulton modified ticket #1062

    Parse error on two parameter template template argument

  • William Fulton William Fulton modified ticket #1217

    partial specialization not recognized

  • William Fulton William Fulton posted a comment on ticket #1217

    Duplicate of https://github.com/swig/swig/issues/1300 which is now fixed.

  • William Fulton William Fulton created a blog post

    SWIG-4.1.1 released

  • William Fulton William Fulton modified a blog post

    SWIG-4.1.0 released

  • William Fulton William Fulton created ticket #24022

    Regression: fail to connect to project's RSS page from project's website

  • William Fulton William Fulton modified ticket #881

    Multiple modules leads to unhandled exception

  • William Fulton William Fulton posted a comment on ticket #881

    I couldn't reproduce using swig-1.3.33 or swig-4.1.0 with python-2.7.17, Ubuntu 18.04.6 64-bit. Also could not produce using swig-1.3.33 with python-2.5.6, Ubuntu 14.04.5 64-bit. Closing as can't reproduce. Please re-open if reproducible on a modern Linux distribution.

  • William Fulton William Fulton modified ticket #103

    [c#] Features csprepend, csappend & insert directive csharp

  • William Fulton William Fulton posted a comment on ticket #103

    The 'cscode' typemap and the 'pre' and 'post' typemap attributes should cover what this patch is trying to do.

  • William Fulton William Fulton created a blog post

    SWIG-4.1.0 released

  • William Fulton William Fulton modified ticket #249

    utf8 string typemaps for C#

  • William Fulton William Fulton posted a comment on ticket #249

    Solution in https://github.com/swig/swig/issues/1233 has been adopted instead, mainly to avoid the use of unsafe.

  • William Fulton William Fulton modified ticket #1386

    swig always interprets quotes in SWIG_LIB as literals

  • William Fulton William Fulton posted a comment on ticket #1386

    This is normal Windows behaviour to include the quotes in the environment variable, so don't include them of they are not part of the directory name!

  • William Fulton William Fulton modified ticket #295

    Java director connector not thread safe

  • William Fulton William Fulton posted a comment on ticket #295

    Should be fixed now, see https://github.com/swig/swig/issues/1862.

  • William Fulton William Fulton modified a blog post

    SWIG-4.0.2 released

  • William Fulton William Fulton created a blog post

    SWIG-4.0.2 released

  • William Fulton William Fulton committed [bf208a]

    Add support for SWIG - http://www.swig.org. SWIG is an extension to C++ hence the implementation is derived from CppLexer with additions to identify SWIG's special variables, such as _type, and the SWIG directives which begin with %.

  • William Fulton William Fulton committed [030ac7]

    SwigLexer refinements for SWIG directives, add support for stringification of types and special variables, also set priority for SWIG.

  • William Fulton William Fulton committed [2274a0]

    Change default for SWIG directives

  • William Fulton William Fulton committed [6278ed]

    Add a mime type for SWIG files. Choose 'text/swig' - a Google search indicates it isn't being used. Note that 'text/x-swig' is not used as the x- prefix is deprecated, see http://tools.ietf.org/html/rfc6648.

  • William Fulton William Fulton committed [c13980]

    Fix for SWIG's ##

  • William Fulton William Fulton committed [848f3a]

    Update aliases and mimetypes mapping for SWIG

  • William Fulton William Fulton committed [2e56e8]

    Regular expressions changed for SWIG - same regex just written differently

  • William Fulton William Fulton committed [ba728e]

    Detect SWIG directives in 'analyse_text'. Some commonly known directives are detected with high priority. Unlisted, but possible SWIG directives are given a lower priority, but there is a conflict with Matlab comments. Perhaps the Matlab lexer should be improved?

  • William Fulton William Fulton committed [80f5b4]

    Merge from https://bitbucket.org/birkenfeld/pygments-main

  • William Fulton William Fulton committed [4d38a1]

    Fix merge from https://bitbucket.org/birkenfeld/pygments-main

  • William Fulton William Fulton committed [76c482]

    Update AUTHORS for SWIG Lexer

  • William Fulton William Fulton committed [16caf3]

    Less greedy detection of SWIG directives in 'analyse_text'

  • William Fulton William Fulton created a blog post

    SWIG-4.0.1 released

  • William Fulton William Fulton posted a comment on ticket #254

    Works great. Post your queries on the swig-user mailing list. I suggest you modify one of the examples and post that for help on the mailing list.

  • William Fulton William Fulton created a blog post

    SWIG-4.0.0 released

  • William Fulton William Fulton modified ticket #285

    [java] support for iterator in std::map?

  • William Fulton William Fulton posted a comment on ticket #285

    This is available in swig-4.0.0

  • William Fulton William Fulton modified ticket #254

    Add wrapping for std::set in C# (.Net 4)

  • William Fulton William Fulton posted a comment on ticket #254

    swig-4.0.0 contains support for std::set wrappers for C#.

  • William Fulton William Fulton modified ticket #66

    java std_map.i does not support iteration

  • William Fulton William Fulton posted a comment on ticket #66

    This is available in swig-4.0.0.

  • William Fulton William Fulton modified ticket #1039

    cffi clos wrapper code out of date

  • William Fulton William Fulton posted a comment on ticket #1039

    Closing all open CFFI issues as CFFI has been disabled, please see https://github.com/swig/swig/issues/1447

  • William Fulton William Fulton modified ticket #1148

    CFFI improperly handles complex #defines

  • William Fulton William Fulton posted a comment on ticket #1148

    Closing all open CFFI issues as CFFI has been disabled, please see https://github.com/swig/swig/issues/1447

  • William Fulton William Fulton modified ticket #1336

    Anonymous unions in structs go out of order with cffi (and fails with uffi and clisp)

  • William Fulton William Fulton posted a comment on ticket #1336

    Closing all open CFFI issues as CFFI has been disabled, please see https://github.com/swig/swig/issues/1447

  • William Fulton William Fulton modified ticket #1352

    Static arrays inside C-Structs, CFFI

  • William Fulton William Fulton posted a comment on ticket #1352

    Closing all open CFFI issues as CFFI has been disabled, please see https://github.com/swig/swig/issues/1447

  • William Fulton William Fulton modified ticket #216

    [cffi] Fix CFFI conversion of constant expressions

  • William Fulton William Fulton posted a comment on ticket #216

    Closing all open CFFI issues as CFFI has been disabled, please see https://github.com/swig/swig/issues/1447

  • William Fulton William Fulton modified ticket #216

    [cffi] Fix CFFI conversion of constant expressions

  • William Fulton William Fulton posted a comment on ticket #216

    Closing all open CFFI issues as CFFI has been disabled, please see https://github.com/swig/swig/issues/1447

  • William Fulton William Fulton modified ticket #232

    CFFI: Fix %rename; fix -noswig-lisp

  • William Fulton William Fulton posted a comment on ticket #232

    Closing all open CFFI issues as CFFI has been disabled, please see https://github.com/swig/swig/issues/1447

  • William Fulton William Fulton posted a comment on discussion General Discussion

    Put the code posted at the bottom into file a file called runme.c and run cppcheck: $ cppcheck runme.c Checking runme.c... [runme.c:30]: (error) Memory leak: s.str Checking runme.c: WORKAROUND... $ The memory leak is a false positive unless WORKAROUND is defined. The workaround requires an extra temporary variable, which is odd! // file runme.c #include <string.h> #include <stdlib.h> #include <stdio.h> typedef struct String { char *str; } String; typedef struct Object { String *data; } Object; Object...

  • William Fulton William Fulton modified ticket #234

    intrusive_ptr support for perl5/php

  • William Fulton William Fulton posted a comment on ticket #234

    No response, closing.

  • William Fulton William Fulton modified ticket #325

    Fix for the win32 issue with MAX_PATH

  • William Fulton William Fulton posted a comment on ticket #325

    Discussion of this patch has moved to https://github.com/swig/swig/pull/1252.

  • William Fulton William Fulton posted a comment on ticket #1383

    Works for me. Please try with latest version and report back if still a problem.

  • William Fulton William Fulton modified ticket #1383

    Permission denied with SWIG 3.09 under Windows 7 64-bit

  • William Fulton William Fulton posted a comment on ticket #1350

    If this was committed, can this issue be closed?

  • William Fulton William Fulton posted a comment on ticket #823

    +1 for removing gcj detection and tests. I've never heard of anyone using it.

  • William Fulton William Fulton modified ticket #259

    basic support for std::list in Java

  • William Fulton William Fulton posted a comment on ticket #259

    Superceded by https://github.com/swig/swig/pull/674.

  • William Fulton William Fulton modified ticket #134

    [c#] std_list.i for c#

  • William Fulton William Fulton posted a comment on ticket #134

    Superceded by https://github.com/swig/swig/pull/674. If there is any functionality missing compared to your version, please let us know.

  • William Fulton William Fulton modified ticket #1208

    C++ == operator wrapper and __eq__ method

  • William Fulton William Fulton posted a comment on ticket #1208

    Fixed in commit https://github.com/swig/swig/commit/687cf9c9c1b886ef4a828b2c29610183e9fef26d (for swig-4.0.0). This corrects a bug ensuring NotImplemented is returned when wrapping the operator overloads.

  • William Fulton William Fulton posted a comment on ticket #303

    Fixed in commit https://github.com/swig/swig/commit/687cf9c9c1b886ef4a828b2c29610183e9fef26d. This corrects a bug ensuring NotImplemented is returned when wrapping operator overloads.

  • William Fulton William Fulton modified ticket #303

    Patch for bug 3441262

  • William Fulton William Fulton modified ticket #196

    [java] vector accessors should use size_type instead of int

  • William Fulton William Fulton posted a comment on ticket #196

    Superceded by https://github.com/swig/swig/pull/842

  • William Fulton William Fulton modified ticket #278

    Provide interface java.util.List<> for Java Vector wrappers

  • William Fulton William Fulton posted a comment on ticket #278

    Add via https://github.com/swig/swig/pull/842

1 >