YAP 7.1.0
Foreign.h File Reference

load_foreign_files/3 has works for the following configurations: More...

#include "Yap.h"
#include "YapHeap.h"

Go to the source code of this file.

Macros

#define NO_DYN   1
 
#define FOREIGN_H
 
#define LOAD_SUCCEEDED   0
 
#define LOAD_FAILLED   -1
 
#define EAGER_LOADING   1
 
#define GLOBAL_LOADING   2
 

Typedefs

typedef struct StringListItem StringListItem
 
typedef struct StringListItemStringList
 
typedef struct ForeignLoadItem ForeignObj
 
typedef void(* YapInitProc) (void)
 

Functions

void * Yap_LoadForeignFile (char *, int)
 
int Yap_CallForeignFile (void *, char *)
 
int Yap_CloseForeignFile (void *)
 
Int Yap_LoadForeign (StringList, StringList, char *, YapInitProc *)
 
Int Yap_ReLoadForeign (StringList, StringList, char *, YapInitProc *)
 
void Yap_ReOpenLoadForeign (void)
 
void Yap_ShutdownLoadForeign (void)
 

Detailed Description

load_foreign_files/3 has works for the following configurations:

  • linux: should work both for a.out (untested by me) and ELF;
  • WIN32: works (notice that symbols are not exported by default)
  • OSX: works using Mach dynamic libs
  • osf: should work, but isn't working yet
  • sunos4: should work, using A.OUT format;
  • svr4, eg solaris: should work, using ELF format;
  • AIX: should work for 3.2 and 4.1 at least, using ECOFF;

YAP should be able to load on most BSD Unixes, but you will need to say that here

YAP also supports COFF loading (pretty much the same technique as used for A.OUT loading) but that is untested so far

Definition in file Foreign.h.

Macro Definition Documentation

◆ EAGER_LOADING

#define EAGER_LOADING   1

Definition at line 129 of file Foreign.h.

◆ FOREIGN_H

#define FOREIGN_H

Definition at line 18 of file Foreign.h.

◆ GLOBAL_LOADING

#define GLOBAL_LOADING   2

Definition at line 130 of file Foreign.h.

◆ LOAD_FAILLED

#define LOAD_FAILLED   -1

Definition at line 103 of file Foreign.h.

◆ LOAD_SUCCEEDED

#define LOAD_SUCCEEDED   0

Definition at line 102 of file Foreign.h.

◆ NO_DYN

#define NO_DYN   1

Definition at line 15 of file Foreign.h.

Typedef Documentation

◆ YapInitProc

typedef void(* YapInitProc) (void)

Definition at line 119 of file Foreign.h.

Function Documentation

◆ Yap_ReOpenLoadForeign()

void Yap_ReOpenLoadForeign ( void  )

Definition at line 289 of file load_foreign.c.