|
From: <cho...@us...> - 2003-01-04 22:57:51
|
Update of /cvsroot/pyaros/PyAROS/Parser
In directory sc8-pr-cvs1:/tmp/cvs-serv1786/Parser
Modified Files:
intrcheck.c module.make
Added Files:
intrcheck_aros.c
Log Message:
Moved the AROS part of intrcheck.c into intrcheck_aros.c for code clarity.
Also saves some bytes since we don't need PyOS_AfterFork().
--- NEW FILE: intrcheck_aros.c ---
#include "Python.h"
#include <proto/dos.h>
#include <dos/dos.h>
void
PyOS_InitInterrupts(void)
{
}
void
PyOS_FiniInterrupts(void)
{
}
int
PyOS_InterruptOccurred(void)
{
if( CheckSignal( SIGBREAKF_CTRL_C ) )
return TRUE;
else
return FALSE;
}
Index: intrcheck.c
===================================================================
RCS file: /cvsroot/pyaros/PyAROS/Parser/intrcheck.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** intrcheck.c 30 Dec 2002 12:27:03 -0000 1.3
--- intrcheck.c 4 Jan 2003 22:57:46 -0000 1.4
***************
*** 100,128 ****
#endif /* macintosh */
- #ifdef __AROS__
- #include <proto/dos.h>
- #include <dos/dos.h>
-
- void
- PyOS_InitInterrupts(void)
- {
- }
-
- void
- PyOS_FiniInterrupts(void)
- {
- }
-
- int
- PyOS_InterruptOccurred(void)
- {
- if( CheckSignal( SIGBREAKF_CTRL_C ) )
- return TRUE;
- else
- return FALSE;
- }
-
- #define OK
- #endif
#ifndef OK
--- 100,103 ----
Index: module.make
===================================================================
RCS file: /cvsroot/pyaros/PyAROS/Parser/module.make,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** module.make 16 Oct 2002 08:02:26 -0000 1.1
--- module.make 4 Jan 2003 22:57:47 -0000 1.2
***************
*** 13,17 ****
printgrammar \
tokenizer \
! intrcheck
USER_CFLAGS += -IParser
--- 13,17 ----
printgrammar \
tokenizer \
! intrcheck_aros
USER_CFLAGS += -IParser
|