summaryrefslogtreecommitdiff
path: root/lib/init.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-05-06 19:49:31 +0000
committerMartin Baulig <martin@src.gnome.org>1999-05-06 19:49:31 +0000
commitd67182f4111aa7e7c79caa7479abf22f24c9723f (patch)
treeab724c35af781844090783bc32796e42cff5219f /lib/init.c
parentfec8f23ad45cbddbf1d168bee18bf61fd4aaaba0 (diff)
downloadlibgtop-d67182f4111aa7e7c79caa7479abf22f24c9723f.tar.gz
Added `pointer_size' which is the number of bits of a `void *'.
1999-05-06 Martin Baulig <martin@home-of-linux.org> * include/glibtop/sysdeps.h (glibtop_sysdeps): Added `pointer_size' which is the number of bits of a `void *'.
Diffstat (limited to 'lib/init.c')
-rw-r--r--lib/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/init.c b/lib/init.c
index 38299612..9050598a 100644
--- a/lib/init.c
+++ b/lib/init.c
@@ -243,6 +243,8 @@ glibtop_init_s (glibtop **server_ptr, unsigned long features, unsigned flags)
for (init_fkt = _glibtop_init_hook_s; *init_fkt; init_fkt++)
(*init_fkt) (server);
+
+ server->sysdeps.pointer_size = sizeof (void*)*8;
server->flags |= _GLIBTOP_INIT_STATE_SYSDEPS;
}