Projet-Systemes-Informatiques/table.h
2023-04-06 10:58:46 +02:00

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