Mercurial > cpython-lru_cache-weakref
diff Modules/mathmodule.c @ 2055:cf31eab6ab5a legacy-trunk
Another bulky set of minor changes.
Note addition of gethostbyaddr() and improved repr() for sockets,
renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 02 Jan 1995 19:30:30 +0000 |
| parents | 58eef51e3084 |
| children | 172ba04a5191 |
line wrap: on
line diff
--- a/Modules/mathmodule.c Mon Jan 02 19:13:30 1995 +0000 +++ b/Modules/mathmodule.c Mon Jan 02 19:30:30 1995 +0000 @@ -121,7 +121,9 @@ FUNC1(math_fabs, fabs) FUNC1(math_floor, floor) FUNC2(math_fmod, fmod) +#ifdef HAVE_HYPOT FUNC2(math_hypot, hypot) +#endif FUNC1(math_log, log) FUNC1(math_log10, log10) #ifdef MPW_3_1 /* This hack is needed for MPW 3.1 but not for 3.2 ... */ @@ -215,7 +217,9 @@ {"floor", math_floor}, {"fmod", math_fmod}, {"frexp", math_frexp}, +#ifdef HAVE_HYPOT {"hypot", math_hypot}, +#endif {"ldexp", math_ldexp}, {"log", math_log}, {"log10", math_log10},
