version 1.13, 2010/06/02 10:28:45
|
version 1.51, 2012/12/18 13:19:36
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.16 |
RPL/2 (R) version 4.1.12 |
Copyright (C) 1989-2010 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 20
|
Line 20
|
*/ |
*/ |
|
|
|
|
#include "rpl.conv.h" |
#include "rpl-conv.h" |
|
|
|
|
/* |
/* |
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 1629 instruction_fleche_num(struct_processus
|
Line 1627 instruction_fleche_num(struct_processus
|
sf(s_etat_processus, 31); |
sf(s_etat_processus, 31); |
} |
} |
|
|
|
if (registre_type_evaluation == 'E') |
|
{ |
|
sf(s_etat_processus, 35); |
|
} |
|
else |
|
{ |
|
cf(s_etat_processus, 35); |
|
} |
|
|
(*s_etat_processus).erreur_execution = d_ex_manque_argument; |
(*s_etat_processus).erreur_execution = d_ex_manque_argument; |
return; |
return; |
} |
} |
Line 1640 instruction_fleche_num(struct_processus
|
Line 1647 instruction_fleche_num(struct_processus
|
sf(s_etat_processus, 31); |
sf(s_etat_processus, 31); |
} |
} |
|
|
|
if (registre_type_evaluation == 'E') |
|
{ |
|
sf(s_etat_processus, 35); |
|
} |
|
else |
|
{ |
|
cf(s_etat_processus, 35); |
|
} |
|
|
return; |
return; |
} |
} |
|
|
Line 1653 instruction_fleche_num(struct_processus
|
Line 1669 instruction_fleche_num(struct_processus
|
sf(s_etat_processus, 31); |
sf(s_etat_processus, 31); |
} |
} |
|
|
|
if (registre_type_evaluation == 'E') |
|
{ |
|
sf(s_etat_processus, 35); |
|
} |
|
else |
|
{ |
|
cf(s_etat_processus, 35); |
|
} |
|
|
liberation(s_etat_processus, s_objet); |
liberation(s_etat_processus, s_objet); |
return; |
return; |
} |
} |
Line 1788 instruction_fuse(struct_processus *s_eta
|
Line 1813 instruction_fuse(struct_processus *s_eta
|
return; |
return; |
} |
} |
|
|
|
# ifdef SCHED_OTHER |
if (pthread_attr_setschedpolicy(&attributs, SCHED_OTHER) != 0) |
if (pthread_attr_setschedpolicy(&attributs, SCHED_OTHER) != 0) |
{ |
{ |
(*s_etat_processus).erreur_systeme = d_es_processus; |
(*s_etat_processus).erreur_systeme = d_es_processus; |
return; |
return; |
} |
} |
|
# endif |
|
|
|
# ifdef PTHREAD_EXPLICIT_SCHED |
if (pthread_attr_setinheritsched(&attributs, |
if (pthread_attr_setinheritsched(&attributs, |
PTHREAD_EXPLICIT_SCHED) != 0) |
PTHREAD_EXPLICIT_SCHED) != 0) |
{ |
{ |
(*s_etat_processus).erreur_systeme = d_es_processus; |
(*s_etat_processus).erreur_systeme = d_es_processus; |
return; |
return; |
} |
} |
|
# endif |
|
|
|
# ifdef PTHREAD_SCOPE_SYSTEM |
if (pthread_attr_setscope(&attributs, PTHREAD_SCOPE_SYSTEM) != 0) |
if (pthread_attr_setscope(&attributs, PTHREAD_SCOPE_SYSTEM) != 0) |
{ |
{ |
(*s_etat_processus).erreur_systeme = d_es_processus; |
(*s_etat_processus).erreur_systeme = d_es_processus; |
return; |
return; |
} |
} |
|
# endif |
|
|
if (pthread_create(&(*s_etat_processus).thread_fusible, &attributs, |
if (pthread_create(&(*s_etat_processus).thread_fusible, &attributs, |
fusible, s_etat_processus) != 0) |
fusible, s_etat_processus) != 0) |