mirror of
https://github.com/ksherlock/gopher.git
synced 2024-12-28 04:31:44 +00:00
39 lines
785 B
C
39 lines
785 B
C
#ifndef __prototypes_h__
|
|
#define __prototypes_h__
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
#define IncBusy() asm { jsl 0xE10064 }
|
|
#define DecBusy() asm { jsl 0xE10068 }
|
|
#define Resched() asm { cop 0x7f }
|
|
|
|
#define BusyFlag ((byte *)0xE100FFl)
|
|
|
|
#define SEI() asm { sei }
|
|
#define CLI() asm { cli }
|
|
|
|
|
|
int read_binary(unsigned ipid, FILE *file);
|
|
|
|
int setfiletype(const char *filename);
|
|
|
|
|
|
#ifdef __CONNECTION_H__
|
|
int ConnectLoop(char *host, Word port, Connection *connection);
|
|
int CloseLoop(Connection *connection);
|
|
#endif
|
|
|
|
#ifdef __url_h__
|
|
int do_gopher(const char *url, URLComponents *components);
|
|
int do_http(const char *url, URLComponents *components);
|
|
#endif
|
|
|
|
#ifdef __TYPES__
|
|
void tiTimeRec2ISO8601(const TimeRecPtr t, char *str);
|
|
void tiTimeRec2GMTString(const TimeRecPtr t, char *str);
|
|
#endif
|
|
|
|
|
|
#endif
|