Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
push:
tags:
- '*'
workflow_dispatch:
# Allow to run manually

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.2
2.1.3b1
33 changes: 33 additions & 0 deletions cypari2/paridecl.pyx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"""
Expose ``PARI_SIGINT_block`` and ``PARI_SIGINT_pending`` for runtime use of ``cysignals``.

AUTHORS:

- Jonathan Kliem (2021-09-02)
"""
#*****************************************************************************
# Distributed under the terms of the GNU General Public License (GPL)
# as published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************

def _PARI_SIGINT_block_pt():
"""
Return the address of ``PARI_SIGINT_block``.

.. WARNING::

Changing this variable will change PARI's signal handling.
"""
return <size_t> &PARI_SIGINT_block

def _PARI_SIGINT_pending_pt():
"""
Return the address of ``PARI_SIGINT_pending``.

.. WARNING::

Changing this variable will change PARI's signal handling.
"""
return <size_t> &PARI_SIGINT_pending