From: Vladimir 'phcoder' Serbinenko Date: Mon, 21 Oct 2013 11:25:56 +0000 (+0200) Subject: * grub-core/kern/misc.c (grub_isprint): Move to ... X-Git-Tag: grub-2.02-beta1~602 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00f72e890b2d3b74d12e4767a1807dbf7e4f8123;p=thirdparty%2Fgrub.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 22c0a12cc..7c84c6eae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-10-21 Vladimir Serbinenko + + * 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 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check. diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c index fbf77c9a2..5fe416477 100644 --- a/grub-core/kern/misc.c +++ b/grub-core/kern/misc.c @@ -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) { diff --git a/include/grub/misc.h b/include/grub/misc.h index 2acd18884..7bef173b5 100644 --- a/include/grub/misc.h +++ b/include/grub/misc.h @@ -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)