
|
84782 packages online
|
|
 |
|
dev/e/poolStrings.lha |
|
No screenshot available
|
|
poolStrings 1.0
***************
This module can allocate an estring into a memory pool.
two functions are provided:
string:=poolString(strmax, pool) - allocate an estring of 'strmax' length
into the 'pool' memory pool
(it's safe to pass null values for the
arguments. like the original function
you MUST check 'string' against NIL)
poolDisposeLink(string, pool) - deallocate a previously allocated string.
you must pass the correct pair of 'string'
and 'pool' (It's safe to pass null values)
After you have allocated a string with poolString() you can use it as a
normal estring (look at the example source).
There are just two limitations:
* If you want to deallocate a string allocated with poolString()
you MUST use poolDisposelink(), and you cannot use poolDisposelink()
on a string allocated with String()
* You cannot link strings that are in different memory pools or strings
allocated with poolString() with strings allocated with String().
The module 'poolString.m' requires the mempools.m module (that must be
placed in emodules:amigalib). Since I've found no copyrigth notice about
that module I placed it in this archive. In any case the original archive
can be found on aminet as dev/e/pools_m.lha
'poolStringV39' uses directly the V39 exec function, so you don't need
the mempools module, but you can run it only on V39 amigas
This module is Public Domain
For any suggestion you can write to:
Matteo Cavalleri 2:335/633.19@fidonet
39:102/16.19@amiganet
|
Contents of dev/e/poolStrings.lha
PERMSSN UID GID PACKED SIZE RATIO CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic] 818 1982 41.3% -lh5- 1cf8 Sep 25 1997 poolStrings.readme
[generic] 539 832 64.8% -lh5- e205 Aug 30 1997 poolStrings/modules/amigalib/mempools.m
[generic] 304 474 64.1% -lh5- e335 Sep 25 1997 poolStrings/modules/tools/poolStrings.m
[generic] 265 402 65.9% -lh5- e6b3 Sep 25 1997 poolStrings/modules/tools/poolStringsV39.m
[generic] 641 1527 42.0% -lh5- b2f1 Sep 25 1997 poolStrings/poolStrings_test.e
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 5 files 2567 5217 49.2% Sep 27 1997
|
|
|
 |
Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |