Nuitka
The Python compiler
Loading...
Searching...
No Matches
operations_inplace_olddiv.h
1// Copyright 2025, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
2
3/* WARNING, this code is GENERATED. Modify the template HelperOperationInplace.c.j2 instead! */
4
5/* This file is included from another C file, help IDEs to still parse it on its own. */
6#ifdef __IDE_ONLY__
7#include "nuitka/prelude.h"
8#endif
9
10/* C helpers for type in-place "/" (OLDDIV) operations */
11
12#if PYTHON_VERSION < 0x300
13/* Code referring to "INT" corresponds to Python2 'int' and "INT" to Python2 'int'. */
14extern bool INPLACE_OPERATION_OLDDIV_INT_INT(PyObject **operand1, PyObject *operand2);
15#endif
16
17#if PYTHON_VERSION < 0x300
18/* Code referring to "OBJECT" corresponds to any Python object and "INT" to Python2 'int'. */
19extern bool INPLACE_OPERATION_OLDDIV_OBJECT_INT(PyObject **operand1, PyObject *operand2);
20#endif
21
22#if PYTHON_VERSION < 0x300
23/* Code referring to "INT" corresponds to Python2 'int' and "OBJECT" to any Python object. */
24extern bool INPLACE_OPERATION_OLDDIV_INT_OBJECT(PyObject **operand1, PyObject *operand2);
25#endif
26
27#if PYTHON_VERSION < 0x300
28/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "LONG" to Python2 'long', Python3 'int'. */
29extern bool INPLACE_OPERATION_OLDDIV_LONG_LONG(PyObject **operand1, PyObject *operand2);
30#endif
31
32#if PYTHON_VERSION < 0x300
33/* Code referring to "OBJECT" corresponds to any Python object and "LONG" to Python2 'long', Python3 'int'. */
34extern bool INPLACE_OPERATION_OLDDIV_OBJECT_LONG(PyObject **operand1, PyObject *operand2);
35#endif
36
37#if PYTHON_VERSION < 0x300
38/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "OBJECT" to any Python object. */
39extern bool INPLACE_OPERATION_OLDDIV_LONG_OBJECT(PyObject **operand1, PyObject *operand2);
40#endif
41
42#if PYTHON_VERSION < 0x300
43/* Code referring to "FLOAT" corresponds to Python 'float' and "FLOAT" to Python 'float'. */
44extern bool INPLACE_OPERATION_OLDDIV_FLOAT_FLOAT(PyObject **operand1, PyObject *operand2);
45#endif
46
47#if PYTHON_VERSION < 0x300
48/* Code referring to "OBJECT" corresponds to any Python object and "FLOAT" to Python 'float'. */
49extern bool INPLACE_OPERATION_OLDDIV_OBJECT_FLOAT(PyObject **operand1, PyObject *operand2);
50#endif
51
52#if PYTHON_VERSION < 0x300
53/* Code referring to "FLOAT" corresponds to Python 'float' and "OBJECT" to any Python object. */
54extern bool INPLACE_OPERATION_OLDDIV_FLOAT_OBJECT(PyObject **operand1, PyObject *operand2);
55#endif
56
57#if PYTHON_VERSION < 0x300
58/* Code referring to "FLOAT" corresponds to Python 'float' and "LONG" to Python2 'long', Python3 'int'. */
59extern bool INPLACE_OPERATION_OLDDIV_FLOAT_LONG(PyObject **operand1, PyObject *operand2);
60#endif
61
62#if PYTHON_VERSION < 0x300
63/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "FLOAT" to Python 'float'. */
64extern bool INPLACE_OPERATION_OLDDIV_LONG_FLOAT(PyObject **operand1, PyObject *operand2);
65#endif
66
67#if PYTHON_VERSION < 0x300
68/* Code referring to "FLOAT" corresponds to Python 'float' and "INT" to Python2 'int'. */
69extern bool INPLACE_OPERATION_OLDDIV_FLOAT_INT(PyObject **operand1, PyObject *operand2);
70#endif
71
72#if PYTHON_VERSION < 0x300
73/* Code referring to "INT" corresponds to Python2 'int' and "FLOAT" to Python 'float'. */
74extern bool INPLACE_OPERATION_OLDDIV_INT_FLOAT(PyObject **operand1, PyObject *operand2);
75#endif
76
77#if PYTHON_VERSION < 0x300
78/* Code referring to "LONG" corresponds to Python2 'long', Python3 'int' and "INT" to Python2 'int'. */
79extern bool INPLACE_OPERATION_OLDDIV_LONG_INT(PyObject **operand1, PyObject *operand2);
80#endif
81
82#if PYTHON_VERSION < 0x300
83/* Code referring to "INT" corresponds to Python2 'int' and "LONG" to Python2 'long', Python3 'int'. */
84extern bool INPLACE_OPERATION_OLDDIV_INT_LONG(PyObject **operand1, PyObject *operand2);
85#endif
86
87#if PYTHON_VERSION < 0x300
88/* Code referring to "INT" corresponds to Python2 'int' and "CLONG" to C platform long value. */
89extern bool INPLACE_OPERATION_OLDDIV_INT_CLONG(PyObject **operand1, long operand2);
90#endif
91
92#if PYTHON_VERSION < 0x300
93/* Code referring to "FLOAT" corresponds to Python 'float' and "CFLOAT" to C platform float value. */
94extern bool INPLACE_OPERATION_OLDDIV_FLOAT_CFLOAT(PyObject **operand1, double operand2);
95#endif
96
97#if PYTHON_VERSION < 0x300
98/* Code referring to "OBJECT" corresponds to any Python object and "OBJECT" to any Python object. */
99extern bool INPLACE_OPERATION_OLDDIV_OBJECT_OBJECT(PyObject **operand1, PyObject *operand2);
100#endif
101
102// Part of "Nuitka", an optimizing Python compiler that is compatible and
103// integrates with CPython, but also works on its own.
104//
105// Licensed under the Apache License, Version 2.0 (the "License");
106// you may not use this file except in compliance with the License.
107// You may obtain a copy of the License at
108//
109// http://www.apache.org/licenses/LICENSE-2.0
110//
111// Unless required by applicable law or agreed to in writing, software
112// distributed under the License is distributed on an "AS IS" BASIS,
113// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
114// See the License for the specific language governing permissions and
115// limitations under the License.