1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
/* Festalon - NSF Player
* types.h: Copyright (C) 2001 Aaron Oneal
* Copyright (C) 2002 Ben Parnell
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __FCEU_TYPES
#define __FCEU_TYPES
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned long uint32;
#ifdef __GNUC__
typedef unsigned long long uint64;
typedef long long int64;
#define INLINE inline
#define GINLINE inline
#elif MSVC
typedef __int64 int64;
typedef unsigned __int64 uint64;
#define INLINE __inline
#define GINLINE /* Can't declare a function INLINE
and global in MSVC. Bummer.
*/
#endif
typedef signed char int8;
typedef signed short int16;
typedef signed long int32;
#define byte uint8
#define word uint16
#ifdef __GNUC__
// Broken on gcc 3.2...
#ifdef BORKC80x86
#define FASTAPASS(x) __attribute__((regparm(x)))
#define FP_FASTAPASS FASTAPASS
#else
#define FASTAPASS(x)
#define FP_FASTAPASS(x)
#endif
#else
#define FP_FASTAPASS(x)
#define FASTAPASS(x) __fastcall
#endif
typedef void FP_FASTAPASS(2) (*writefunc)(uint32 A, uint8 V);
typedef uint8 FP_FASTAPASS(1) (*readfunc)(uint32 A);
#endif
|