Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3833 closed Patches (fixed)

boost python calling conventions support patch submission (__stdcall, __cdecl, __fastcall)

Reported by: nico_ml@… Owned by: Dave Abrahams
Milestone: Boost 1.42.0 Component: python USE GITHUB
Version: Boost Development Trunk Severity: Problem
Keywords: boost python patch calling convention Cc:

Description

I once more got my hands into my patch for adding support of various calling conventions to boost.python.

I tried to include the comments that were made a long time ago, and took an approach close to the one used in boost.bind : the defaut is to not support any additional calling conventions. Preprocessor defines allow to enable them : BOOST_PYTHON_ENABLE_CDECL, BOOST_PYTHON_ENABLE_STDCALL, BOOST_PYTHON_ENABLE_FASTCALL.

I added entries to documentation, and simple unit tests inspired by boost.bind once again.

The new tests should probably not be run on compilers where the calling conventions are irrelevant, but this exceeds both my bjam and compiler specifics knowledge.

The patch attached is made against the current trunk (rev.58712), on my MSCV8 SP1 every boost.python test passes.

What more work should be done to get it accepted into trunk / 1.42 release ?

Attachments (1)

boost_python_calling_conventions.patch (22.7 KB ) - added by nico_ml@… 13 years ago.
patch file (svn diff)

Download all attachments as: .zip

Change History (5)

by nico_ml@…, 13 years ago

patch file (svn diff)

comment:1 by Dave Abrahams, 13 years ago

Status: newassigned

This looks terrific! I'll try to get it applied ASAP. Please poke me if you don't see it in trunk by the end of the week.

comment:2 by nico_ml@…, 13 years ago

Hi Dave, I didn't see any change in boost.python trunk - so I poke you :)

comment:3 by Dave Abrahams, 13 years ago

Resolution: fixed
Status: assignedclosed

(In [59247]) Support different MS calling conventions, thanks to Nicolas Lelong. Closes #3833.

comment:4 by Dave Abrahams, 13 years ago

(In [59265]) Support different MS calling conventions, thanks to Nicolas Lelong. Closes #3833.

Note: See TracTickets for help on using tickets.