summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-19 16:30:12 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-19 16:30:12 (GMT)
commit3d095434722cb363fb81a1474924f16384d79858 (patch)
treee211b817533d86d6f9c4cab0f1643a1070a02c77 /Include
parent189e8f9380241751df168ca5be4cbbcfdb0b3651 (diff)
downloadcpython-3d095434722cb363fb81a1474924f16384d79858.zip
cpython-3d095434722cb363fb81a1474924f16384d79858.tar.gz
cpython-3d095434722cb363fb81a1474924f16384d79858.tar.bz2
Move the longobject typedef to longobject.h.
Remove some functions that need not be exported.
Diffstat (limited to 'Include')
-rw-r--r--Include/longintrepr.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/Include/longintrepr.h b/Include/longintrepr.h
index c15eaa4..b30904b 100644
--- a/Include/longintrepr.h
+++ b/Include/longintrepr.h
@@ -22,6 +22,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
+/* This is published for the benefit of "friend" marshal.c only. */
+
/* Parameters of the long integer representation.
These shouldn't have to be changed as C should guarantee that a short
contains at least 16 bits, but it's made changeable any way.
@@ -52,17 +54,10 @@ typedef long stwodigits; /* signed variant of twodigits */
The allocation fuction takes care of allocating extra memory
so that ob_digit[0] ... ob_digit[abs(ob_size)-1] are actually available. */
-typedef struct {
+struct _longobject {
OB_HEAD
int ob_size; /* XXX Hack! newvarobj() stores it as unsigned! */
digit ob_digit[1];
-} longobject;
-
-#define ABS(x) ((x) < 0 ? -(x) : (x))
+};
-/* Internal use only */
longobject *alloclongobject PROTO((int));
-longobject *long_normalize PROTO((longobject *));
-longobject *mul1 PROTO((longobject *, wdigit));
-longobject *muladd1 PROTO((longobject *, wdigit, wdigit));
-longobject *divrem1 PROTO((longobject *, wdigit, digit *));