Move skip_spaces

* src/pch.c (skip_spaces): Move here ...
* src/util.h: ... from here, since it is used only in pch.c.
No need for it to be declared inline.
This commit is contained in:
Paul Eggert 2024-08-23 21:06:51 -07:00
parent 755712d85e
commit 39005cfce9
2 changed files with 8 additions and 8 deletions

View File

@ -390,6 +390,14 @@ skip_hex_digits (char const *str)
return s == str ? NULL : s;
}
static char const * _GL_ATTRIBUTE_PURE
skip_spaces (char const *str)
{
while (isspace ((unsigned char) *str))
str++;
return str;
}
static bool
name_is_valid (char const *name)
{

View File

@ -81,12 +81,4 @@ enum file_attributes {
void set_file_attributes (char const *, enum file_attributes, char const *,
const struct stat *, mode_t, struct timespec *);
static inline char const * _GL_ATTRIBUTE_PURE
skip_spaces (char const *str)
{
while (isspace ((unsigned char) *str))
str++;
return str;
}
int make_tempfile(char const **, char, char const *, int, mode_t);