27 lines
450 B
C
27 lines
450 B
C
#ifndef TABLE_H
|
|
#define TABLE_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdbool.h>
|
|
|
|
enum enumVarType {INT, FLOAT}; // a adapter
|
|
/*defined constants*/
|
|
#define START_TABLE_SIZE 128;
|
|
|
|
/*indexes in the array*/
|
|
static int currentIndex;
|
|
static int maxIndex;
|
|
static symbol* symbolTable;
|
|
|
|
typedef struct {
|
|
char* name;
|
|
bool init;
|
|
enumVarType varType;
|
|
int offset;
|
|
int deep;
|
|
} Symbol;
|
|
|
|
void reallocateArray(int size);
|
|
void checkArraySanity();
|
|
|
|
#endif
|