summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2005-01-16 11:16:19 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2005-01-16 11:16:19 +0000
commit703a17f3f0a13f798ddc8b6e571972704e5651a8 (patch)
treeea786ef007f84a8569f9d6766b36c78b908c2f56 /sysdeps
parent92a9e7d937dbdfc23079f44d1397f6bf7f2d1176 (diff)
downloadlibgtop-703a17f3f0a13f798ddc8b6e571972704e5651a8.tar.gz
Uninlined.
* glibtop_private.c: (skip_token): * glibtop_private.h: Uninlined.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/linux/ChangeLog5
-rw-r--r--sysdeps/linux/glibtop_private.c10
-rw-r--r--sysdeps/linux/glibtop_private.h10
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 <TazForEver@dlfp.org>
+
+ * glibtop_private.c: (skip_token):
+ * glibtop_private.h: Uninlined.
+
2005-01-13 Benoît Dejean <TazForEver@dlfp.org>
* 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)