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
54ba21bd
Commit
54ba21bd
authored
Sep 10, 1991
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Socktype global so old and new compilers will like it.
parent
b988c33d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Modules/socketmodule.c
Modules/socketmodule.c
+4
-6
No files found.
Modules/socketmodule.c
View file @
54ba21bd
...
...
@@ -113,9 +113,7 @@ typedef struct {
/* A forward reference to the Socktype type object.
The Socktype variable contains pointers to various functions,
some of which call newsocobject(), which uses Socktype, so
there has to be a circular reference. If your compiler complains
that it is first declared 'extern' and later 'static', remove the
'static' keyword from the actual definition. */
there has to be a circular reference. */
extern
typeobject
Socktype
;
/* Forward */
...
...
@@ -622,10 +620,10 @@ sock_getattr(s, name)
/* Type object for socket objects.
If your compiler complains that it is first declared 'extern'
and later 'static', remove the 'static' keyword here
. */
XXX This should be static, but some compilers don't grok the
XXX forward reference to it in that case..
. */
static
typeobject
Socktype
=
{
typeobject
Socktype
=
{
OB_HEAD_INIT
(
&
Typetype
)
0
,
"socket"
,
...
...
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