The indentation in LibGTop was done with the following command:
find . -name \*.[ch] | xargs -i emacs -batch {} \ -l /gnome/compile/libgtop/misc/format.el -f save-buffer December 26, 1999 Martin
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
@@ -35,26 +37,26 @@ int
|
||||
glibtop_get_proc_kernel_p (glibtop *server, glibtop_proc_kernel *buf,
|
||||
pid_t pid)
|
||||
{
|
||||
struct proc *pp;
|
||||
struct proc *pp;
|
||||
|
||||
glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_KERNEL), 0);
|
||||
glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_KERNEL), 0);
|
||||
|
||||
memset (buf, 0, sizeof (glibtop_proc_kernel));
|
||||
memset (buf, 0, sizeof (glibtop_proc_kernel));
|
||||
|
||||
/* Read process table from kernel. */
|
||||
/* Read process table from kernel. */
|
||||
|
||||
_glibtop_read_proc_table (server);
|
||||
_glibtop_read_proc_table (server);
|
||||
|
||||
/* Find the pid in the process table. */
|
||||
/* Find the pid in the process table. */
|
||||
|
||||
pp = _glibtop_find_pid (server, pid);
|
||||
pp = _glibtop_find_pid (server, pid);
|
||||
|
||||
if (pp == NULL) return;
|
||||
if (pp == NULL) return;
|
||||
|
||||
/* Fill in data fields. */
|
||||
/* Fill in data fields. */
|
||||
|
||||
buf->k_flags = pp->p_flag;
|
||||
buf->nwchan = (unsigned long) pp->p_wchan;
|
||||
buf->k_flags = pp->p_flag;
|
||||
buf->nwchan = (unsigned long) pp->p_wchan;
|
||||
|
||||
buf->flags = _glibtop_sysdeps_proc_kernel;
|
||||
buf->flags = _glibtop_sysdeps_proc_kernel;
|
||||
}
|
||||
|
Reference in New Issue
Block a user