annotate Python/pyfpe.c @ 59857:ec6a995ecfbf

Merged revisions 79205,79219,79228,79230,79232-79233,79235,79237 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79205 | benjamin.peterson | 2010-03-21 12:34:54 -0500 (Sun, 21 Mar 2010) | 1 line rewrite a bit ........ r79219 | benjamin.peterson | 2010-03-21 14:24:08 -0500 (Sun, 21 Mar 2010) | 1 line flatten condition ........ r79228 | benjamin.peterson | 2010-03-21 14:35:39 -0500 (Sun, 21 Mar 2010) | 1 line remove pointless condition ........ r79230 | benjamin.peterson | 2010-03-21 14:39:52 -0500 (Sun, 21 Mar 2010) | 1 line co_varnames is certainly a tuple, so let's not waste time finding out ........ r79232 | benjamin.peterson | 2010-03-21 14:54:56 -0500 (Sun, 21 Mar 2010) | 1 line fix import ........ r79233 | benjamin.peterson | 2010-03-21 14:56:37 -0500 (Sun, 21 Mar 2010) | 1 line don't write duplicate tests ........ r79235 | benjamin.peterson | 2010-03-21 15:21:00 -0500 (Sun, 21 Mar 2010) | 4 lines improve error message from passing inadequate number of keyword arguments #6474 Note this removes the "non-keyword" or "keyword" phrases from these messages. ........ r79237 | benjamin.peterson | 2010-03-21 15:30:30 -0500 (Sun, 21 Mar 2010) | 1 line take into account keyword arguments when passing too many args ........
author Benjamin Peterson <benjamin@python.org>
date Sun, 21 Mar 2010 21:00:50 +0000
parents 2dea40e40d9d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18835
2dea40e40d9d Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents: 13658
diff changeset
1 #include "pyconfig.h"
5119
bda01a374762 Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
diff changeset
2 #include "pyfpe.h"
bda01a374762 Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
diff changeset
3 /*
bda01a374762 Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
diff changeset
4 * The signal handler for SIGFPE is actually declared in an external
bda01a374762 Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
diff changeset
5 * module fpectl, or as preferred by the user. These variable
bda01a374762 Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
diff changeset
6 * definitions are required in order to compile Python without
bda01a374762 Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
diff changeset
7 * getting missing externals, but to actually handle SIGFPE requires
bda01a374762 Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
diff changeset
8 * defining a handler and enabling generation of SIGFPE.
bda01a374762 Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
diff changeset
9 */
bda01a374762 Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
diff changeset
10
bda01a374762 Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
diff changeset
11 #ifdef WANT_SIGFPE_HANDLER
bda01a374762 Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
diff changeset
12 jmp_buf PyFPE_jbuf;
bda01a374762 Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
diff changeset
13 int PyFPE_counter = 0;
bda01a374762 Changes for Lee Busby's SIGFPE patch set.
Guido van Rossum <guido@python.org>
parents:
diff changeset
14 #endif
9045
ad6bc2c5d353 Restructure the file so that it is never empty. No longer needs
Guido van Rossum <guido@python.org>
parents: 8822
diff changeset
15
ad6bc2c5d353 Restructure the file so that it is never empty. No longer needs
Guido van Rossum <guido@python.org>
parents: 8822
diff changeset
16 /* Have this outside the above #ifdef, since some picky ANSI compilers issue a
ad6bc2c5d353 Restructure the file so that it is never empty. No longer needs
Guido van Rossum <guido@python.org>
parents: 8822
diff changeset
17 warning when compiling an empty file. */
ad6bc2c5d353 Restructure the file so that it is never empty. No longer needs
Guido van Rossum <guido@python.org>
parents: 8822
diff changeset
18
ad6bc2c5d353 Restructure the file so that it is never empty. No longer needs
Guido van Rossum <guido@python.org>
parents: 8822
diff changeset
19 double
13658
f79434ee41fa Mass ANSIfication of function definitions. Doesn't cover all 'extern'
Thomas Wouters <thomas@python.org>
parents: 9045
diff changeset
20 PyFPE_dummy(void *dummy)
9045
ad6bc2c5d353 Restructure the file so that it is never empty. No longer needs
Guido van Rossum <guido@python.org>
parents: 8822
diff changeset
21 {
ad6bc2c5d353 Restructure the file so that it is never empty. No longer needs
Guido van Rossum <guido@python.org>
parents: 8822
diff changeset
22 return 1.0;
ad6bc2c5d353 Restructure the file so that it is never empty. No longer needs
Guido van Rossum <guido@python.org>
parents: 8822
diff changeset
23 }