Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2016 10:06:49 -0500
From:      Pedro Giffuni <pfg@FreeBSD.org>
To:        cem@FreeBSD.org
Cc:        Bruce Evans <brde@optusnet.com.au>, araujo@freebsd.org, John Baldwin <jhb@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r298247 - head/sbin/fdisk_pc98
Message-ID:  <753495a5-9ccd-1ec8-6f62-4006ff0345e2@FreeBSD.org>
In-Reply-To: <3ddd1087-e83a-d14c-1cc2-951a6d23306f@FreeBSD.org>
References:  <201604190446.u3J4kD9G050780@repo.freebsd.org> <4114217.PtcV9LDMal@ralph.baldwin.cx> <CAOfEmZhofgYySTtMKAXo-Qkm8BRaOP8kzEfchdtPTH3T-0W-qQ@mail.gmail.com> <20160420115844.Y967@besplex.bde.org> <c53f4273-d84a-0321-5ba0-d8f99ac6366a@FreeBSD.org> <CAG6CVpUnbsgJUbZQzrtWN9mTX3_XBEpQ2ObmcjfF9WjpC9dZCA@mail.gmail.com> <3ddd1087-e83a-d14c-1cc2-951a6d23306f@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help


On 04/20/16 10:04, Pedro Giffuni wrote:
>
>
> On 04/20/16 09:41, Conrad Meyer wrote:
>> On Wed, Apr 20, 2016 at 7:33 AM, Pedro Giffuni <pfg@freebsd.org> wrote:
>>> One of the things I dislike is that most of the macros are in
>>> lowercase. Lowercase would make sense if these were inline functions
>>> but inline functions have disadvantages for these use cases.
>>> OTOH, if they were uppercase, they would not be very easy on the eyes,
>>> which is the current advantage.
>>
>>
>> You bring up a good point.  Obviously nitems() can't be an inline
>> function, but roundup2() and friends could.  Is there any reason not
>> to change them over to inline functions?
>>
>
> That would be interesting. The question would be if there are type
> issues. I guess most uses require ints but some many use size_t.
>

s/many/may/

Pedro.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?753495a5-9ccd-1ec8-6f62-4006ff0345e2>