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

29 lines
580 B
C
Raw Normal View History

2016-09-28 01:32:27 +01:00
#define FORMAT_MAX_SIZE 1024
2017-09-23 02:17:55 +01:00
#include <Yap.h>
2016-09-28 01:32:27 +01:00
typedef struct {
2017-09-23 02:17:55 +01:00
intptr_t filler;
2016-09-28 01:32:27 +01:00
/* 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;
2017-09-26 15:15:15 +01:00
int lvl;
2016-09-28 01:32:27 +01:00
} format_info;
#define FORMAT_COPY_ARGS_ERROR -1
#define FORMAT_COPY_ARGS_OVERFLOW -2
2016-09-28 15:08:22 +01:00
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);