mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-29 14:27:50 +00:00
Replace 8 and 16 bit custom types by stdint.h types
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -11,13 +12,13 @@
|
||||
char *tzOutname;
|
||||
char *tzOverlayname = NULL;
|
||||
|
||||
SLONG MaxOverlayBank;
|
||||
int32_t MaxOverlayBank;
|
||||
|
||||
void
|
||||
writehome(FILE * f, FILE * f_overlay)
|
||||
{
|
||||
struct sSection *pSect;
|
||||
UBYTE *mem;
|
||||
uint8_t *mem;
|
||||
|
||||
mem = malloc(MaxAvail[BANK_ROM0]);
|
||||
if (!mem)
|
||||
@@ -51,10 +52,10 @@ writehome(FILE * f, FILE * f_overlay)
|
||||
}
|
||||
|
||||
void
|
||||
writebank(FILE * f, FILE * f_overlay, SLONG bank)
|
||||
writebank(FILE * f, FILE * f_overlay, int32_t bank)
|
||||
{
|
||||
struct sSection *pSect;
|
||||
UBYTE *mem;
|
||||
uint8_t *mem;
|
||||
|
||||
mem = malloc(MaxAvail[bank]);
|
||||
if (!mem)
|
||||
@@ -103,7 +104,7 @@ out_SetOverlayname(char *tzOverlayfile)
|
||||
void
|
||||
Output(void)
|
||||
{
|
||||
SLONG i;
|
||||
int32_t i;
|
||||
FILE *f;
|
||||
FILE *f_overlay = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user