version 1.10, 2010/05/24 10:58:35
|
version 1.59, 2015/11/26 11:44:40
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.16 |
RPL/2 (R) version 4.1.24 |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
Copyright (C) 1989-2015 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 689 instruction_utpt(struct_processus *s_eta
|
Line 689 instruction_utpt(struct_processus *s_eta
|
void |
void |
instruction_use(struct_processus *s_etat_processus) |
instruction_use(struct_processus *s_etat_processus) |
{ |
{ |
logical1 erreur; |
|
logical1 existence; |
logical1 existence; |
logical1 ouverture; |
logical1 ouverture; |
|
|
Line 770 instruction_use(struct_processus *s_etat
|
Line 769 instruction_use(struct_processus *s_etat
|
sprintf(tampon, "./%s", (unsigned char *) |
sprintf(tampon, "./%s", (unsigned char *) |
(*s_objet_argument).objet); |
(*s_objet_argument).objet); |
|
|
erreur = caracteristiques_fichier(s_etat_processus, tampon, |
caracteristiques_fichier(s_etat_processus, tampon, |
&existence, &ouverture, &unite); |
&existence, &ouverture, &unite); |
|
|
if (existence != d_faux) |
if (existence != d_faux) |
Line 1229 instruction_unprotect(struct_processus *
|
Line 1228 instruction_unprotect(struct_processus *
|
return; |
return; |
} |
} |
|
|
((*s_etat_processus).s_liste_variables[(*s_etat_processus) |
(*(*s_etat_processus).pointeur_variable_courante) |
.position_variable_courante]).variable_verrouillee = d_faux; |
.variable_verrouillee = d_faux; |
} |
} |
else if ((*s_objet).type == LST) |
else if ((*s_objet).type == LST) |
{ |
{ |
Line 1257 instruction_unprotect(struct_processus *
|
Line 1256 instruction_unprotect(struct_processus *
|
return; |
return; |
} |
} |
|
|
((*s_etat_processus).s_liste_variables[(*s_etat_processus) |
(*(*s_etat_processus).pointeur_variable_courante) |
.position_variable_courante]).variable_verrouillee = d_faux; |
.variable_verrouillee = d_faux; |
|
|
l_element_courant = (*l_element_courant).suivant; |
l_element_courant = (*l_element_courant).suivant; |
} |
} |
Line 1295 instruction_ucase(struct_processus *s_et
|
Line 1294 instruction_ucase(struct_processus *s_et
|
struct_objet *s_objet_argument; |
struct_objet *s_objet_argument; |
struct_objet *s_objet_resultat; |
struct_objet *s_objet_resultat; |
|
|
unsigned char *ptr; |
|
unsigned char registre; |
|
|
|
(*s_etat_processus).erreur_execution = d_ex; |
(*s_etat_processus).erreur_execution = d_ex; |
|
|
if ((*s_etat_processus).affichage_arguments == 'Y') |
if ((*s_etat_processus).affichage_arguments == 'Y') |
Line 1347 instruction_ucase(struct_processus *s_et
|
Line 1343 instruction_ucase(struct_processus *s_et
|
} |
} |
|
|
liberation(s_etat_processus, s_objet_argument); |
liberation(s_etat_processus, s_objet_argument); |
ptr = (unsigned char *) (*s_objet_resultat).objet; |
conversion_chaine(s_etat_processus, (unsigned char *) |
|
(*s_objet_resultat).objet, 'M'); |
while((*ptr) != d_code_fin_chaine) |
|
{ |
|
registre = toupper((*ptr)); |
|
|
|
if (tolower(registre) == (*ptr)) |
|
{ |
|
(*ptr) = registre; |
|
} |
|
|
|
ptr++; |
|
} |
|
|
|
if (empilement(s_etat_processus, &((*s_etat_processus).l_base_pile), |
if (empilement(s_etat_processus, &((*s_etat_processus).l_base_pile), |
s_objet_resultat) == d_erreur) |
s_objet_resultat) == d_erreur) |