"Craig A. Berry" <[EMAIL PROTECTED]> writes:
> At 01:52 PM 3/28/00 -0500, Charles Lane wrote:
>
>>+ I'm using LIB$(GET|FREE)_VM here so that we can allocate and deallocate
>>+ inside an AST routine without worrying about reentrancy and which Perl
>>+ memory allocator is being used.
>
> Mixing these with malloc() used to be a no-no; does the fact that you have
> them in an AST routine allow you to dodge that restriction?
Do you mean "don't use one to allocate and the other to free"? I do keep
them separate in that regard (i.e., buffers from LIB$GET_VM are freed using
LIB$FREE_VM).
I'm sure there's plenty of libraries, utilities, etc. that use LIB$GET_VM
*regardless* of what you're doing in C, so they have to be able to
be usable in the same program.
--
Drexel University \V --Chuck Lane
----------------->--------*------------<[EMAIL PROTECTED]
(215) 895-1545 / \ Particle Physics [EMAIL PROTECTED]
FAX: (215) 895-5934 /~~~~~~~~~~~ [EMAIL PROTECTED]