summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-01-30 22:23:00 +0000
committerOle Loots <ole@monochrom.net>2011-01-30 22:23:00 +0000
commit3d1c069186142e6d0caf7e0fd132ffd8b840d2f5 (patch)
tree94d0ff86406eafc8f3a4410de28c5d957de17eea
parent0d006f4cc6104bfec239c365437cc077da7e76a5 (diff)
downloadnetsurf-3d1c069186142e6d0caf7e0fd132ffd8b840d2f5.tar.gz
netsurf-3d1c069186142e6d0caf7e0fd132ffd8b840d2f5.tar.bz2
Cleanup of TOS compatibility fixes.
svn path=/trunk/netsurf/; revision=11549
-rwxr-xr-xatari/misc.c29
-rwxr-xr-xatari/misc.h9
2 files changed, 0 insertions, 38 deletions
diff --git a/atari/misc.c b/atari/misc.c
index 5bfdd7f59..f37c1fec8 100755
--- a/atari/misc.c
+++ b/atari/misc.c
@@ -36,35 +36,6 @@
#include "atari/misc.h"
extern void * h_gem_rsrc;
-unsigned short gdosversion;
-
-void init_os_info(void)
-{
- gdosversion = Sversion();
-}
-
-int tos_getcookie(long tag, long * value)
-{
- COOKIE * cptr;
- long oldsp;
-
- if( gdosversion > TOS4VER ){
- return( Getcookie(tag, value) );
- }
-
- cptr = (COOKIE*)Setexc(0x0168, -1L);
- if(cptr != NULL) {
- do {
- if( cptr->c == tag ){
- if(cptr->v != NULL ){
- *value = cptr->v;
- return( C_FOUND );
- }
- }
- } while( (cptr++)->c != 0L );
- }
- return( C_NOTFOUND );
-}
void warn_user(const char *warning, const char *detail)
{
diff --git a/atari/misc.h b/atari/misc.h
index 852a93236..959491c26 100755
--- a/atari/misc.h
+++ b/atari/misc.h
@@ -19,13 +19,6 @@
#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];\
@@ -43,6 +36,4 @@ 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