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: James A Morrison
Subject: Re: vm_size_t is unsigned, so libps should use unsigned ints.
Date: Sun, 2 Jun 2002 16:24:21 -0400 (EDT)

   Cc: ja2morri@student.math.uwaterloo.ca,
           Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>,
           bug-hurd@gnu.org
   X-Reply-Permission: Posted or emailed replies to this message constitute
                    permission for an emailed response.
   X-PGP-Fingerprint: 1F0A1E51  63 28 EB DA E6 44 E5 5E  EC F3 04 26 4E BF 1A 92
   X-Zippy-Says: 
      Hmmm..  a CRIPPLED ACCOUNTANT with a FALAFEL sandwich is HIT by a
      TROLLEY-CAR..
   From: tb@becket.net (Thomas Bushnell, BSG)
   Date: 02 Jun 2002 12:55:00 -0700
   User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
   Content-Type: text/plain; charset=iso-8859-1

   nisse@lysator.liu.se (Niels Möller) writes:

   > 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 ##.

   Preferred syntax (which, please use in Hurd code), is to put spaces
   around the ## concatenation operator.

Well, that doesn't work anymore.  Here is a recent checkin by Marcus that
briefly explains why.

2002-05-13  Marcus Brinkmann  <marcus@gnu.org>

        * version.h.in (STANDARD_HURD_VERSION): Remove EXTRA argument,
        because cpp 3.0 is not removing any token before ##args that is
        not a single comma, in order to be more C99 compliant.

James A. Morrison



reply via email to

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