home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
plbin.zip
/
pl
/
src
/
pl-save.h
< prev
next >
Wrap
Text File
|
1993-02-18
|
1KB
|
35 lines
/* pl-save.h,v 1.3 1993/02/18 15:16:33 jan Exp
Copyright (c) 1991 Jan Wielemaker. All rights reserved.
jan@swi.psy.uva.nl
Purpose: pl-save.c exports
*/
#define S_DATA 1 /* Data section */
#define S_TEXT 2 /* Incrementally loaded text */
#define S_CSTACK 3 /* C-stack section */
#define S_PLSTACK 4 /* Prolog-stack section */
#define RET_RETURN 1 /* save/1 */
#define RET_MAIN 2 /* save_program/[1,2] */
#define SAVE_FAILURE 0 /* save() failed */
#define SAVE_SAVE 1 /* save() successfully saved state */
#define SAVE_RESTORE 2 /* save() success after restore() */
#define MAX_SAVE_SECTIONS 50 /* for machines without alloca() */
typedef void * caddr; /* anonymous address */
typedef struct save_section
{ caddr start; /* Start address in memory */
long length; /* Length in bytes */
long offset; /* Offset in the file */
short type; /* Which section is this? */
short flags; /* Various flags */
} * SaveSection;
int save P((char *, char *, int, int, SaveSection));
int restore P((char *, int (*allocf)(SaveSection)));