123456789101112131415161718192021222324252627 |
- #ifndef STRINGINTMAP_H
- #define STRINGINTMAP_H
- #include <stdbool.h>
- #include "DataType.h"
- typedef struct {
- const char* name;
- DataType type;
- int address;
- bool initialized;
- } Variable;
- typedef struct {
- int capacity;
- int entries;
- int address;
- Variable* data;
- } Variables;
- void vInit(Variables* v);
- void vDelete(Variables* v);
- Variable* vSearch(Variables* v, const char* s);
- Variable* vAdd(Variables* v, const char* s, DataType type);
- #endif
|