From: SourceForge.net <no...@so...> - 2009-04-09 06:15:51
|
Bugs item #2419716, was opened at 2008-12-12 06:49 Message generated for change (Comment added) made by wsfulton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=2419716&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: parsing Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Yoonsik Oh (boom5) Assigned to: Nobody/Anonymous (nobody) Summary: wide string parsing error Initial Comment: Interface file include the header file. The following example: == test.i == %module test %{ #include "test.h" %} %include "test.h" == test.h == void foo(const char* str); // OK void foo(const char* str = "test"); // OK void foo(const wchar_t* str); // OK void foo(const wchar_t* str = L"test"); //error A fourth of the only makes an error when parsing. I think it should be possible to parse. thanks. ---------------------------------------------------------------------- >Comment By: William Fulton (wsfulton) Date: 2009-04-09 06:15 Message: #987106 is a duplicate of this bug ---------------------------------------------------------------------- Comment By: Olly Betts (olly) Date: 2008-12-13 07:16 Message: Yes, this is standard ISO C and C++. For C++, "hod139" quotes the relevant section (2.13.4) here: http://ubuntuforums.org/archive/index.php/t-962587.html I don't have my C standard here, and have failed to track down a quotation for this online, but I'm certain it's in there too. Setting category to "parsing" not "code generation (general)"... ---------------------------------------------------------------------- Comment By: William Fulton (wsfulton) Date: 2008-12-12 21:40 Message: Is this in one of the C or C++ standards, and if so which section? ---------------------------------------------------------------------- Comment By: David Piepgrass (qwertie) Date: 2008-12-12 16:04 Message: This is a limitation of SWIG's parser (it doesn't understand wide strings). A workaround is to add "#define L" near the top of your interface file (.i). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=2419716&group_id=1645 |