Application/Libary functions

DLX is Dynamic Loading and eXecution by Nanosoft, Inc. I added some functions and now I think it's very good tool for Seal's libraries/applications.


AP_CALL
     Name:         AP_CALL

     Description:  Determines the number times that this application 
                   has been executed.



AP_SETNUMOFCALLS
     Name:         AP_SETNUMOFCALLS(l_long x)

     Description:  Set maximum number of calls for this application. 



AP_SETOVERLOAD
     Name:         AP_SETOVERLOAD(x)   

     Description:  If "x" is non-zero, it enables overloading of this 
                   application, otherwise it disables overloading. 
                   Overloading means that this application will be once 
                   in memory and the second, 3rd, ... once it only runs
                   the main function. Is disabled as default.



AP_ISOVERLOAD
     Name:         AP_ISOVERLOAD

     Description:  Returns non-zero if this application/library can be 
                   overloaded. Otherwise it returns zero.



AP_DATAFILE
     Name:         AP_DATAFILE

     Description:  Returns the datafile from this library/application. 
                   This datafile is placed at the and of application or 
                   library executable file and is added from Allegro's 
                   DATAFILE using "dlxinsd.exe my_app.dlx my_app.dat" from
                   the command line. Once we have this datafile, the 
                   function returns a pointer to new allocated DATAFILE 
                   structure. You should release this datafile with the
                   "unload_datafile()" function when finished. Please
                   read "Allegro.txt" for more information.



AP_EXPORTLIB
     Name:         AP_EXPORTLIB()

     Description:  Exports functions and variables. This is used in 
                   libraries, when exporting functions/variables for use
                   in other programs. Exportable functions/variables is 
                   extracted by running "dlxmake.exe -x my_dlx.exp my_dlx.o" 
                   from command line. Then include the new file "my_dlx.exp"
                   to your library (#include "my_dlx.exp") and compile your 
                   library. Then run "dlxgen.exe my_dlx.dlx my_dlx.o" to get
                   the finished library.