Annotation of hatari/src/includes/main.h, revision 1.1.1.25

1.1       root        1: /*
1.1.1.6   root        2:   Hatari - main.h
                      3: 
1.1.1.24  root        4:   This file is distributed under the GNU General Public License, version 2
                      5:   or at your option any later version. Read the file gpl.txt for details.
1.1       root        6: */
                      7: 
1.1.1.6   root        8: #ifndef HATARI_MAIN_H
                      9: #define HATARI_MAIN_H
1.1       root       10: 
1.1.1.17  root       11: #include "config.h"
1.1       root       12: 
                     13: #include <stdio.h>
                     14: #include <stdlib.h>
                     15: #include <string.h>
                     16: #include <math.h>
                     17: #include <time.h>
                     18: 
1.1.1.8   root       19: #include <SDL_types.h>
1.1.1.15  root       20: #include <stdbool.h>
1.1.1.13  root       21: 
1.1.1.17  root       22: #if __GNUC__ >= 3
                     23: # define likely(x)      __builtin_expect (!!(x), 1)
                     24: # define unlikely(x)    __builtin_expect (!!(x), 0)
                     25: #else
                     26: # define likely(x)      (x)
                     27: # define unlikely(x)    (x)
1.1       root       28: #endif
                     29: 
1.1.1.12  root       30: #ifdef WIN32
                     31: #define PATHSEP '\\'
                     32: #else
                     33: #define PATHSEP '/'
                     34: #endif
                     35: 
1.1       root       36: #define CALL_VAR(func)  { ((void(*)(void))func)(); }
                     37: 
1.1.1.25! root       38: #ifndef ARRAYSIZE
1.1.1.17  root       39: #define ARRAYSIZE(x) (int)(sizeof(x)/sizeof(x[0]))
1.1.1.25! root       40: #endif
1.1       root       41: 
1.1.1.4   root       42: /* 68000 operand sizes */
1.1       root       43: #define SIZE_BYTE  1
                     44: #define SIZE_WORD  2
                     45: #define SIZE_LONG  4
                     46: 
1.1.1.19  root       47: /* The 8 MHz CPU frequency */
                     48: #define CPU_FREQ   8012800
1.1.1.15  root       49: 
                     50: extern bool bQuitProgram;
                     51: 
                     52: extern bool Main_PauseEmulation(bool visualize);
                     53: extern bool Main_UnPauseEmulation(void);
1.1.1.25! root       54: extern void Main_RequestQuit(int exitval);
1.1.1.20  root       55: extern void Main_SetRunVBLs(Uint32 vbls);
1.1.1.25! root       56: extern bool Main_SetVBLSlowdown(int factor);
1.1.1.12  root       57: extern void Main_WaitOnVbl(void);
1.1.1.9   root       58: extern void Main_WarpMouse(int x, int y);
                     59: extern void Main_EventHandler(void);
1.1.1.20  root       60: extern void Main_SetTitle(const char *title);
1.1       root       61: 
1.1.1.6   root       62: #endif /* ifndef HATARI_MAIN_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.