Add names to all typedef'd structs, unions, and enums (#2028)

* Add names to all typedef'd structs, unions, and enums

* wtf vs code

* Use a better regex
This commit is contained in:
cadmic
2024-08-12 00:07:48 -07:00
committed by GitHub
parent 672728455d
commit e6bc4bd8cb
426 changed files with 1417 additions and 1417 deletions
+8 -8
View File
@@ -4,11 +4,11 @@
#include "ultra64.h"
#include "sched.h"
typedef struct {
typedef struct JpegQuantizationTable {
/* 0x00 */ u16 table[8*8];
} JpegQuantizationTable; // size = 0x80
typedef struct {
typedef struct JpegHuffmanTable {
/* 0x00 */ u8 codeOffs[16];
/* 0x10 */ u16 codesA[16];
/* 0x30 */ u16 codesB[16];
@@ -16,13 +16,13 @@ typedef struct {
} JpegHuffmanTable; // size = 0x54
// this struct might be inaccurate but it's not used outside jpegutils.c anyways
typedef struct {
typedef struct JpegHuffmanTableOld {
/* 0x000 */ u8 codeOffs[16];
/* 0x010 */ u16 dcCodes[120];
/* 0x100 */ u16 acCodes[256];
} JpegHuffmanTableOld; // size = 0x300
typedef union {
typedef union JpegTaskData {
struct {
/* 0x00 */ u32 address;
/* 0x04 */ u32 mbCount;
@@ -35,7 +35,7 @@ typedef union {
long long int force_structure_alignment;
} JpegTaskData; // size = 0x20
typedef struct {
typedef struct JpegWork {
/* 0x000 */ JpegTaskData taskData;
/* 0x020 */ u64 yieldData[0x200 / sizeof(u64)];
/* 0x220 */ JpegQuantizationTable qTableY;
@@ -46,7 +46,7 @@ typedef struct {
/* 0x6C0 */ u16 data[4][0x180];
} JpegWork; // size = 0x12C0
typedef struct {
typedef struct JpegDecoder {
/* 0x00 */ void* imageData;
/* 0x04 */ u8 mode;
/* 0x05 */ u8 unk_05;
@@ -54,7 +54,7 @@ typedef struct {
/* 0x18 */ u8 unk_18;
} JpegDecoder; // size = 0x1C
typedef struct {
typedef struct JpegContext {
/* 0x00 */ u8 dqtCount;
/* 0x04 */ u8* dqtPtr[3];
/* 0x10 */ u8 dhtCount;
@@ -67,7 +67,7 @@ typedef struct {
/* 0xB4 */ JpegWork* workBuf;
} JpegContext; // size = 0xB8
typedef struct {
typedef struct JpegDecoderState {
/* 0x00 */ u32 byteIdx;
/* 0x04 */ u8 bitIdx;
/* 0x05 */ u8 dontSkip;