mirror of
https://git.proxmox.com/git/grub2
synced 2025-05-23 16:44:33 +00:00
* 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:
parent
067e6ae74d
commit
00f72e890b
@ -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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user