version 1.27, 2011/06/27 09:05:01
|
version 1.45, 2013/03/21 12:07:38
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.0 |
RPL/2 (R) version 4.1.13 |
Copyright (C) 1989-2011 Dr. BERTRAND Joël |
Copyright (C) 1989-2013 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 43 rplcore(struct_processus *s_etat_process
|
Line 43 rplcore(struct_processus *s_etat_process
|
logical1 erreur; |
logical1 erreur; |
logical1 fin_boucle; |
logical1 fin_boucle; |
|
|
long i; |
int longueur_lignes = 65; |
long j; |
|
long longueur_lignes = 65; |
integer8 i; |
|
integer8 j; |
|
|
struct_liste_chainee *l_base_pile; |
struct_liste_chainee *l_base_pile; |
struct_liste_chainee *l_element_courant; |
struct_liste_chainee *l_element_courant; |
Line 63 rplcore(struct_processus *s_etat_process
|
Line 64 rplcore(struct_processus *s_etat_process
|
|
|
(*s_etat_processus).core = d_faux; |
(*s_etat_processus).core = d_faux; |
|
|
|
cf(s_etat_processus, 34); |
|
|
sf(s_etat_processus, 37); |
sf(s_etat_processus, 37); |
sf(s_etat_processus, 38); |
sf(s_etat_processus, 38); |
sf(s_etat_processus, 39); |
sf(s_etat_processus, 39); |
Line 102 rplcore(struct_processus *s_etat_process
|
Line 105 rplcore(struct_processus *s_etat_process
|
} |
} |
|
|
snprintf(nom, strlen(ds_rplcore) + 64 + 1, |
snprintf(nom, strlen(ds_rplcore) + 64 + 1, |
"%s-%lu-%lu", ds_rplcore, (unsigned long) getpid(), |
"%s-%llu-%llu", ds_rplcore, (unsigned long long) getpid(), |
(unsigned long) pthread_self()); |
(unsigned long long) pthread_self()); |
|
|
if ((fichier = fopen(nom, "w+")) == NULL) |
if ((fichier = fopen(nom, "w+")) == NULL) |
{ |
{ |
Line 481 rplcore(struct_processus *s_etat_process
|
Line 484 rplcore(struct_processus *s_etat_process
|
while(((*ptr_bis) != d_code_fin_chaine) && |
while(((*ptr_bis) != d_code_fin_chaine) && |
(fin_boucle == d_faux)) |
(fin_boucle == d_faux)) |
{ |
{ |
if (j == (long) (*s_etat_processus).position_courante) |
if (j == (*s_etat_processus).position_courante) |
{ |
{ |
if (fprintf(fichier, ">|<") < 0) |
if (fprintf(fichier, ">|<") < 0) |
{ |
{ |
Line 526 rplcore(struct_processus *s_etat_process
|
Line 529 rplcore(struct_processus *s_etat_process
|
} |
} |
} |
} |
|
|
if ((i <= (long) (*s_etat_processus).position_courante) && |
if ((i <= (*s_etat_processus).position_courante) && |
((i + longueur_lignes) > (long) (*s_etat_processus) |
((i + longueur_lignes) > (*s_etat_processus) |
.position_courante)) |
.position_courante)) |
{ |
{ |
if (fprintf(fichier, "\nError : ") < 0) |
if (fprintf(fichier, "\nError : ") < 0) |