summaryrefslogtreecommitdiff
path: root/src/port.h
diff options
context:
space:
mode:
authoraliaspider2015-11-09 20:42:25 +0100
committeraliaspider2015-11-09 20:42:25 +0100
commite144a0acc4854ad80f9e6945f4d94223ee865d78 (patch)
treeba76f908710407e43ca31ec51eca73a60d525eb2 /src/port.h
parent8d4780b83a112579e729a6f163ccd0ff30fc829f (diff)
downloadsnes9x2002-e144a0acc4854ad80f9e6945f4d94223ee865d78.tar.gz
snes9x2002-e144a0acc4854ad80f9e6945f4d94223ee865d78.tar.bz2
snes9x2002-e144a0acc4854ad80f9e6945f4d94223ee865d78.zip
reindent all files.
Diffstat (limited to 'src/port.h')
-rw-r--r--src/port.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/port.h b/src/port.h
index 540ae2d..0c48da6 100644
--- a/src/port.h
+++ b/src/port.h
@@ -4,7 +4,7 @@
* (c) Copyright 1996 - 2001 Gary Henderson (gary.henderson@ntlworld.com) and
* Jerremy Koot (jkoot@snes9x.com)
*
- * Super FX C emulator code
+ * Super FX C emulator code
* (c) Copyright 1997 - 1999 Ivar (ivar@snes9x.com) and
* Gary Henderson.
* Super FX assembler emulator code (c) Copyright 1998 zsKnight and _Demo_.
@@ -42,15 +42,15 @@
#define _PORT_H_
/*
-This port.h is really a right-of-passage for anyone trying to port the emulator
- to another platform. It must have started out as a set of defines for a
- single platform, and instead of using define blocks as new platforms were
- added, individual coders simply added exceptions and sprinkled #ifdef and #ifndef
- statements throughout the original list.
+This port.h is really a right-of-passage for anyone trying to port the emulator
+ to another platform. It must have started out as a set of defines for a
+ single platform, and instead of using define blocks as new platforms were
+ added, individual coders simply added exceptions and sprinkled #ifdef and #ifndef
+ statements throughout the original list.
I can't take it anymore, it's too convoluted. So I've commented out the entire
- section, and preemptively rewritten the first #define segment the way god intended,
- with a single define-block for each target platform.
+ section, and preemptively rewritten the first #define segment the way god intended,
+ with a single define-block for each target platform.
*/
#if 1
@@ -65,30 +65,30 @@ I can't take it anymore, it's too convoluted. So I've commented out the entire
#include <string.h>
#include <stdbool.h>
//Types Defined
-typedef unsigned char bool8;
-typedef unsigned char uint8;
-typedef unsigned short uint16;
-typedef unsigned int bool32;
-typedef unsigned int uint32;
-typedef signed char int8;
-typedef short int16;
-typedef int int32;
-typedef long long int64;
+typedef unsigned char bool8;
+typedef unsigned char uint8;
+typedef unsigned short uint16;
+typedef unsigned int bool32;
+typedef unsigned int uint32;
+typedef signed char int8;
+typedef short int16;
+typedef int int32;
+typedef long long int64;
//CSNES Types for conversion to 32 bit
-/*typedef unsigned long bool8_32;
-typedef unsigned long uint8_32;
-typedef unsigned long uint16_32;
-typedef long int8_32;
-typedef long int16_32;*/
+/*typedef unsigned long bool8_32;
+typedef unsigned long uint8_32;
+typedef unsigned long uint16_32;
+typedef long int8_32;
+typedef long int16_32;*/
//For Debugging Purposes:
-typedef unsigned char bool8_32;
-typedef unsigned char uint8_32;
-typedef unsigned short uint16_32;
-typedef signed char int8_32;
-typedef short int16_32;
+typedef unsigned char bool8_32;
+typedef unsigned char uint8_32;
+typedef unsigned short uint16_32;
+typedef signed char int8_32;
+typedef short int16_32;
//Defines for Extern C
@@ -137,15 +137,15 @@ typedef short int16_32;
#undef FAST_LSB_WORD_ACCESS
#define SUPER_FX
#ifdef ASMCPU
- #define ASM_SPC700
+#define ASM_SPC700
#endif
-EXTERN_C void S9xGenerateSound ();
+EXTERN_C void S9xGenerateSound();
-void _makepath (char *path, const char *drive, const char *dir,
- const char *fname, const char *ext);
-void _splitpath (const char *path, char *drive, char *dir, char *fname,
- char *ext);
+void _makepath(char* path, const char* drive, const char* dir,
+ const char* fname, const char* ext);
+void _splitpath(const char* path, char* drive, char* dir, char* fname,
+ char* ext);
#define strcasecmp strcmp
#define strncasecmp strncmp