diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2021-06-13 18:45:41 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2021-06-13 18:45:41 +0200 |
commit | 2352079d0c54955f69b9070fc022c5f099906805 (patch) | |
tree | 53cadfa7d7ae2545ae5c6428c1f4e694203f2e57 /src/common.h | |
parent | e83d0567b736bb86515ebd651eb9e2a921dcaab3 (diff) | |
download | polecat-2352079d0c54955f69b9070fc022c5f099906805.tar.gz polecat-2352079d0c54955f69b9070fc022c5f099906805.zip |
rework command group logic to work linear, replace return with EXIT_*
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h index 21bd727..d4cce1d 100644 --- a/src/common.h +++ b/src/common.h @@ -12,6 +12,8 @@ extern uint8_t no_net; +typedef int (*func_t)(int, char**); + struct MemoryStruct { uint8_t* memory; size_t size; @@ -19,7 +21,7 @@ struct MemoryStruct { struct Command { char* name; - int (*func)(int, char**); + func_t func; char* description; }; |