--- rpl/src/rpl.h 2012/10/01 11:05:09 1.177 +++ rpl/src/rpl.h 2012/10/03 14:53:12 1.179 @@ -1521,7 +1521,7 @@ typedef union position_variable typedef struct variable { unsigned char *nom; - unsigned char origine; + unsigned char origine; // P(rogramme) ou E(valuation) unsigned long niveau; @@ -1729,18 +1729,25 @@ typedef struct instruction /* -------------------------------------------------------------------------------- - Structure d'arbre des variables variable globales et locales + Structure d'arbre des variables globales et locales -------------------------------------------------------------------------------- */ #ifndef RPLARGS typedef struct arbre_variables { - unsigned int noeuds_utilises; - signed int indice_tableau_pere; - struct arbre_variables *noeud_pere; - struct arbre_variables **noeuds; - struct liste_variables *feuille; + unsigned int noeuds_utilises; + // Nombre de noeuds utilisés dans le + // tableau **noeuds + signed int indice_tableau_pere; + // Position de la structure dans le + // tableau **noeuds du père + + struct arbre_variables *noeud_pere; + struct arbre_variables **noeuds; + + struct liste_variables *feuille; + struct liste_variables_statiques *feuille_statique; } struct_arbre_variables; typedef struct tableau_variables @@ -1774,6 +1781,11 @@ typedef struct liste_variables struct liste_variables *precedent; } struct_liste_variables; +typedef struct liste_variables_statiques +{ + struct liste_variables_statiques *suivant; + struct_variable_statique *variable; +} struct_liste_variables_statiques; #endif /*