openbsd-ports/x11/gtop/patches/patch-procview_c
2004-01-15 17:57:19 +00:00

39 lines
1.4 KiB
Plaintext

$OpenBSD: patch-procview_c,v 1.1 2004/01/15 17:57:19 espie Exp $
--- procview.c.orig 2004-01-15 18:48:25.000000000 +0100
+++ procview.c 2004-01-15 18:49:02.000000000 +0100
@@ -96,29 +96,29 @@ GnomePropertyDescriptor ProcFieldsProper
\
static int cmp_ ## NAME (const ProcProcData **P, const ProcProcData **Q) \
{ \
- return (*P)->d->sort_order * ((*P)-> ## NAME - (*Q)-> ## NAME); \
+ return (*P)->d->sort_order * ((*P)-> NAME - (*Q)-> NAME); \
}
#define CMP_INT(NAME) \
\
static int cmp_ ## NAME (const ProcProcData **P, const ProcProcData **Q) \
{ \
- return (*P)->d->sort_order * ((*P)->p-> ## NAME - (*Q)->p-> ## NAME); \
+ return (*P)->d->sort_order * ((*P)->p-> NAME - (*Q)->p-> NAME); \
}
#define CMP_INT2(NAME,V1,V2) \
\
static int cmp_ ## NAME (const ProcProcData **P, const ProcProcData **Q) \
{ \
- return (*P)->d->sort_order * ((*P)->p-> ## V1 + (*P)->p-> ## V2 - (\
- (*Q)->p-> ## V1 + (*Q)->p-> ## V2)); \
+ return (*P)->d->sort_order * ((*P)->p-> V1 + (*P)->p-> V2 - (\
+ (*Q)->p-> V1 + (*Q)->p-> V2)); \
}
#define CMP_STR(NAME) \
\
static int cmp_ ## NAME (const ProcProcData **P, const ProcProcData **Q) \
{ \
- return (*P)->d->sort_order * strcasecmp ((*P)->p-> ## NAME, (*Q)->p-> ## NAME); \
+ return (*P)->d->sort_order * strcasecmp ((*P)->p-> NAME, (*Q)->p-> NAME); \
}
#define SORT_ASC 1