* grub-core/kern/misc.c (grub_isprint): Move to ...

* include/grub/misc.h (grub_isprint): ... here. Make inline.

	Saves 20 bytes on compressed image due to remving exporting.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-21 13:25:56 +02:00
parent 067e6ae74d
commit 00f72e890b
3 changed files with 13 additions and 8 deletions

View file

@ -1,3 +1,10 @@
2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/misc.c (grub_isprint): Move to ...
* include/grub/misc.h (grub_isprint): ... here. Make inline.
Saves 20 bytes on compressed image due to remving exporting.
2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.

View file

@ -347,13 +347,6 @@ grub_isspace (int c)
return (c == '\n' || c == '\r' || c == ' ' || c == '\t');
}
int
grub_isprint (int c)
{
return (c >= ' ' && c <= '~');
}
unsigned long
grub_strtoul (const char *str, char **end, int base)
{

View file

@ -193,7 +193,12 @@ grub_strstr (const char *haystack, const char *needle)
}
int EXPORT_FUNC(grub_isspace) (int c);
int EXPORT_FUNC(grub_isprint) (int c);
static inline int
grub_isprint (int c)
{
return (c >= ' ' && c <= '~');
}
static inline int
grub_iscntrl (int c)