]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/misc.c (grub_isprint): Move to ...
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 21 Oct 2013 11:25:56 +0000 (13:25 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 21 Oct 2013 11:25:56 +0000 (13:25 +0200)
* include/grub/misc.h (grub_isprint): ... here. Make inline.

Saves 20 bytes on compressed image due to remving exporting.

ChangeLog
grub-core/kern/misc.c
include/grub/misc.h

index 22c0a12cc3d3b4921211bc313d8622abab92e728..7c84c6eaea8a83e2ea198ad0376eb36f80e75597 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index fbf77c9a23d232fb58055073428b117c19671e23..5fe416477d5cbb208c0ee2131d25d5c6584a66a8 100644 (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)
 {
index 2acd18884030fd024c265f86df9c26dabfa5c15f..7bef173b59fcfc2ca2ad411ce2b620e0065d0ac9 100644 (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)