diff options
author | Guido van Rossum <guido@python.org> | 1994-12-30 15:33:50 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-12-30 15:33:50 +0000 |
commit | d04007652eb3eb0e9267345168d1ba1d8201397c (patch) | |
tree | 2a333f329e3c232e08a693587432f05efeb96e41 | |
parent | 8476e0af56b0c2312030916a67cc5cf9e15a0f62 (diff) | |
download | cpython-d04007652eb3eb0e9267345168d1ba1d8201397c.tar.gz |
Lots of small things, see ChangeLog
-rw-r--r-- | Include/bitset.h | 4 | ||||
-rw-r--r-- | Include/bltinmodule.h | 1 | ||||
-rw-r--r-- | Include/ceval.h | 3 | ||||
-rwxr-xr-x | Include/errors.h | 3 | ||||
-rw-r--r-- | Include/import.h | 1 | ||||
-rw-r--r-- | Include/patchlevel.h | 2 | ||||
-rw-r--r-- | Include/pyerrors.h | 3 | ||||
-rwxr-xr-x | Include/rename1.h | 5 | ||||
-rw-r--r-- | Include/traceback.h | 2 |
9 files changed, 14 insertions, 10 deletions
diff --git a/Include/bitset.h b/Include/bitset.h index 6fa5be6a6b..9be259a297 100644 --- a/Include/bitset.h +++ b/Include/bitset.h @@ -36,7 +36,7 @@ typedef BYTE *bitset; bitset newbitset PROTO((int nbits)); void delbitset PROTO((bitset bs)); -/* int testbit PROTO((bitset bs, int ibit)); /* Now a macro, see below */ +#define testbit(ss, ibit) (((ss)[BIT2BYTE(ibit)] & BIT2MASK(ibit)) != 0) int addbit PROTO((bitset bs, int ibit)); /* Returns 0 if already set */ int samebitset PROTO((bitset bs1, bitset bs2, int nbits)); void mergebitset PROTO((bitset bs1, bitset bs2, int nbits)); @@ -49,8 +49,6 @@ void mergebitset PROTO((bitset bs1, bitset bs2, int nbits)); #define BIT2MASK(ibit) (1 << BIT2SHIFT(ibit)) #define BYTE2BIT(ibyte) ((ibyte) * BITSPERBYTE) -#define testbit(ss, ibit) (((ss)[BIT2BYTE(ibit)] & BIT2MASK(ibit)) != 0) - #ifdef __cplusplus } #endif diff --git a/Include/bltinmodule.h b/Include/bltinmodule.h index e4f47e0a37..d000aaaa6f 100644 --- a/Include/bltinmodule.h +++ b/Include/bltinmodule.h @@ -31,6 +31,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. /* Built-in module interface */ extern object *getbuiltin PROTO((object *)); +extern object *getbuiltins PROTO((char *)); extern int setbuiltin PROTO((char *, object *)); #ifdef __cplusplus diff --git a/Include/ceval.h b/Include/ceval.h index 7002dd453d..8de2fc04ce 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -37,7 +37,6 @@ object *getlocals PROTO((void)); object *getowner PROTO((void)); object *getframe PROTO((void)); -void printtraceback PROTO((object *)); void flushline PROTO((void)); int Py_AddPendingCall PROTO((int (*func) PROTO((ANY *)), ANY *arg)); @@ -54,7 +53,7 @@ int Py_MakePendingCalls PROTO((void)); BGN_SAVE ...blocking system call here... END_SAVE - ...interpretr result here... + ...interpret result here... The BGN_SAVE/END_SAVE pair expands to a {}-surrounded block. To leave the block in the middle (e.g., with return), you must insert diff --git a/Include/errors.h b/Include/errors.h index 33c7806ac8..ff545bf5b8 100755 --- a/Include/errors.h +++ b/Include/errors.h @@ -32,9 +32,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. void err_set PROTO((object *)); void err_setval PROTO((object *, object *)); +void err_restore PROTO((object *, object *, object *)); void err_setstr PROTO((object *, char *)); object *err_occurred PROTO((void)); -void err_get PROTO((object **, object **)); +void err_fetch PROTO((object **, object **, object **)); void err_clear PROTO((void)); /* Predefined exceptions */ diff --git a/Include/import.h b/Include/import.h index c335995a8b..02c8ebff23 100644 --- a/Include/import.h +++ b/Include/import.h @@ -30,6 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. /* Module definition and import interface */ +long get_pyc_magic PROTO((void)); object *get_modules PROTO((void)); object *add_module PROTO((char *name)); object *import_module PROTO((char *name)); diff --git a/Include/patchlevel.h b/Include/patchlevel.h index 4e41cd33a8..0a03fa226f 100644 --- a/Include/patchlevel.h +++ b/Include/patchlevel.h @@ -1 +1 @@ -#define PATCHLEVEL "1.1.1" +#define PATCHLEVEL "1.2--" diff --git a/Include/pyerrors.h b/Include/pyerrors.h index 33c7806ac8..ff545bf5b8 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -32,9 +32,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. void err_set PROTO((object *)); void err_setval PROTO((object *, object *)); +void err_restore PROTO((object *, object *, object *)); void err_setstr PROTO((object *, char *)); object *err_occurred PROTO((void)); -void err_get PROTO((object **, object **)); +void err_fetch PROTO((object **, object **, object **)); void err_clear PROTO((void)); /* Predefined exceptions */ diff --git a/Include/rename1.h b/Include/rename1.h index 4f2bef7dec..f271c44b10 100755 --- a/Include/rename1.h +++ b/Include/rename1.h @@ -114,7 +114,7 @@ typedef struct methodlist PyMethodDef; #define PyMappingMethods mapping_methods #define PyObject_HEAD OB_HEAD #define PyObject_VAR_HEAD OB_VARHEAD -#define PyObject_HEAD_INIT OB_HEAD_INIT +#define PyObject_HEAD_INIT(x) OB_HEAD_INIT(x) #define PyObject_NEW NEWOBJ #define PyObject_NEW_VAR NEWVAROBJ #define Py_PROTO PROTO @@ -345,7 +345,8 @@ typedef struct methodlist PyMethodDef; #define PyErr_SetString err_setstr #define PyErr_SetObject err_setval #define PyErr_Occurred err_occurred -#define PyErr_GetAndClear err_get +#define PyErr_Fetch err_fetch +#define PyErr_Restore err_restore #define PyErr_Clear err_clear #define PyOS_InterruptableGetString fgets_intr #define PyOS_InitInterrupts initintr diff --git a/Include/traceback.h b/Include/traceback.h index f86306d541..a1b6d5eab8 100644 --- a/Include/traceback.h +++ b/Include/traceback.h @@ -30,6 +30,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. /* Traceback interface */ +struct _frame; + int tb_here PROTO((struct _frame *)); object *tb_fetch PROTO((void)); int tb_store PROTO((object *)); |