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
f334d3cd
Commit
f334d3cd
authored
Dec 02, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch for QNX, by Chris Herborth.
parent
344d07ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
Include/osdefs.h
Include/osdefs.h
+3
-0
Modules/timemodule.c
Modules/timemodule.c
+5
-5
Parser/intrcheck.c
Parser/intrcheck.c
+2
-2
No files found.
Include/osdefs.h
View file @
f334d3cd
...
...
@@ -44,12 +44,15 @@ PERFORMANCE OF THIS SOFTWARE.
#define DELIM '\n'
#endif
/* Mod by chrish: QNX has WATCOM, but isn't DOS */
#if !defined(__QNX__)
#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(__TOS_OS2__)
#define SEP '\\'
#define ALTSEP '/'
#define MAXPATHLEN 256
#define DELIM ';'
#endif
#endif
/* Filename separator */
#ifndef SEP
...
...
Modules/timemodule.c
View file @
f334d3cd
...
...
@@ -64,7 +64,7 @@ extern int ftime();
#endif
/* MS_WINDOWS */
#endif
/* HAVE_FTIME */
#if
def __WATCOMC__
#if
defined(__WATCOMC__) && !defined(__QNX__)
#include <i86.h>
#else
#ifdef MS_WINDOWS
...
...
@@ -77,7 +77,7 @@ extern int ftime();
#define altzone _altzone
#endif
/* MS_WIN16 */
#endif
/* MS_WINDOWS */
#endif
/* !__WATCOMC__ */
#endif
/* !__WATCOMC__
|| __QNX__
*/
#ifdef MS_WIN32
/* Win32 has better clock replacement */
...
...
@@ -558,12 +558,12 @@ floatsleep(double secs)
return
-
1
;
}
#else
/* !macintosh */
#if
def __WATCOMC__
#if
defined(__WATCOMC__) && !defined(__QNX__)
/* XXX Can't interrupt this sleep */
Py_BEGIN_ALLOW_THREADS
delay
((
int
)(
secs
*
1000
+
0
.
5
));
/* delay() uses milliseconds */
Py_END_ALLOW_THREADS
#else
/* !__WATCOMC__ */
#else
/* !__WATCOMC__
|| __QNX__
*/
#ifdef MSDOS
struct
timeb
t1
,
t2
;
double
frac
;
...
...
@@ -614,7 +614,7 @@ floatsleep(double secs)
#endif
/* !PYOS_OS2 */
#endif
/* !MS_WIN32 */
#endif
/* !MSDOS */
#endif
/* !__WATCOMC__ */
#endif
/* !__WATCOMC__
|| __QNX__
*/
#endif
/* !macintosh */
#endif
/* !HAVE_SELECT */
return
0
;
...
...
Parser/intrcheck.c
View file @
f334d3cd
...
...
@@ -64,7 +64,7 @@ PyOS_InterruptOccurred()
#endif
/* QUICKWIN */
#if
def _M_IX86
#if
defined(_M_IX86) && !defined(__QNX__)
#include <io.h>
#endif
...
...
@@ -160,7 +160,7 @@ extern int PyErr_CheckSignals();
/* ARGSUSED */
static
RETSIGTYPE
#if
def _M_IX86
#if
defined(_M_IX86) && !defined(__QNX__)
intcatcher
(
int
sig
)
/* So the C compiler shuts up */
#else
/* _M_IX86 */
intcatcher
(
sig
)
...
...
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