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