29#include <exec/types.h>
75void edstub_init(
void);
106extern const char *(*edstub_ezfreq_hook)(
const char *title);
144#define EDSTUB_PATHLEN 256
266void *
memcpy(
void *
d,
const void *s,
size_t n);
293void sbc(
struct sb *b,
char c);
295void sbs(
struct sb *b,
const char *s);
297void sbn(
struct sb *b, LONG
v);
301void sbq(
struct sb *b,
const char *s);
ULONG WORD UWORD c
Definition 2dlib.c:2491
ULONG WORD UWORD UWORD border ULONG ULONG struct bb_bitmap *dst void UWORD n
Definition 2dlib.c:2498
UWORD size
Definition 2dlib.c:1170
struct TagItem path
Definition asllib.c:188
static void line(WORD x1, WORD y1, WORD x2, WORD y2, ULONG c)
Definition blitzoslib.c:392
struct MsgPort port
Definition brexxlib.c:299
struct IOStdReq io
Definition brexxlib.c:298
static struct @065163037313156332013005143365272036211065172003 d
struct edstruct * edstub_ed
The edstruct blitz2 passed to outside (a1).
Definition edstub.c:21
char edstub_logname[EDSTUB_PATHLEN]
The log file's name; empty while there is none.
Definition edstub.c:29
void(* edstub_closeio_hook)(void)
openio/closeio (ted.s: the console window of a program run from the editor): called in the program's ...
Definition edstub.c:27
void(* edstub_openio_hook)(void)
openio/closeio (ted.s: the console window of a program run from the editor): called in the program's ...
Definition edstub.c:26
int edstub_busy
The busy pointer: sleepon sets it (1), pointeron clears it (ted.s: the window pointer); the frame sho...
Definition edstub.c:419
void(* edstub_error_hook)(const char *msg)
The compiler's error message (default: logged).
Definition edstub.c:23
void(* edstub_tokone_hook)(UBYTE *line)
tokone: tokenise the line (default: logged, line left as is).
Definition edstub.c:24
UWORD(* edstub_getinput2_hook)(void)
getinput2 (the compiler polls the stop requester, chkrealstop): the id of the gadget hit,...
Definition edstub.c:28
void(* edstub_abort_hook)(const char *why)
Before the frame aborts inside main (compiler waits for input forever, extalloc of the original compi...
Definition edstub.c:25
int edstub_quiet
Non-zero: edstub_log does not write to Output() (a program with a console output of its own; the log ...
Definition edstub.c:30
struct MsgPort * edstub_req_port(void)
The UserPort of the requester window.
Definition edstub.c:474
void edstub_strcpy(char *d, const char *s, ULONG max)
Copy s to d, at most max - 1 characters and the 0 (nothing if max is 0).
Definition edstub.c:175
ULONG edstub_callregs(APTR fn, struct regs *r)
Call code that may change every register (compiler callbacks, TED routines).
void edstub_main(const char *arg)
The program part, provided by the program on this frame.
void edstub_stripe_log(const char *id)
After a compile: log the stripe, then clear the bitmap, refill the guards and the counters.
Definition edstub.c:718
int edstub_open_requests(void)
The number of requesters open now (openreq not yet closed).
Definition edstub.c:469
void sbn(struct sb *b, LONG v)
Append v in decimal.
Definition edstub.c:226
void * memcpy(void *d, const void *s, size_t n)
Definition edstub.c:141
ULONG edstub_udiv10(ULONG u, ULONG *rem)
u / 10 without libgcc (no __udivsi3 in a -nostdlib build); the remainder to *rem.
Definition edstub.c:195
#define EDSTUB_PATHLEN
Length of edstub_logname.
Definition edstub.h:144
void edstub_reset_requests(void)
A new job: the counters of the requester answers start again.
Definition edstub.c:376
void edstub_log(const char *s)
Log a line: to Output() and appended to the log file.
Definition edstub.c:277
void * memset(void *d, int c, size_t n)
Definition edstub.c:132
ULONG edstub_strlen(const char *s)
The length of the string s.
Definition edstub.c:151
int edstub_streq(const char *a, const char *b)
1 if the strings are equal, else 0.
Definition edstub.c:168
void sbx(struct sb *b, ULONG v, int digits)
Append the low digits hex digits of v, upper case.
Definition edstub.c:245
void sbc(struct sb *b, char c)
Append the character c.
Definition edstub.c:211
struct IORequest * edstub_create_ioreq(struct MsgPort *port, ULONG size)
An IO request for a port, with Kickstart 1.x calls (CreateIORequest of V36).
Definition edstub.c:829
int edstub_prefix(const char *s, const char *pre)
1 if s starts with pre, else 0.
Definition edstub.c:160
void edstub_set_progress(int on)
Announce the progress call (comdata+98 = 'TEDp') or not (0).
Definition edstub.c:697
void sbs(struct sb *b, const char *s)
Append the string s ("(null)" for NULL).
Definition edstub.c:218
void edstub_strcat(char *d, const char *s, ULONG max)
Append s to d; max is the size of all of d (as edstub_strcpy).
Definition edstub.c:187
int edstub_set_log(const char *path)
Set the log file: create it (a new file) and write the lines kept so far.
Definition edstub.c:299
int edstub_set_bitmap(UWORD bmapmul, ULONG guard)
Give the compiler a bitmap of bmapmul bytes per row (comdata+92) with guard bytes before and after it...
Definition edstub.c:673
void edstub_abort(void)
Back to the compiler as if the editor had quit.
void sbq(struct sb *b, const char *s)
Append s quoted, controls (< 32 and 127) as \xNN.
Definition edstub.c:251
void edstub_delete_port(struct MsgPort *port)
Free a port of edstub_create_port() and its signal.
Definition edstub.c:821
struct MsgPort * edstub_create_port(void)
A message port with a signal of its own, with Kickstart 1.x calls (CreateMsgPort of V36).
Definition edstub.c:801
void edstub_delete_ioreq(struct IORequest *io)
Free a request of edstub_create_ioreq() (as DeleteIORequest: the node's successor and io_Device set t...
Definition edstub.c:841
static struct AppMessage * msg
Definition riapplib.c:274
static struct @342026374002303043102303243063125232020331002053 v
char digits[16]
Definition ridisasmlib.c:396
Definition cliargslib.c:38
The compiler's edstruct (blitz2.s 274; ted.s outside copies its 14 words).
Definition edstub.h:43
APTR menus
Definition edstub.h:45
APTR menu
Definition edstub.h:48
APTR tokens
Definition edstub.h:44
APTR cleanup
Definition edstub.h:49
UBYTE quote
Definition edstub.h:50
APTR loadxtra
Definition edstub.h:46
UBYTE colon
Definition edstub.h:50
APTR savextra
Definition edstub.h:47
UBYTE label
Definition edstub.h:50
UBYTE remark
Definition edstub.h:50
The register frame of the stubs in start.c (movem d0-d7/a0-a6).
Definition edstub.h:34
ULONG d[8]
Definition edstub.h:35
ULONG a[7]
Definition edstub.h:36
A bounded string builder: buf of max bytes, len used, always 0-terminated (what does not fit is dropp...
Definition edstub.h:287
ULONG len
Definition edstub.h:289
ULONG max
Definition edstub.h:289
char * buf
Definition edstub.h:288
static int on(uint16_t v)
Definition xtra_ab3.c:557