1
0
Fork 0
mirror of git://git.psyced.org/git/psyclpc synced 2024-08-15 03:20:16 +00:00
psyclpc/src/swap.h

37 lines
993 B
C
Raw Normal View History

2009-03-03 03:27:01 +00:00
#ifndef SWAP_H__
#define SWAP_H__ 1
#include "driver.h"
#include "typedefs.h"
/* --- Variables --- */
extern mp_int num_unswapped;
extern mp_int total_bytes_unswapped;
extern mp_int total_num_prog_blocks;
extern mp_int total_prog_block_size;
extern Bool swap_compact_mode;
extern mp_int num_swapped;
extern mp_int total_bytes_swapped;
extern mp_int num_vb_swapped;
extern mp_int total_vb_bytes_swapped;
#ifdef USE_SWAP
/* --- Prototypes --- */
extern Bool swap_program(object_t *ob);
extern Bool swap_variables(object_t *ob);
extern Bool swap(object_t *ob, int mode);
extern int load_ob_from_swap(object_t *ob);
extern Bool load_line_numbers_from_swap(program_t *prog);
extern void remove_prog_swap(program_t *prog, Bool load_line_numbers);
extern void unlink_swap_file(void);
extern size_t swap_overhead (void);
extern void swap_status(strbuf_t *sbuf);
extern void swap_dinfo_data (svalue_t *svp, int value);
#endif
extern void name_swap_file(const char *name);
#endif /* SWAP_H__ */