Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
66cb311f
Commit
66cb311f
authored
Dec 30, 1994
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lots of small things, see ChangeLog
parent
31b7727b
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
14 additions
and
10 deletions
+14
-10
Include/bitset.h
Include/bitset.h
+1
-3
Include/bltinmodule.h
Include/bltinmodule.h
+1
-0
Include/ceval.h
Include/ceval.h
+1
-2
Include/errors.h
Include/errors.h
+2
-1
Include/import.h
Include/import.h
+1
-0
Include/patchlevel.h
Include/patchlevel.h
+1
-1
Include/pyerrors.h
Include/pyerrors.h
+2
-1
Include/rename1.h
Include/rename1.h
+3
-2
Include/traceback.h
Include/traceback.h
+2
-0
No files found.
Include/bitset.h
View file @
66cb311f
...
...
@@ -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
...
...
Include/bltinmodule.h
View file @
66cb311f
...
...
@@ -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
...
...
Include/ceval.h
View file @
66cb311f
...
...
@@ -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
...interpret
r
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
...
...
Include/errors.h
View file @
66cb311f
...
...
@@ -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 */
...
...
Include/import.h
View file @
66cb311f
...
...
@@ -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
));
...
...
Include/patchlevel.h
View file @
66cb311f
#define PATCHLEVEL "1.
1.1
"
#define PATCHLEVEL "1.
2--
"
Include/pyerrors.h
View file @
66cb311f
...
...
@@ -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 */
...
...
Include/rename1.h
View file @
66cb311f
...
...
@@ -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
...
...
Include/traceback.h
View file @
66cb311f
...
...
@@ -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
*
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment