luckytyphlosion

Results 22 issues of luckytyphlosion

It makes no sense. There are four structs: SaveArrayHeader, SaveArrayFooter, SaveChunkHeader, SaveChunkFooter. SaveChunkHeader isn't even defined in the same place as SaveChunkFooter. ```c static void CreateChunkFooter(SaveData *saveData, void *data, int...

I didn't realize this was a contention point, but apparently it is. Don't waste time thinking about this issue, I just wanted to get these thoughts down while they were...

LOW PRIORITY

Useful grep to find instances: `grep -Pwr --include="*.c" --include="*.h" "[a-z_]+_[a-z_]+[,;\)]" --exclude-dir="tools" --exclude-dir="sub" --exclude-dir="lib" --exclude-dir=".github" --exclude-dir="files"` ## Do not apply this logic to Nintendo Libraries. ### Local variable example **Good:** ```c...

### 5. There is no consensus for defining recursive structs. When defining a recursive struct, the struct must be declared and defined. Below are the options for declaring the struct....

## There are still some style directions relating to structs which have no consensus. Those can be found at issue #212 ### 1. All structs must have a corresponding typedef....

Cardinality is just number of elements for a set. So it could refer to the total length of an array, the number of values an enum could have, and other...

See the consensus discussion at #218 TODO write up a grep.

See the previous consensus discussion at #217 TODO write up a grep.

# There is no consensus whether enums are enums or typedefs. ## Case 1: enums are enums, not typedefs ### Do not typedef enums **Good:** ```c enum RTC_TimeOfDay { RTC_TIMEOFDAY_MORN...

Examples to kick off discussion. ### Example 1 ![image](https://github.com/pret/pokeheartgold/assets/10688458/d9e572d5-c8e5-433f-84d3-b65a00f05c6f) ### Example 2 ![image](https://github.com/pret/pokeheartgold/assets/10688458/df7c57b5-125b-47d5-8045-1f163828895b) ### Example 3 ![image](https://github.com/pret/pokeheartgold/assets/10688458/30710758-9d5c-4aa0-b630-1a8e95093b90) ### Example 4 ![image](https://github.com/pret/pokeheartgold/assets/10688458/ba529dae-eddd-4ca0-9536-f0a22722f955) ### Example 5 ![image](https://github.com/pret/pokeheartgold/assets/10688458/dd18384a-8c18-45e8-a039-2f6445b1d3d1)