home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
626a.lha
/
GUISpell_v1.0
/
libraries.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-27
|
637b
|
30 lines
#error By license you aren't permitted to compile this. Read GUISpell.doc.
#include <proto/exec.h>
#define INCLUDE_LIBS_STRUCT
#include "libraries.h"
#include "error.h"
extern char *_ProgramName;
void OpenLibraries (void)
{
int i;
for (i = 0; libs[i].name; i++)
if (!(libs[i].base = OpenLibrary (libs[i].name, libs[i].version)))
Error ("ssssds", _ProgramName, ": Can't open needed library (",
libs[i].name, " version ", libs[i].version, ")!\n");
}
void CloseLibraries (void)
{
int i;
for (i = 0; libs[i].name; i++)
{
if (libs[i].base)
CloseLibrary (libs[i].base);
libs[i].base = 0;
}
}