mirror of
https://https.git.savannah.gnu.org/git/patch.git
synced 2026-01-28 02:15:16 +00:00
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:
parent
755712d85e
commit
39005cfce9
@ -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)
|
||||
{
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user