This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/os/format.h

26 lines
544 B
C

#define FORMAT_MAX_SIZE 1024
typedef struct {
Int filler;
/* character to dump */
int phys;
/* position in buffer */
int log; /* columnn as wide chsh */
} gap_t;
typedef struct format_status {
gap_t gap[16];
// number of octets
int phys_start;
// number of characters
int lstart;
int gapi;
} format_info;
#define FORMAT_COPY_ARGS_ERROR -1
#define FORMAT_COPY_ARGS_OVERFLOW -2
extern int format_synch(int sno, int sno0, format_info *fg);
extern bool fill_pads(int sno, int sno0, int total, format_info *fg USES_REGS);