[number] Add static to hb-number-parser.hh functions

pull/1970/head
Ebrahim Byagowi 5 years ago
parent 30e5cdfbf1
commit 4905a2198b
  1. 4
      src/hb-number-parser.hh
  2. 4
      src/hb-number-parser.rl

@ -97,7 +97,7 @@ static const int double_parser_en_main = 1;
/* Works only for n < 512 */
inline double
static inline double
_pow10 (unsigned int exponent)
{
static const double _powers_of_10[] =
@ -119,7 +119,7 @@ _pow10 (unsigned int exponent)
return result;
}
inline double
static inline double
strtod_rl (const char *buf, char **end_ptr)
{
const char *p, *pe;

@ -70,7 +70,7 @@ main := (
}%%
/* Works only for n < 512 */
inline double
static inline double
_pow10 (unsigned int exponent)
{
static const double _powers_of_10[] =
@ -92,7 +92,7 @@ _pow10 (unsigned int exponent)
return result;
}
inline double
static inline double
strtod_rl (const char *buf, char **end_ptr)
{
const char *p, *pe;

Loading…
Cancel
Save