summaryrefslogtreecommitdiffstats
path: root/PC/os2emx/dllentry.c
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2003-04-22 03:21:42 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2003-04-22 03:21:42 (GMT)
commit0c83348d5c110a6ca706219019e97d5cefe2fddb (patch)
treebd4be5331c889044de6470147d476e90b2373171 /PC/os2emx/dllentry.c
parent699cbb767628888901d1a3c1f0ce20dd3ce1e4f9 (diff)
downloadcpython-0c83348d5c110a6ca706219019e97d5cefe2fddb.zip
cpython-0c83348d5c110a6ca706219019e97d5cefe2fddb.tar.gz
cpython-0c83348d5c110a6ca706219019e97d5cefe2fddb.tar.bz2
minor cleanups and whitespace normalisation
Diffstat (limited to 'PC/os2emx/dllentry.c')
-rw-r--r--PC/os2emx/dllentry.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/PC/os2emx/dllentry.c b/PC/os2emx/dllentry.c
index ea8d366..dbf9c98 100644
--- a/PC/os2emx/dllentry.c
+++ b/PC/os2emx/dllentry.c
@@ -1,40 +1,39 @@
/*
- This is the entry point for Python DLL(s).
- It also provides an getenv() function that works from within DLLs.
-*/
+ * This is the entry point for the Python 2.3 core DLL.
+ */
#define NULL 0
-/* Make references to imported symbols to pull them from static library */
-#define REF(s) extern void s (); void *____ref_##s = &s;
+#define REF(s) extern void s(); void *____ref_##s = &s;
-REF (Py_Main);
+/* Make references to imported symbols to pull them from static library */
+REF(Py_Main);
#include <signal.h>
-extern int _CRT_init (void);
-extern void _CRT_term (void);
-extern void __ctordtorInit (void);
-extern void __ctordtorTerm (void);
+extern int _CRT_init(void);
+extern void _CRT_term(void);
+extern void __ctordtorInit(void);
+extern void __ctordtorTerm(void);
-unsigned long _DLL_InitTerm (unsigned long mod_handle, unsigned long flag)
+unsigned long _DLL_InitTerm(unsigned long mod_handle, unsigned long flag)
{
switch (flag)
{
case 0:
- if (_CRT_init ())
+ if (_CRT_init())
return 0;
- __ctordtorInit ();
+ __ctordtorInit();
/* Ignore fatal signals */
- signal (SIGSEGV, SIG_IGN);
- signal (SIGFPE, SIG_IGN);
+ signal(SIGSEGV, SIG_IGN);
+ signal(SIGFPE, SIG_IGN);
return 1;
case 1:
- __ctordtorTerm ();
- _CRT_term ();
+ __ctordtorTerm();
+ _CRT_term();
return 1;
default: