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

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*/
                     34: 
                     35: // Laurent : I don't know what to do with these variables, so, for now, I've put them here !!!
1.1.1.2 ! root       36: // Nicolas : don't define variables in .h files, this gives warning when compiling. Only declare them.
        !            37: extern int kickstart_rom, cloanto_rom;
        !            38: extern int config_changed;
        !            39: extern int vpos;
        !            40: extern int quit_program;  // declared as "int quit_program = 0;" in main.c
1.1       root       41: //WinUae ChangeLog: Improve quitting/resetting behaviour: Move quit_program from GUI
                     42: //WinUae ChangeLog: quit_program is now handled in vsync_handler() and m68k_go().
                     43: 
                     44: #ifndef REGPARAM
                     45: #define REGPARAM
                     46: #endif
                     47: 
                     48: #ifndef REGPARAM2
                     49: #define REGPARAM2
                     50: #endif
                     51: 
                     52: #ifndef REGPARAM3
                     53: #define REGPARAM3
                     54: #endif
                     55: 
                     56: #ifndef TCHAR
                     57: #define TCHAR char
                     58: #endif
                     59: 
                     60: #ifndef STATIC_INLINE
                     61: #define STATIC_INLINE static inline
                     62: #endif
                     63: 
                     64: #define _vsnprintf vsnprintf
                     65: #define _tcsncmp strncmp
                     66: #define _istspace isspace
                     67: #define _tcscmp strcmp
                     68: #define _tcslen strlen
                     69: #define _tcsstr strstr
                     70: #define _tcscpy strcpy
                     71: #define _tcsncpy strncpy
                     72: #define _tcscat strcat
                     73: #define _stprintf sprintf
                     74: 
                     75: #define _vsntprintf printf
                     76: 
                     77: #define f_out fprintf
                     78: 
                     79: #endif

unix.superglobalmegacorp.com

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