bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vm_size_t is unsigned, so libps should use unsigned ints.


From: Niels Möller
Subject: Re: vm_size_t is unsigned, so libps should use unsigned ints.
Date: 02 Jun 2002 15:08:33 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

James Morrison <rocketmail_com@rocketmail.com> writes:

>  I think there needs to be a new function ps_cmp_size_t.  But it would look
> exactly like ps_cmp_float and ps_cmp_int.  The easiest way I can see to do
> this is a macro
> 
> #define COMPARE (type) ps_cmp_type ...
> 
>  Will this work?

I'm not sure you're really asking about the C details, but if you are,
the answer is something like

  #define COMPARE(type) \
  int \
  ps_cmp_##type(type a, type b) { ... }

Note that there must be no space between COMPARE and (, and that you
need the token concatenation operator ##.

/Niels



reply via email to

[Prev in Thread] Current Thread [Next in Thread]