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
bdf4298a
Commit
bdf4298a
authored
Oct 26, 2017
by
Serhiy Storchaka
Committed by
GitHub
Oct 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix trailing whitespaces in C files. (#4130)
parent
56d1f5ca
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
Include/pystate.h
Include/pystate.h
+2
-2
Include/pytime.h
Include/pytime.h
+2
-2
Modules/overlapped.c
Modules/overlapped.c
+1
-1
Python/pystate.c
Python/pystate.c
+1
-1
No files found.
Include/pystate.h
View file @
bdf4298a
...
@@ -125,8 +125,8 @@ typedef struct _ts PyThreadState;
...
@@ -125,8 +125,8 @@ typedef struct _ts PyThreadState;
#else
#else
typedef
struct
_err_stackitem
{
typedef
struct
_err_stackitem
{
/* This struct represents an entry on the exception stack, which is a
/* This struct represents an entry on the exception stack, which is a
* per-coroutine state. (Coroutine in the computer science sense,
* per-coroutine state. (Coroutine in the computer science sense,
* including the thread and generators).
* including the thread and generators).
* This ensures that the exception state is not impacted by "yields"
* This ensures that the exception state is not impacted by "yields"
* from an except handler.
* from an except handler.
...
...
Include/pytime.h
View file @
bdf4298a
...
@@ -30,14 +30,14 @@ typedef enum {
...
@@ -30,14 +30,14 @@ typedef enum {
/* Round to nearest with ties going to nearest even integer.
/* Round to nearest with ties going to nearest even integer.
For example, used to round from a Python float. */
For example, used to round from a Python float. */
_PyTime_ROUND_HALF_EVEN
=
2
,
_PyTime_ROUND_HALF_EVEN
=
2
,
/* Round away from zero
/* Round away from zero
For example, used for timeout. _PyTime_ROUND_CEILING rounds
For example, used for timeout. _PyTime_ROUND_CEILING rounds
-1e-9 to 0 milliseconds which causes bpo-31786 issue.
-1e-9 to 0 milliseconds which causes bpo-31786 issue.
_PyTime_ROUND_UP rounds -1e-9 to -1 millisecond which keeps
_PyTime_ROUND_UP rounds -1e-9 to -1 millisecond which keeps
the timeout sign as expected. select.poll(timeout) must block
the timeout sign as expected. select.poll(timeout) must block
for negative values." */
for negative values." */
_PyTime_ROUND_UP
=
3
,
_PyTime_ROUND_UP
=
3
,
/* _PyTime_ROUND_TIMEOUT (an alias for _PyTime_ROUND_UP) should be
/* _PyTime_ROUND_TIMEOUT (an alias for _PyTime_ROUND_UP) should be
used for timeouts. */
used for timeouts. */
_PyTime_ROUND_TIMEOUT
=
_PyTime_ROUND_UP
_PyTime_ROUND_TIMEOUT
=
_PyTime_ROUND_UP
}
_PyTime_round_t
;
}
_PyTime_round_t
;
...
...
Modules/overlapped.c
View file @
bdf4298a
...
@@ -804,7 +804,7 @@ do_WSARecv(OverlappedObject *self, HANDLE handle,
...
@@ -804,7 +804,7 @@ do_WSARecv(OverlappedObject *self, HANDLE handle,
WSABUF
wsabuf
;
WSABUF
wsabuf
;
int
ret
;
int
ret
;
DWORD
err
;
DWORD
err
;
wsabuf
.
buf
=
bufstart
;
wsabuf
.
buf
=
bufstart
;
wsabuf
.
len
=
buflen
;
wsabuf
.
len
=
buflen
;
...
...
Python/pystate.c
View file @
bdf4298a
...
@@ -450,7 +450,7 @@ PyThreadState_Clear(PyThreadState *tstate)
...
@@ -450,7 +450,7 @@ PyThreadState_Clear(PyThreadState *tstate)
Py_CLEAR
(
tstate
->
exc_state
.
exc_type
);
Py_CLEAR
(
tstate
->
exc_state
.
exc_type
);
Py_CLEAR
(
tstate
->
exc_state
.
exc_value
);
Py_CLEAR
(
tstate
->
exc_state
.
exc_value
);
Py_CLEAR
(
tstate
->
exc_state
.
exc_traceback
);
Py_CLEAR
(
tstate
->
exc_state
.
exc_traceback
);
/* The stack of exception states should contain just this thread. */
/* The stack of exception states should contain just this thread. */
assert
(
tstate
->
exc_info
->
previous_item
==
NULL
);
assert
(
tstate
->
exc_info
->
previous_item
==
NULL
);
if
(
Py_VerboseFlag
&&
tstate
->
exc_info
!=
&
tstate
->
exc_state
)
{
if
(
Py_VerboseFlag
&&
tstate
->
exc_info
!=
&
tstate
->
exc_state
)
{
...
...
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