home *** CD-ROM | disk | FTP | other *** search
- /* > $.CLIB.C.includes
- *
- * standard includes file for HASWIN. All haswin source files include
- * this file.
- */
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include <haswin.h>
-
- #define SWI_X 0x20000
- #define OS_Byte 0x00006
- #define OS_Word 0x00007
- #define OS_File 0x00008
- #define OS_Args 0x00009
- #define OS_GBPB 0x0000C
- #define OS_Find 0x0000D
- #define OS_GetEnv 0x00010
- #define OS_Heap 0x0001D
- #define OS_FSControl 0x00029
- #define OS_Sprite_operation 0x0002E
- #define OS_ReadVduVariables 0x00031
- #define OS_ReadMonotonicTime 0x00042
- #define OS_Plot 0x00045
- #define OS_Read_mem_map_info 0x00051
- #define OS_Read_mem_map_entries 0x00052
- #define OS_WriteI 0x00100
-
- #define HASWIN_FONT_Swi 0x40080
-
- #define FONT_Find_font HASWIN_FONT_Swi+0x01
- #define FONT_Lose_font HASWIN_FONT_Swi+0x02
-
- /*
- * this structure stores the data needed for window redirection to a
- * sprite.
- */
- typedef struct spritejob {
- int win; /* window handle sprite is drawn from */
- char *name; /* name of sprite */
- int *savearea; /* save area */
- int r0, r1, r2, r3; /* R0-R3 for calls */
- } spritejob;
-
- extern char haswintemp[256];
- extern window *haswin_topwindow;
- extern int haswin_activewindowmax;
- extern int haswin_activewindow[HASWIN_ACTIVEMAX];
- extern icon *haswin_baricons;
- extern int (*haswin_exittrap)(int);
- extern int haswin_version;
- extern int haswin_flags;
- extern char *haswin_commline;
- extern int *haswin_starttime;
- extern int *haswin_usersprites;
- extern int *haswin_haswinsprites;
- extern int haswin_templatefsize;
- extern char *haswin_templatewspace;
- extern char *haswin_templateptr;
- extern char *haswin_templateend;
- extern char haswin_fontarray[256];
- extern menu haswin_menu;
- extern window *haswin_dragwindow;
- extern icon *haswin_dragicon;
- extern pointer haswin_dragmouse;
- extern int (*haswin_ramtxroutine)(void *, int, int, buffer *);
- extern int (*haswin_ramrxroutine)(void *, int, int, buffer *);
- extern void *haswin_ramtxbuffer;
- extern int haswin_ramtxlength;
- extern int haswin_ramtxbytes;
- extern void *haswin_ramrxbuffer;
- extern int haswin_ramrxlength;
- extern int haswin_ramrxbytes;
- extern int (*haswin_autoloadroutine)(char *, buffer *);
- extern int haswin_autoloadtype;
- extern int (*haswin_loadfileroutine)(char *, buffer *);
- extern char haswin_defaultloadfile[256];
- extern window *haswin_loadingwindow;
- extern icon *haswin_loadicon;
- extern icon *haswin_loadiconok;
- extern icon *haswin_loadiconname;
- extern icon *haswin_loadicontype;
- extern int haswin_loadfiletype;
- extern int (*haswin_savefileroutine)(char *, buffer *);
- extern char haswin_defaultsavefile[256];
- extern window *haswin_saveingwindow;
- extern icon *haswin_saveicon;
- extern icon *haswin_saveiconok;
- extern icon *haswin_saveiconname;
- extern icon *haswin_saveicontype;
- extern int haswin_savefiletype;
- extern int haswin_fileoptions;
- extern window *haswin_quitwin;
- extern int haswin_quitfrom;
- extern int haswin_programtop;
- extern char *haswin_tasknameis;
- extern char haswin_taskname[TASK_MAXNAME];
- extern int haswin_taskid;
- extern spritejob haswin_spritejob;
- extern int (*haswin_printfileroutine)(char *, buffer *);
-
- extern int asciilen(char *);
- extern int atoint(char *);
- extern void strqcpy(char *, char *);
- extern void strnqcpy(char *, char *, int);
- extern int haswin_buildiconflags(char *, int, int, int, int *, char *,
- int);
- extern int filemousebutton(icon *, buffer *);
- extern void graphics_plot(char *, int, int, int, int, int, int);
- extern void text_plot(text *, int, int, int, int, int, int);
- extern int haswin_initpointerinfo(void);
-
-