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
522cf1f6
Commit
522cf1f6
authored
Mar 30, 2002
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #536908: Add missing #include guards/extern "C".
parent
df4d1377
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
Include/cStringIO.h
Include/cStringIO.h
+6
-0
Include/descrobject.h
Include/descrobject.h
+10
-0
Include/iterobject.h
Include/iterobject.h
+10
-0
No files found.
Include/cStringIO.h
View file @
522cf1f6
#ifndef CSTRINGIO_INCLUDED
#define CSTRINGIO_INCLUDED
#ifdef __cplusplus
extern
"C"
{
#endif
/*
cStringIO.h,v 1.4 1997/12/07 14:27:00 jim Exp
...
...
@@ -128,4 +131,7 @@ xxxPyCObject_Import(char *module_name, char *name)
#define PycString_IMPORT \
PycStringIO=(struct PycStringIO_CAPI*)xxxPyCObject_Import("cStringIO", "cStringIO_CAPI")
#ifdef __cplusplus
}
#endif
#endif
/* CSTRINGIO_INCLUDED */
Include/descrobject.h
View file @
522cf1f6
/* Descriptors */
#ifndef Py_DESCROBJECT_H
#define Py_DESCROBJECT_H
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
PyObject
*
(
*
getter
)(
PyObject
*
,
void
*
);
typedef
int
(
*
setter
)(
PyObject
*
,
PyObject
*
,
void
*
);
...
...
@@ -78,3 +83,8 @@ extern DL_IMPORT(PyObject *) PyWrapper_New(PyObject *, PyObject *);
extern
DL_IMPORT
(
PyTypeObject
)
PyProperty_Type
;
#ifdef __cplusplus
}
#endif
#endif
/* !Py_DESCROBJECT_H */
Include/iterobject.h
View file @
522cf1f6
#ifndef Py_ITEROBJECT_H
#define Py_ITEROBJECT_H
/* Iterators (the basic kind, over a sequence) */
#ifdef __cplusplus
extern
"C"
{
#endif
extern
DL_IMPORT
(
PyTypeObject
)
PySeqIter_Type
;
...
...
@@ -11,3 +16,8 @@ extern DL_IMPORT(PyTypeObject) PyCallIter_Type;
#define PyCallIter_Check(op) ((op)->ob_type == &PyCallIter_Type)
extern
DL_IMPORT
(
PyObject
*
)
PyCallIter_New
(
PyObject
*
,
PyObject
*
);
#ifdef __cplusplus
}
#endif
#endif
/* !Py_ITEROBJECT_H */
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