|
|
1.1 root 1: /*
2: Hatari - main.h
3:
4: This file is distributed under the GNU Public License, version 2 or at
5: your option any later version. Read the file gpl.txt for details.
6: */
7:
8: #ifndef HATARI_MAIN_H
9: #define HATARI_MAIN_H
10:
11:
12: /* Name and version for window title: */
13: //#define PROG_NAME "Hatari devel (" __DATE__ ")"
1.1.1.3 ! root 14: #define PROG_NAME "Previous 0.4"
1.1 root 15:
16: #include "config.h"
17:
18: #include <stdio.h>
19: #include <stdlib.h>
20: #include <string.h>
21: #include <math.h>
22: #include <time.h>
23:
24: #include <SDL_types.h>
25: #include <stdbool.h>
26:
27: #if __GNUC__ >= 3
28: # define likely(x) __builtin_expect (!!(x), 1)
29: # define unlikely(x) __builtin_expect (!!(x), 0)
30: #else
31: # define likely(x) (x)
32: # define unlikely(x) (x)
33: #endif
34:
35: #ifdef WIN32
36: #define PATHSEP '\\'
37: #else
38: #define PATHSEP '/'
39: #endif
40:
41: #define CALL_VAR(func) { ((void(*)(void))func)(); }
42:
43: #define ARRAYSIZE(x) (int)(sizeof(x)/sizeof(x[0]))
44:
45: /* 68000 operand sizes */
46: #define SIZE_BYTE 1
47: #define SIZE_WORD 2
48: #define SIZE_LONG 4
49:
50: /* The 8 MHz CPU frequency */
51: #define CPU_FREQ 8012800
52:
53: extern bool bQuitProgram;
54:
55: extern bool Main_PauseEmulation(bool visualize);
56: extern bool Main_UnPauseEmulation(void);
57: extern void Main_RequestQuit(void);
1.1.1.2 root 58: extern void Main_SetRunVBLs(Uint32 vbls);
1.1 root 59: extern void Main_WaitOnVbl(void);
60: extern void Main_WarpMouse(int x, int y);
61: extern void Main_EventHandler(void);
1.1.1.2 root 62: extern void Main_SetTitle(const char *title);
1.1 root 63:
64: #endif /* ifndef HATARI_MAIN_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.