* 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

@ -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)