19#ifndef NS_ATARI_MISC_H
20#define NS_ATARI_MISC_H
23#define SBUF8_TO_LBUF8(sbuf,lbuf)\
24 lbuf[0] = (long)sbuf[0];\
25 lbuf[1] = (long)sbuf[1];\
26 lbuf[2] = (long)sbuf[2];\
27 lbuf[3] = (long)sbuf[3];\
28 lbuf[4] = (long)sbuf[4];\
29 lbuf[5] = (long)sbuf[5];\
30 lbuf[6] = (long)sbuf[6];\
31 lbuf[7] = (long)sbuf[7];
33#define RECT_TO_GRECT(r,g) \
35 (g)->g_x = (r->x0 < r->x1) ? r->x0 : r->x1 ; \
36 (g)->g_y = (r->y0 < r->y1) ? r->y0 : r->y1 ; \
37 (g)->g_w = (r->x0 < r->x1) ? r->x1 - r->x0 : r->x0 - r->x1 ; \
38 (g)->g_h = (r->y0 < r->y1) ? r->y1 - r->y0 : r->y0 - r->y1 ; \
44#define BY_WINDOM_HANDLE 0x0
45#define BY_GEM_HANDLE 0x1
65void dbg_grect(
const char * str, GRECT * r);
69void dbg_pxy(
const char * str,
short * pxy);
73void dbg_rect(
const char * str,
int * pxy);
static const __attribute__((used))
nserror
Enumeration of error codes.
void dbg_pxy(const char *str, short *pxy)
void dbg_grect(const char *str, GRECT *r)
const char * file_select(const char *title, const char *name)
Show default file selector.
bool is_process_running(const char *name)
void gem_set_cursor(MFORM_EX *cursor)
void die(const char *const error) __attribute__((noreturn))
Cause an abnormal program termination.
nserror atari_warn_user(const char *warning, const char *detail)
Warn the user of an event.
void dbg_rect(const char *str, int *pxy)
int(* scan_process_callback)(int pid, void *data)
long nkc_to_input_key(short nkc, long *ucs4_out)
Convert NKC to netsurf input key code and/or to ucs4 (depends on keycode).
struct gui_window * find_guiwin_by_aes_handle(short handle)
first entry in window list