Update CONTRIBUTING.md

This commit is contained in:
notyouraveragehooman 2020-06-11 18:28:34 -07:00 committed by GitHub
parent 1c235a241e
commit 5edf5b6b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -251,9 +251,9 @@ We know `r4` is an `Entity`, which is from `entity.h`. We can declare this above
What about `gUnk_08120668` and `sub_0805EC9C`? What about `gUnk_08120668` and `sub_0805EC9C`?
```c ```c
extern void sub_0805EC9C(); extern void sub_0805EC9C();
extern (*gUnk_08120668[99])(Entity *); extern (*gUnk_08120668[])(Entity *);
``` ```
Now the compiler will look outside of this file for both of these. We can set the size of `gUnk_08120668`, a pointer array, to `99`, since it's size is irrelevant for now. Now the compiler will look outside of this file for both of these. We don't have to set the size of `gUnk_08120668`, a pointer array, since it's size is irrelevant for now.
--- ---
@ -263,7 +263,7 @@ Now our file looks like this:
#include "entity.h" #include "entity.h"
extern void sub_0805EC9C(); extern void sub_0805EC9C();
extern (*gUnk_08120668[99])(Entity *); extern (*gUnk_08120668[])(Entity *);
void sub_08086284(Entity *r4) { void sub_08086284(Entity *r4) {
gUnk_08120668[r4->action](r4); gUnk_08120668[r4->action](r4);