--- rpl/src/instructions_c7.c 2010/07/14 14:19:35 1.13 +++ rpl/src/instructions_c7.c 2010/07/31 10:34:17 1.14 @@ -820,4 +820,59 @@ instruction_clratexit(struct_processus * return; } + +/* +================================================================================ + Fonction 'clratpoke' +================================================================================ + Entrées : pointeur sur une structure struct_processus +-------------------------------------------------------------------------------- + Sorties : +-------------------------------------------------------------------------------- + Effets de bord : néant +================================================================================ +*/ + +void +instruction_clratpoke(struct_processus *s_etat_processus) +{ + (*s_etat_processus).erreur_execution = d_ex; + + if ((*s_etat_processus).affichage_arguments == 'Y') + { + printf("\n CLRATPOKE "); + + if ((*s_etat_processus).langue == 'F') + { + printf("(suppression de la fonction de contrôle d'injection)\n\n"); + printf(" Aucun argument\n"); + } + else + { + printf("(delete injection controle function)\n\n"); + printf(" No argument\n"); + } + + return; + } + else if ((*s_etat_processus).test_instruction == 'Y') + { + (*s_etat_processus).nombre_arguments = -1; + return; + } + + if (test_cfsf(s_etat_processus, 31) == d_vrai) + { + if (empilement_pile_last(s_etat_processus, 0) == d_erreur) + { + return; + } + } + + liberation(s_etat_processus, (*s_etat_processus).at_poke); + (*s_etat_processus).at_poke = NULL; + + return; +} + // vim: ts=4