From 3462356059756c2095919ad0b904bd1262d4bf80 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Sat, 22 Jan 2011 16:37:24 +0000 Subject: increased compatibility with classic TOS systems. (Getcookie() breaks on classic TOS systems.) svn path=/trunk/netsurf/; revision=11446 --- atari/misc.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'atari/misc.h') diff --git a/atari/misc.h b/atari/misc.h index a2da94095..852a93236 100644 --- a/atari/misc.h +++ b/atari/misc.h @@ -19,6 +19,13 @@ #ifndef NS_ATARI_MISC_H #define NS_ATARI_MISC_H +typedef struct { + long c; + long v; +} COOKIE; + +#define TOS4VER 0x03000 /* this is assumed to be the last single tasking OS */ + #define SBUF8_TO_LBUF8(sbuf,lbuf)\ lbuf[0] = (long)sbuf[0];\ lbuf[1] = (long)sbuf[1];\ @@ -29,10 +36,13 @@ lbuf[6] = (long)sbuf[6];\ lbuf[7] = (long)sbuf[7]; + struct gui_window * find_root_gui_window( WINDOW * win ); struct gui_window * find_cmp_window( COMPONENT * c ); OBJECT *get_tree( int idx ); char *get_rsc_string( int idx ); void gem_set_cursor( MFORM_EX * cursor ); void dbg_grect( char * str, GRECT * r ); +void init_os_info(void); +int tos_getcookie( long tag, long * value ); #endif \ No newline at end of file -- cgit v1.2.3