[pcre-dev] [Bug 1907] New: Setting for calling convention

Αρχική Σελίδα
Delete this message
Συντάκτης: admin
Ημερομηνία:  
Προς: pcre-dev
Αντικείμενο: [pcre-dev] [Bug 1907] New: Setting for calling convention
https://bugs.exim.org/show_bug.cgi?id=1907

            Bug ID: 1907
           Summary: Setting for calling convention
           Product: PCRE
           Version: 10.22 (PCRE2)
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: wishlist
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: david.gausmann@???
                CC: pcre-dev@???


Hello Philip,

today I had massive problems with linking a previously compiled static lib file
of PCRE2 10.22.
After some hours I detected that the problem was, that the project, where I was
linking the PCRE2 lib file into, had the setting "default calling convention =
stdcall".

In the generated pcre2.h no calling convention is specified, so the default is
used.
The default of PCRE2 is (on Visual Studio) equal to "cdecl".

It would be very nice, if there would be a setting for CMake to specify the
calling convention of PCRE2.
I had seen that in bug 710 the preprocessor constant "PCRE_CALL_CONVENTION" had
been added, but there is nothing like this in PCRE2.

Is there a reason why it had been discarded?
A preprocessor constant, which is included in each function declaration, would
be good.
It would also be possible to keep the value of the preprocessor constant empty,
so the current behaviour ("use setting from makefile/project settings") could
also be used.


Kind Regards
David Gausmann

--
You are receiving this mail because:
You are on the CC list for the bug.