pkgsrc-Changes archive

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

Re: CVS commit: pkgsrc/pkgtools/plist-utils/files



Rather than opencoding __arraycount, from an abstraction PoV, it'd be
better to define it if it wasn't already defined:

#ifndef __arraycount
#define        __arraycount(__x)       (sizeof(__x) / sizeof(__x[0]))
#endif

Best,
Alistair


On 8 June 2017 at 11:14, Adam Ciarcinski <adam%netbsd.org@localhost> wrote:
> Module Name:    pkgsrc
> Committed By:   adam
> Date:           Thu Jun  8 18:14:51 UTC 2017
>
> Modified Files:
>         pkgsrc/pkgtools/plist-utils/files: plist_tree.c
>
> Log Message:
> Expand __arraycount macro - it is not portable
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.1 -r1.2 pkgsrc/pkgtools/plist-utils/files/plist_tree.c
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
>



Home | Main Index | Thread Index | Old Index