version 1.9, 2010/03/09 10:18:48
|
version 1.68, 2018/05/30 09:27:37
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.13 |
RPL/2 (R) version 4.1.29 |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
Copyright (C) 1989-2018 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 20
|
Line 20
|
*/ |
*/ |
|
|
|
|
#include "rpl.conv.h" |
#include "rpl-conv.h" |
|
|
|
|
/* |
/* |
Line 764 instruction_size(struct_processus *s_eta
|
Line 764 instruction_size(struct_processus *s_eta
|
} |
} |
|
|
(*((integer8 *) (*s_objet_resultat).objet)) = |
(*((integer8 *) (*s_objet_resultat).objet)) = |
strlen((unsigned char *) (*s_objet_argument).objet); |
longueur_chaine(s_etat_processus, |
|
(unsigned char *) (*s_objet_argument).objet); |
} |
} |
|
|
/* |
/* |
Line 1034 instruction_str_fleche(struct_processus
|
Line 1035 instruction_str_fleche(struct_processus
|
unsigned char registre_interruption; |
unsigned char registre_interruption; |
unsigned char *tampon; |
unsigned char *tampon; |
|
|
unsigned long nombre_caracteres_supplementaires; |
integer8 nombre_caracteres_supplementaires; |
unsigned long position_courante; |
integer8 position_courante; |
|
|
(*s_etat_processus).erreur_execution = d_ex; |
(*s_etat_processus).erreur_execution = d_ex; |
|
|
Line 1154 instruction_str_fleche(struct_processus
|
Line 1155 instruction_str_fleche(struct_processus
|
// de caractères incluses. Le seul caractère protégé est le '\' |
// de caractères incluses. Le seul caractère protégé est le '\' |
// qui est doublé. |
// qui est doublé. |
|
|
if ((chaine_convertie = malloc((strlen(tampon) + |
if ((chaine_convertie = malloc((strlen(tampon) + ((size_t) |
nombre_caracteres_supplementaires + 1) * sizeof(unsigned char))) |
nombre_caracteres_supplementaires) + 1) * |
== NULL) |
sizeof(unsigned char))) == NULL) |
{ |
{ |
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
return; |
return; |
Line 1255 instruction_str_fleche(struct_processus
|
Line 1256 instruction_str_fleche(struct_processus
|
.definitions_chainees); |
.definitions_chainees); |
(*s_etat_processus).instruction_courante = commande; |
(*s_etat_processus).instruction_courante = commande; |
|
|
|
(*s_etat_processus).type_en_cours = NON; |
recherche_type(s_etat_processus); |
recherche_type(s_etat_processus); |
|
|
if ((*s_etat_processus).erreur_execution != d_ex) |
if (((*s_etat_processus).erreur_execution != d_ex) || |
|
((*s_etat_processus).erreur_systeme != d_es)) |
{ |
{ |
liberation(s_etat_processus, s_objet); |
liberation(s_etat_processus, s_objet); |
|
|