[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [ID 20000127.002] 5.005_63 `Out of memory' on trivial program with
Gurusamy Sarathy writes:
>
> On Thu, 27 Jan 2000 16:11:14 EST, Ilya Zakharevich wrote:
> >> I think av_fill() doesn't know about 'D' magic, as don't many other
> >> functions in av.c.
> >
> >Why should they know about particular magic-type letters? Why would
> >not they just use mg_len?
>
> I should have said mg_size(), not av_fill(). mg_size() just returns
> AvFILLp() if there's no vtbl->svt_len.
But there is one:
EXT MGVTBL PL_vtbl_regdata = {0, 0, MEMBER_TO_FPTR(Perl_magic_regdata_cnt), 0, 0};
#ifdef STRUCT_MGVTBL_DEFINITION
STRUCT_MGVTBL_DEFINITION;
#else
struct mgvtbl {
int (CPERLscope(*svt_get)) (pTHX_ SV *sv, MAGIC* mg);
int (CPERLscope(*svt_set)) (pTHX_ SV *sv, MAGIC* mg);
U32 (CPERLscope(*svt_len)) (pTHX_ SV *sv, MAGIC* mg);
int (CPERLscope(*svt_clear))(pTHX_ SV *sv, MAGIC* mg);
int (CPERLscope(*svt_free)) (pTHX_ SV *sv, MAGIC* mg);
};
#endif
Ilya
- References to:
-
Gurusamy Sarathy <gsar@ActiveState.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]