From 703a17f3f0a13f798ddc8b6e571972704e5651a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Sun, 16 Jan 2005 11:16:19 +0000 Subject: [PATCH] Uninlined. * glibtop_private.c: (skip_token): * glibtop_private.h: Uninlined. --- sysdeps/linux/ChangeLog | 5 +++++ sysdeps/linux/glibtop_private.c | 10 ++++++++++ sysdeps/linux/glibtop_private.h | 10 ++-------- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/sysdeps/linux/ChangeLog b/sysdeps/linux/ChangeLog index 8641029e..3299bcc2 100644 --- a/sysdeps/linux/ChangeLog +++ b/sysdeps/linux/ChangeLog @@ -1,3 +1,8 @@ +2005-01-16 Benoît Dejean + + * glibtop_private.c: (skip_token): + * glibtop_private.h: Uninlined. + 2005-01-13 Benoît Dejean * fsusage.c: (get_partition), (get_sys_path), (linux_2_6_0): Reworked. diff --git a/sysdeps/linux/glibtop_private.c b/sysdeps/linux/glibtop_private.c index 2faddb03..707b2ba1 100644 --- a/sysdeps/linux/glibtop_private.c +++ b/sysdeps/linux/glibtop_private.c @@ -32,6 +32,16 @@ get_scaled(const char *buffer, const char *key) } +char * +skip_token (const char *p) +{ + p = next_token(p); + while (*p && !isspace(*p)) p++; + p = next_token(p); + return (char *)p; +} + + /* * Read functions */ diff --git a/sysdeps/linux/glibtop_private.h b/sysdeps/linux/glibtop_private.h index 66c426b2..7e4369b3 100644 --- a/sysdeps/linux/glibtop_private.h +++ b/sysdeps/linux/glibtop_private.h @@ -40,14 +40,8 @@ next_token(const char *p) return (char*) p; } -static inline char * -skip_token (const char *p) -{ - p = next_token(p); - while (*p && !isspace(*p)) p++; - p = next_token(p); - return (char *)p; -} +char * G_GNUC_INTERNAL +skip_token (const char *p); static inline char * skip_multiple_token (const char *p, size_t count)