1234567891011121314151617181920212223 |
- #ifndef FUNCTIONMAP_H
- #define FUNCTIONMAP_H
- #include <stdbool.h>
- typedef struct Function {
- const char* name;
- int arguments;
- int address;
- } Function;
- typedef struct FunctionMap {
- int capacity;
- int entries;
- Function* data;
- } FunctionMap;
- void fmInit(FunctionMap* fm);
- void fmDelete(FunctionMap* fm);
- int fmSearchAddress(FunctionMap* fm, const char* name, int arguments);
- bool fmAdd(FunctionMap* fm, const char* name, int arguments, int address);
- #endif
|