version 1.48, 2012/04/13 14:13:00
|
version 1.53, 2012/10/07 08:18:36
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.8 |
RPL/2 (R) version 4.1.11 |
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 760 instruction_save(struct_processus *s_eta
|
Line 760 instruction_save(struct_processus *s_eta
|
* Aucune variable n'est accessible (ni locale, ni globale). |
* Aucune variable n'est accessible (ni locale, ni globale). |
*/ |
*/ |
|
|
|
if (((*s_etat_processus).autorisation_nom_implicite == 'N') && |
|
((*((struct_nom *) (*s_objet_1).objet)).symbole == d_faux)) |
|
{ |
|
liberation(s_etat_processus, s_objet_1); |
|
liberation(s_etat_processus, s_objet_2); |
|
|
|
(*s_etat_processus).erreur_systeme = d_es; |
|
(*s_etat_processus).erreur_execution = |
|
d_ex_creation_variable_globale; |
|
return; |
|
} |
|
|
if ((s_variable.nom = malloc((strlen((*((struct_nom *) |
if ((s_variable.nom = malloc((strlen((*((struct_nom *) |
(*s_objet_1).objet)).nom) + 1) * sizeof(unsigned char))) |
(*s_objet_1).objet)).nom) + 1) * sizeof(unsigned char))) |
== NULL) |
== NULL) |
Line 1323 instruction_swi(struct_processus *s_etat
|
Line 1335 instruction_swi(struct_processus *s_etat
|
} |
} |
else |
else |
{ |
{ |
tid = -1; |
tid = (pthread_t) -1; |
|
|
attente.tv_sec = 0; |
attente.tv_sec = 0; |
attente.tv_nsec = GRANULARITE_us * 1000; |
attente.tv_nsec = GRANULARITE_us * 1000; |
Line 1624 instruction_swi(struct_processus *s_etat
|
Line 1636 instruction_swi(struct_processus *s_etat
|
} |
} |
else |
else |
{ |
{ |
tid = -3; |
tid = (pthread_t) -3; |
|
|
# ifndef SEMAPHORES_NOMMES |
# ifndef SEMAPHORES_NOMMES |
if (sem_post(&((*s_etat_processus).semaphore_fork)) != 0) |
if (sem_post(&((*s_etat_processus).semaphore_fork)) != 0) |