[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: Sys::Syslog stuff




 > The subtle problem with this wrapper idea is that the module
 > might not have everything the real include file had.  For 
 > example, Fcntl.pm can produce these symbols:
 > 
 >     FAPPEND FASYNC FCREAT FDEFER FDSYNC FD_CLOEXEC FEXCL FLARGEFILE
 > ...
 > But on my system, sys/fcntl.h produces these symbols (not counting
 > ...
 > 
 >     FAPPEND FASYNC FCNTLFLAGS FDEFER FD_CLOEXEC FFLAGS FFSYNC
 > ...
 > As you see, neither is a proper superset of the other.

I quote Todo:

        generalise Errno way of extracting cpp symbols and use that in
            Errno and Fcntl (ExtUtils::CppSymbol?)

Without an _automated_ *.h->(PL)->.{xs,pm,ph} transformation there is
no way we can get all the particular defines of a particular platform.
I have started many times doing the above generalisation step.  If
somebody feels like it, they can have my latest attempt.  h2xs and
h2ph have a lot of the required logic already.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen


References to:
Andy Dougherty <doughera@lafayette.edu>
Tom Christiansen <tchrist@chthon.perl.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]