version 1.41, 2012/01/17 14:44:07
|
version 1.51, 2012/12/18 13:19:36
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.6 |
RPL/2 (R) version 4.1.12 |
Copyright (C) 1989-2012 Dr. BERTRAND Joël |
Copyright (C) 1989-2012 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
Line 72 instruction_format(struct_processus *s_e
|
Line 72 instruction_format(struct_processus *s_e
|
} |
} |
|
|
printf(" { \"STANDARD*(*)\" }\n"); |
printf(" { \"STANDARD*(*)\" }\n"); |
printf(" { \"lambda\" 'SEQUENTIAL' 'NEW' 'WRITEONLY' 'FORMATTED' }" |
printf(" { { \"NAME\" \"lambda\" } \"SEQUENTIAL\" \"NEW\"" |
" OPEN FORMAT\n\n"); |
"\"WRITEONLY\" \"FORMATTED\" } OPEN\n FORMAT\n\n"); |
|
|
if ((*s_etat_processus).langue == 'F') |
if ((*s_etat_processus).langue == 'F') |
{ |
{ |
Line 108 instruction_format(struct_processus *s_e
|
Line 108 instruction_format(struct_processus *s_e
|
printf(" { \"CHARACTER\" }\n\n"); |
printf(" { \"CHARACTER\" }\n\n"); |
|
|
printf(" FLOW\n"); |
printf(" FLOW\n"); |
printf(" { \"CHARACTER*(*)\" }\n"); |
|
printf(" { \"CHARACTER*(%s)\" }\n", d_INT); |
|
printf(" { \"LENGTH*(*)\" }\n"); |
printf(" { \"LENGTH*(*)\" }\n"); |
printf(" { \"LENGTH*(%s)\" }\n", d_INT); |
printf(" { \"LENGTH*(%s)\" }\n", d_INT); |
|
|
Line 148 instruction_format(struct_processus *s_e
|
Line 146 instruction_format(struct_processus *s_e
|
if (((*s_objet_argument_1).type == FCH) && |
if (((*s_objet_argument_1).type == FCH) && |
((*s_objet_argument_2).type == LST)) |
((*s_objet_argument_2).type == LST)) |
{ |
{ |
if ((*((struct_fichier *) (*s_objet_argument_1).objet)).binaire |
|
== 'F') |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_format_fichier; |
|
return; |
|
} |
|
|
|
if ((s_copie_argument_1 = copie_objet(s_etat_processus, |
if ((s_copie_argument_1 = copie_objet(s_etat_processus, |
s_objet_argument_1, 'N')) == NULL) |
s_objet_argument_1, 'N')) == NULL) |
{ |
{ |
Line 178 instruction_format(struct_processus *s_e
|
Line 165 instruction_format(struct_processus *s_e
|
else if (((*s_objet_argument_1).type == SCK) && |
else if (((*s_objet_argument_1).type == SCK) && |
((*s_objet_argument_2).type == LST)) |
((*s_objet_argument_2).type == LST)) |
{ |
{ |
if ((*((struct_socket *) (*s_objet_argument_1).objet)).binaire |
|
== 'F') |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_format_fichier; |
|
return; |
|
} |
|
|
|
if ((s_copie_argument_1 = copie_objet(s_etat_processus, |
if ((s_copie_argument_1 = copie_objet(s_etat_processus, |
s_objet_argument_1, 'N')) == NULL) |
s_objet_argument_1, 'N')) == NULL) |
{ |
{ |