core, structural cleanup, fixes and improvements for type issues #2

This commit is contained in:
kub 2021-01-01 12:43:49 +01:00
parent 5ab80df952
commit f821bb7011
64 changed files with 140 additions and 150 deletions

View file

@ -10,6 +10,7 @@
#include <sys/stat.h>
#include <string.h>
#include <ctype.h>
#include <stdint.h>
#ifndef MAX_PATH
#define MAX_PATH 1024
@ -34,14 +35,14 @@
#define LAME_OPTIONS "-h --cbr"
typedef unsigned char u8;
typedef unsigned short int u16;
typedef unsigned int u32;
typedef unsigned long long int u64;
typedef signed char s8;
typedef signed short int s16;
typedef signed int s32;
typedef signed long long int s64;
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;
typedef int64_t s64;
typedef enum
{

View file

@ -3,7 +3,7 @@
#include <stdarg.h>
#include <stdio.h>
#include "cpu/sh2/compiler.c"
#include <cpu/sh2/compiler.c>
struct Pico Pico;
SH2 sh2s[2];

View file

@ -1,7 +1,7 @@
#include <stdio.h>
#include <stddef.h>
#include "../pico/pico_int.h"
#include <pico/pico_int.h>
#define DUMP(f, prefix, type, field) \
fprintf(f, "#define %-20s 0x%02x\n", \

View file

@ -103,7 +103,7 @@ get_define () # prefix struct member member...
field=$(echo $* | sed 's/ /./g')
name=$(echo $* | sed 's/ /_/g')
echo '#include <stdint.h>' > /tmp/getoffs.c
echo '#include "pico/pico_int.h"' >> /tmp/getoffs.c
echo '#include <pico/pico_int.h>' >> /tmp/getoffs.c
echo "static struct $struct p;" >> /tmp/getoffs.c
echo "const int32_t val = (char *)&p.$field - (char*)&p;" >>/tmp/getoffs.c
compile_rodata