Annotation of hatari/src/cpu/compat.h, revision 1.1.1.3

1.1       root        1: /*
                      2:   Hatari - compat.h
                      3: 
1.1.1.2   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: 
1.1.1.2   root        7:   This file contains all the includes and defines specific to windows (such as
                      8:   TCHAR) needed by WinUAE CPU core.
                      9:   The aim is to have minimum changes in WinUae CPU core for next updates.
1.1       root       10: */
                     11: 
                     12: #ifndef HATARI_COMPAT_H
                     13: #define HATARI_COMPAT_H
                     14: 
                     15: #include <stdbool.h>
                     16: 
                     17: #include "sysconfig.h"
                     18: 
                     19: /* This define is here to remove some Amiga specific code when compiling */
                     20: /* It results in ' #if 0 ' code in newcpu.c code */
                     21: #define AMIGA_ONLY 0
                     22: 
                     23: /* this defione is here for newcpu.c compatibility.
                     24:  * In WinUae, it's defined in debug.h" */
                     25: #ifndef MAX_LINEWIDTH
                     26: #define MAX_LINEWIDTH 100
                     27: #endif
                     28: 
                     29: #define RTAREA_DEFAULT 0xf00000
                     30: 
                     31: /* Laurent */
                     32: /* here only to allow newcpu.c to compile */
                     33: /* Should be removed when newcpu.c 'll be relooked for hatari only*/
1.1.1.2   root       34: extern int vpos;
                     35: extern int quit_program;  // declared as "int quit_program = 0;" in main.c
1.1       root       36: //WinUae ChangeLog: Improve quitting/resetting behaviour: Move quit_program from GUI
                     37: //WinUae ChangeLog: quit_program is now handled in vsync_handler() and m68k_go().
                     38: 
                     39: #ifndef REGPARAM
                     40: #define REGPARAM
                     41: #endif
                     42: 
                     43: #ifndef REGPARAM2
                     44: #define REGPARAM2
                     45: #endif
                     46: 
                     47: #ifndef REGPARAM3
                     48: #define REGPARAM3
                     49: #endif
                     50: 
                     51: #ifndef TCHAR
                     52: #define TCHAR char
                     53: #endif
                     54: 
                     55: #ifndef STATIC_INLINE
                     56: #define STATIC_INLINE static inline
                     57: #endif
                     58: 
                     59: #define _vsnprintf vsnprintf
                     60: #define _tcsncmp strncmp
                     61: #define _istspace isspace
                     62: #define _tcscmp strcmp
                     63: #define _tcslen strlen
                     64: #define _tcsstr strstr
                     65: #define _tcscpy strcpy
                     66: #define _tcsncpy strncpy
                     67: #define _tcscat strcat
                     68: #define _stprintf sprintf
                     69: 
                     70: #define _vsntprintf printf
                     71: 
                     72: #define f_out fprintf
                     73: 
                     74: #endif

unix.superglobalmegacorp.com

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