mirror of https://github.com/python/cpython.git
Move some comments to more appropriate places
This commit is contained in:
parent
9acadc54e0
commit
3b38df24df
|
@ -3,11 +3,8 @@
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
|
||||||
/* _Py_parse_inf_or_nan: Attempt to parse a string of the form "nan", "inf" or
|
/* Case-insensitive string match used for nan and inf detection; t should be
|
||||||
"infinity", with an optional leading sign of "+" or "-". On success,
|
lower-case. Returns 1 for a successful match, 0 otherwise. */
|
||||||
return the NaN or Infinity as a double and set *endptr to point just beyond
|
|
||||||
the successfully parsed portion of the string. On failure, return -1.0 and
|
|
||||||
set *endptr to point to the start of the string. */
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
case_insensitive_match(const char *s, const char *t)
|
case_insensitive_match(const char *s, const char *t)
|
||||||
|
@ -19,6 +16,12 @@ case_insensitive_match(const char *s, const char *t)
|
||||||
return *t ? 0 : 1;
|
return *t ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* _Py_parse_inf_or_nan: Attempt to parse a string of the form "nan", "inf" or
|
||||||
|
"infinity", with an optional leading sign of "+" or "-". On success,
|
||||||
|
return the NaN or Infinity as a double and set *endptr to point just beyond
|
||||||
|
the successfully parsed portion of the string. On failure, return -1.0 and
|
||||||
|
set *endptr to point to the start of the string. */
|
||||||
|
|
||||||
double
|
double
|
||||||
_Py_parse_inf_or_nan(const char *p, char **endptr)
|
_Py_parse_inf_or_nan(const char *p, char **endptr)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue