Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] find RLIM_NLIMITS correctly on Cygwin



> 2020/01/09 6:33, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> 
> I don't object to the patch, but we should think about actually using
> a C preprocessor to parse header files, otherwise we'd just be playing
> whack-a-mole as OS's use more features of C syntax in their header files.

Yes, but ...

When rlimits.awk finds an unknown macro RLIMIT_???, for example

#define RLIMIT_FOO	8

then it sets recs[8]="FOO", and this enables the limit builtin to print
the resource name as "FOO". *If* we need this feature, it would not be
easy to achieve by using C preprocessor alone.



Messages sorted by: Reverse Date, Date, Thread, Author