mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
e16a7d8f3b
`et` means `expandtab`. ```sh rg 'vi: .* :vi' -l -0 | \ xargs -0 sed -i '' 's/vi: \(.*\) et\(.*\) :vi/vi: \1 xoet\2:vi/' rg 'vi: .* :vi' -l -0 | \ xargs -0 sed -i '' 's/vi: \(.*\)noet\(.*\):vi/vi: \1et\2 :vi/' rg 'vi: .* :vi' -l -0 | \ xargs -0 sed -i '' 's/vi: \(.*\)xoet\(.*\):vi/vi: \1noet\2:vi/' ```
27 lines
1.4 KiB
C
27 lines
1.4 KiB
C
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│
|
|
│ vi: set et ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi │
|
|
╞══════════════════════════════════════════════════════════════════════════════╡
|
|
│ Python 3 │
|
|
│ https://docs.python.org/3/license.html │
|
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
|
#include "third_party/python/Include/intrcheck.h"
|
|
#include "third_party/python/Include/pyerrors.h"
|
|
|
|
/* Sigcheck is similar to intrcheck() but sets an exception when an
|
|
interrupt occurs. It can't be in the intrcheck.c file since that
|
|
file (and the whole directory it is in) doesn't know about objects
|
|
or exceptions. It can't be in errors.c because it can be
|
|
overridden (at link time) by a more powerful version implemented in
|
|
signalmodule.c. */
|
|
|
|
#pragma weak PyErr_CheckSignals
|
|
|
|
/* ARGSUSED */
|
|
int
|
|
PyErr_CheckSignals(void)
|
|
{
|
|
if (!PyOS_InterruptOccurred())
|
|
return 0;
|
|
PyErr_SetNone(PyExc_KeyboardInterrupt);
|
|
return -1;
|
|
}
|