version 1.13, 2010/06/19 15:54:51
|
version 1.54, 2014/04/25 07:37:33
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.16 |
RPL/2 (R) version 4.1.18 |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
Copyright (C) 1989-2014 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; |