in reply to Re: Layer does not match this perl
in thread Layer does not match this perl
*sigh* Reasonable code would be more like:
if (tab->fsize != sizeof(PerlIO_funcs)) { Perl_croak( aTHX_ "%s (%d) does not match %s (%d)", "PerlIO layer function table size", tab->fsize, "size expected by this perl", sizeof(PerlIO_funcs) ); } if (tab->size) { PerlIOl *l; if (tab->size < sizeof(PerlIOl)) { Perl_croak( aTHX_ "%s (%d) smaller than %s (%d)", "PerlIO layer instance size", tab->size, "size expected by this perl", sizeof(PerlIOl) ); }
See also http://perl5.git.perl.org/perl.git/blob?f=pod/perliol.pod.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Layer does not match this perl (sigh)
by Corion (Patriarch) on Mar 22, 2010 at 17:54 UTC | |
by tye (Sage) on Mar 22, 2010 at 21:16 UTC | |
by Corion (Patriarch) on Mar 23, 2010 at 08:18 UTC |