FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python/Modules/python.c at master · followdao/python · GitHub
followdao
/
python
Public
forked from
glix/python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python
/
Modules
/
python.c
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (20 loc) · 560 Bytes
Breadcrumbs
python
/
Modules
/
python.c
Copy path
File metadata and controls
24 lines (20 loc) · 560 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Minimal main program -- everything is loaded from the library */
#include
"Python.h"
#ifdef
__FreeBSD__
#include
<floatingpoint.h>
#endif
int
main
(
int
argc
,
char
*
*
argv
)
{
/* 754 requires that FP exceptions run in "no stop" mode by default,
* and until C vendors implement C99's ways to control FP exceptions,
* Python requires non-stop mode. Alas, some platforms enable FP
* exceptions by default. Here we disable them.
*/
#ifdef
__FreeBSD__
fp_except_t
m
;
m
=
fpgetmask
();
fpsetmask
(
m
&
~
FP_X_OFL
);
#endif
return
Py_Main
(
argc
,
argv
);
}
Back
|
FazBrowse Home
|
New Git URL