James Morrison <[EMAIL PROTECTED]> 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

_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to