Good, I'm doing a program that reads a Python Bytecode file and executes the instructions given in it. The problem that I have right now is that I need to put a tag type structure into a stack. The stack only admits the type void * because there you can store anything like int, float ... What is the correct way to cast a struct to a void * and vice versa?
void LOAD_GLOBAL(char * nombreEtiqueta){
struct Etiqueta *temporal = buscarEtiqueta(nombreEtiqueta);
insertarElementoPila((void*) &temporal, 6);
}
struct Etiqueta *CALL_FUNCTION(int numParams){
struct Etiqueta *P = (struct Etiqueta*) pPila;
return P;
}