Skip to content

MAINT: Split out C code in ufunc_override.h to .c file. - #7

Merged
charris merged 1 commit into
charris:enable-numpy_ufuncfrom
mhvk:ufunc_override_in_c
Mar 16, 2017
Merged

charris merged 1 commit into
charris:enable-numpy_ufuncfrom
mhvk:ufunc_override_in_c

Conversation

@mhvk

@mhvk mhvk commented Mar 15, 2017

Copy link
Copy Markdown

@charris - as you rightfully complained, ufunc_override.h contained rather too much code for a header file. So, I split out that code into its own ufunc_override.c, and adjusted core/setup.py to ensure this gets picked up (which it turned out had not been updated quite correctly before; I followed what was done for mem_overlap, which also has a .c file in src/private).

In principle, I could do the same for binop_override, though it seemed to me the amount of c code there was maybe still OK in a header.

* Returns 0 on success and 1 on exception. On success, *result contains the
* result of the operation, if any. If *result is NULL, there is no override.
*/
int

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably want a NPY_NO_EXPORT modifier here.

* result of the operation, if any. If *result is NULL, there is no override.
*/
static int
int

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably want a NPY_NO_EXPORT modifier here.

@charris

charris commented Mar 16, 2017

Copy link
Copy Markdown
Owner

Needs NPY_NO_EXPORT modifier. I'll go ahead and merge this to get it out of the way and then add that myself.

Thanks Marten.

@charris
charris merged this pull request into charris:enable-numpy_ufunc Mar 16, 2017
@mhvk
mhvk deleted the ufunc_override_in_c branch March 17, 2017 21:05
charris pushed a commit that referenced this pull request Nov 11, 2019
Summarise mailing list discussion
charris pushed a commit that referenced this pull request Nov 21, 2021
commit 9c833bed5879d77e625556260690c349de18b433
Author: Thomas Li <[email protected]>
Date:   Wed Nov 17 16:21:27 2021 -0800

    Add Windows config to GHA

    update script [wheel build]

    typo [wheel build]

    fix typo? [wheel build]

    fix linux builds? [wheel build]

    typo [wheel build]

    add license and pin to windows 2016

    skip tests [wheel build]

    pin to windows 2019 instead [wheel build]

    try to find out the error on windows [wheel build]

    maybe fix? [wheel build]

    maybe fix? [wheel build]

    fix? [wheel build]

    cleanup [wheel build]

    Add Windows config to GHA

    update script [wheel build]

    typo [wheel build]

    fix typo? [wheel build]

    fix linux builds? [wheel build]

    typo [wheel build]

    add license and pin to windows 2016

    skip tests [wheel build]

    pin to windows 2019 instead [wheel build]

    try to find out the error on windows [wheel build]

    maybe fix? [wheel build]

    maybe fix? [wheel build]

    fix? [wheel build]

    cleanup [wheel build]

    Update LICENSE_win32.txt

    Update LICENSE_win32.txt

    Add Windows config to GHA

    update script [wheel build]

    typo [wheel build]

    fix typo? [wheel build]

    fix linux builds? [wheel build]

    typo [wheel build]

    add license and pin to windows 2016

    skip tests [wheel build]

    pin to windows 2019 instead [wheel build]

    try to find out the error on windows [wheel build]

    maybe fix? [wheel build]

    maybe fix? [wheel build]

    fix? [wheel build]

    cleanup [wheel build]

    Update LICENSE_win32.txt

    Update LICENSE_win32.txt

    Update cibw_test_command.sh

commit 4bd12df
Author: Thomas Li <[email protected]>
Date:   Mon Nov 15 17:28:47 2021 -0800

    # This is a combination of 14 commits.
    # This is the 1st commit message:

    Add Windows config to GHA
    # This is the commit message #2:

    update script [wheel build]
    # This is the commit message #3:

    typo [wheel build]
    # This is the commit message #4:

    fix typo? [wheel build]
    # This is the commit message #5:

    fix linux builds? [wheel build]
    # This is the commit message #6:

    typo [wheel build]
    # This is the commit message #7:

    add license and pin to windows 2016
    # This is the commit message #8:

    skip tests [wheel build]
    # This is the commit message #9:

    pin to windows 2019 instead [wheel build]
    # This is the commit message #10:

    try to find out the error on windows [wheel build]
    # This is the commit message #11:

    maybe fix? [wheel build]
    # This is the commit message #12:

    maybe fix? [wheel build]
    # This is the commit message #13:

    fix? [wheel build]
    # This is the commit message #14:

    cleanup [wheel build]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants