Commit Graph

7 Commits

Author SHA1 Message Date
William S Fulton edbbe014f9 [Python] Accept str in the varargs example typemaps
The varargs and libffi typemap examples in the manual now convert a Python str
with PyUnicode_AsUTF8 instead of requiring a bytes object, so bring the matching
example interface files into line.

The libffi runme no longer needs byte string literals for the printf format
string, the printf arguments or the execlp arguments.

Assisted-by: Claude Code (Opus 5)
2026-08-10 22:42:57 +01:00
Julien Schueller b89050101d Python: Avoid compatibility macros 2026-07-06 23:50:30 +01:00
Olly Betts 33734ffe38 Fixes for _WIN32 2024-03-28 10:16:10 +13:00
Olly Betts d6ecf084eb Revert "Remove libffi example, it isn't portable"
This reverts commit 564979a4b5.
2024-03-28 10:15:32 +13:00
William S Fulton 564979a4b5 Remove libffi example, it isn't portable 2024-02-23 08:40:08 +00:00
William S Fulton 129ef8ea8f Correct docs and examples to call SWIG_fail after setting a Python error
Although 'return NULL' works, it may miss out on some cleanup and NULL
is the wrong value to return in generated code for overloaded functions.
2016-10-23 20:16:35 +01:00
Dave Beazley 12a43edc2d The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00