-
Notifications
You must be signed in to change notification settings - Fork 3
Merge files, replace typedefs w/ stddef.h, etc. #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,20 +12,6 @@ | |
|
|
||
| /* don't change these macros and structures which is referred in mcx code */ | ||
|
|
||
| #ifndef TRUE | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok so I think these TRUE/FALSE/ERROR are actually used for the return values of the functions in here. |
||
| #define TRUE 1 | ||
| #endif | ||
| #ifndef FALSE | ||
| #define FALSE 0 | ||
| #endif | ||
| #ifndef NULL | ||
| #define NULL 0 | ||
| #endif | ||
| #ifndef ERROR | ||
| #define ERROR (-1) | ||
| #endif | ||
|
|
||
|
|
||
| #define McxFuncGetApl 1 | ||
| #define McxFuncExecApl 2 | ||
| #define McxFuncGetTime 3 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,17 +12,6 @@ | |
|
|
||
| /* don't change these macros and structures which is referred in controler code */ | ||
|
|
||
| #ifndef TRUE | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. So we may want to keep these TRUE/FALSE/ERROR blocks, or move them to a new header by itself, like sys/return_values.h, and include it from these two files, as the values are basically implicitly needed to evaluate the return values of the functions. Could also probably do with an enum instead, but that's probably too big of a change. |
||
| #define TRUE 1 | ||
| #endif | ||
| #ifndef FALSE | ||
| #define FALSE 0 | ||
| #endif | ||
| #ifndef NULL | ||
| #define NULL 0 | ||
| #endif | ||
|
|
||
|
|
||
| #define PadStateDiscon 0 | ||
| #define PadStateFindPad 1 | ||
| #define PadStateFindCTP1 2 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,9 +68,6 @@ | |
| #define SND_ADDR 16 | ||
| #define SND_PITCH 32 | ||
|
|
||
| #ifndef NULL | ||
| #define NULL 0 | ||
| #endif | ||
|
|
||
|
|
||
| /* | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,15 +11,6 @@ | |
|
|
||
| #define LMAX 256 | ||
|
|
||
| #ifndef NULL | ||
| #define NULL 0 /* null pointer constant */ | ||
| #endif | ||
|
|
||
| #ifndef _SIZE_T | ||
| #define _SIZE_T | ||
| typedef unsigned int size_t; /* result type of the sizeof operator (ANSI) */ | ||
| #endif | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Later in this file (as I can't comment somewhere as low), we may want to change this line: to |
||
|
|
||
| #include <memory.h> | ||
|
|
||
| #if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this file, r3000.h, is even needed here.