
|
84782 packages online
|
|
 |
|
dev/src/multibaselib.lha |
|
No screenshot available
|
|
This is an example how to create multibase libraries for Amiga. The example is
written for MorphOS but should compile without modifications for other Amigas.
It also provides an optional semaphore protection if you wish to use disk I/O.
Some general remarks:
* LIB_Init()
Do not open any 3rd party libraries here. While it is possible there is
risk that you run into stack underflow situations on some systems and
crash.
* LIB_Open()/LIB_Close()
This is executed in Forbid() state but if your code breaks Forbid() you
can use semaphore protection. On this example code you can enable
semaphore protection with HAVE_USER_INIT define.
* LIB_Expunge()
It is illegal to break Forbid() here. You must only perform operations
which dont involve disk I/O or wont call directly or indirectly
Wait()/WaitPort(). Closing any 3rd party library at LIB_Expunge() is unsafe.
|
Contents of dev/src/multibaselib.lha
PERMSSN UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic] 4571 4716 96.9% -lh5- e70a Dec 4 00:33 multibaselibrary.info
[generic] 1873 7603 24.6% -lh5- 85a5 Dec 4 00:11 multibaselibrary/Library.c
[generic] 581 1405 41.4% -lh5- ede1 Dec 2 21:38 multibaselibrary/Library.h
[generic] 316 510 62.0% -lh5- 7108 Dec 2 21:50 multibaselibrary/makefile.morphos
[generic] 589 1125 52.4% -lh5- 32bb Dec 4 00:32 multibaselibrary/multibaselib.readme
[generic] 196 291 67.4% -lh5- 2a81 Dec 3 23:54 multibaselibrary/test.c
[generic] 69 109 63.3% -lh5- e466 Dec 2 21:48 multibaselibrary/Version.h
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 7 files 8195 15759 52.0% Dec 3 17:30
|
|
|
 |
Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |