summaryrefslogtreecommitdiff
path: root/com32/include/ctype.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-02-24 16:13:11 -0800
committerH. Peter Anvin <hpa@zytor.com>2011-02-24 16:13:11 -0800
commitb507068d4788084347aa3860743dcaa57e49136a (patch)
treec822a92b8358918756ce4b210e8b28fe7981d497 /com32/include/ctype.h
parent1207d0f56a28e628f66a65ca8aef16cf62fb6d07 (diff)
downloadsyslinux-b507068d4788084347aa3860743dcaa57e49136a.tar.gz
skipspace: move out of linesyslinux-4.04-pre9
Move skipspace() out of line since it triggers inlining warnings. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/include/ctype.h')
-rw-r--r--com32/include/ctype.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/com32/include/ctype.h b/com32/include/ctype.h
index 7709c037..83bbda1c 100644
--- a/com32/include/ctype.h
+++ b/com32/include/ctype.h
@@ -7,6 +7,8 @@
#ifndef _CTYPE_H
#define _CTYPE_H
+#include <klibc/extern.h>
+
#ifndef __CTYPE_NO_INLINE
# define __ctype_inline static __inline__
#else
@@ -114,11 +116,6 @@ __ctype_inline int tolower(int __c)
return isupper(__c) ? _tolower(__c) : __c;
}
-__ctype_inline char *skipspace(const char *p)
-{
- while (isspace((unsigned char)*p))
- p++;
- return (char *)p;
-}
+__extern char *skipspace(const char *p);
#endif /* _CTYPE_H */