version 1.74, 2013/03/01 10:24:49
|
version 1.78, 2013/03/20 17:11:45
|
Line 390 instruction_write(struct_processus *s_et
|
Line 390 instruction_write(struct_processus *s_et
|
integer8 clef; |
integer8 clef; |
integer8 compteur; |
integer8 compteur; |
integer8 id; |
integer8 id; |
|
integer8 longueur_effective; |
integer8 ordre; |
integer8 ordre; |
|
|
logical1 format_degenere; |
logical1 format_degenere; |
logical1 mise_a_jour; |
logical1 mise_a_jour; |
|
|
long longueur; |
long longueur; |
long longueur_effective; |
|
long recursivite; |
long recursivite; |
|
|
sqlite3_stmt *ppStmt; |
sqlite3_stmt *ppStmt; |
Line 592 instruction_write(struct_processus *s_et
|
Line 592 instruction_write(struct_processus *s_et
|
if ((chaine = formateur_fichier(s_etat_processus, |
if ((chaine = formateur_fichier(s_etat_processus, |
s_objet_argument_2, (*((struct_fichier *) |
s_objet_argument_2, (*((struct_fichier *) |
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'F', |
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'F', |
&longueur_effective, &recursivite)) == NULL) |
&longueur_effective, &recursivite, d_vrai)) == NULL) |
{ |
{ |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
Line 674 instruction_write(struct_processus *s_et
|
Line 674 instruction_write(struct_processus *s_et
|
if ((chaine = formateur_fichier(s_etat_processus, |
if ((chaine = formateur_fichier(s_etat_processus, |
s_objet_argument_3, (*((struct_fichier *) |
s_objet_argument_3, (*((struct_fichier *) |
(*s_objet_argument_1).objet)).format, 0, 0, ' ', |
(*s_objet_argument_1).objet)).format, 0, 0, ' ', |
'F', &longueur_effective, &recursivite)) == NULL) |
'F', &longueur_effective, &recursivite, d_vrai)) |
|
== NULL) |
{ |
{ |
liberation(s_etat_processus, s_objet_argument_3); |
liberation(s_etat_processus, s_objet_argument_3); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
Line 897 instruction_write(struct_processus *s_et
|
Line 898 instruction_write(struct_processus *s_et
|
|
|
if ((chaine = formateur_fichier(s_etat_processus, |
if ((chaine = formateur_fichier(s_etat_processus, |
s_element, s_format, 0, 0, ' ', |
s_element, s_format, 0, 0, ' ', |
'F', &longueur_effective, &recursivite)) == NULL) |
'F', &longueur_effective, &recursivite, d_vrai)) |
|
== NULL) |
{ |
{ |
liberation(s_etat_processus, s_element); |
liberation(s_etat_processus, s_element); |
liberation(s_etat_processus, s_format); |
liberation(s_etat_processus, s_format); |
Line 1211 instruction_write(struct_processus *s_et
|
Line 1213 instruction_write(struct_processus *s_et
|
|
|
if ((chaine = formateur_fichier(s_etat_processus, |
if ((chaine = formateur_fichier(s_etat_processus, |
s_element, s_format, 0, 0, ' ', |
s_element, s_format, 0, 0, ' ', |
'F', &longueur_effective, &recursivite)) == NULL) |
'F', &longueur_effective, &recursivite, d_vrai)) |
|
== NULL) |
{ |
{ |
free(clef_utf8); |
free(clef_utf8); |
|
|
Line 1304 instruction_write(struct_processus *s_et
|
Line 1307 instruction_write(struct_processus *s_et
|
* Fichiers non formatés |
* Fichiers non formatés |
*/ |
*/ |
|
|
if ((chaine = formateur_fichier(s_etat_processus, |
|
s_objet_argument_2, (*((struct_fichier *) |
|
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'U', |
|
&longueur_effective, &recursivite)) == NULL) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
return; |
|
} |
|
|
|
if ((*((struct_fichier *) (*s_objet_argument_1).objet)).acces |
if ((*((struct_fichier *) (*s_objet_argument_1).objet)).acces |
== 'S') |
== 'S') |
{ |
{ |
|
if ((*s_objet_argument_2).type != LST) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_type_argument; |
|
return; |
|
} |
|
|
|
if ((chaine = formateur_fichier(s_etat_processus, |
|
s_objet_argument_2, (*((struct_fichier *) |
|
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'U', |
|
&longueur_effective, &recursivite, d_vrai)) == NULL) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
return; |
|
} |
|
|
BUG(((*descripteur).type != 'C'), uprintf("Bad filetype !\n")); |
BUG(((*descripteur).type != 'C'), uprintf("Bad filetype !\n")); |
|
|
if (fseek((*descripteur).descripteur_c, (long) 0, SEEK_END) |
if (fseek((*descripteur).descripteur_c, (long) 0, SEEK_END) |
Line 1341 instruction_write(struct_processus *s_et
|
Line 1354 instruction_write(struct_processus *s_et
|
else if ((*((struct_fichier *) (*s_objet_argument_1).objet)).acces |
else if ((*((struct_fichier *) (*s_objet_argument_1).objet)).acces |
== 'D') |
== 'D') |
{ |
{ |
|
if ((*s_objet_argument_2).type != INT) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_type_argument; |
|
return; |
|
} |
|
|
|
if (depilement(s_etat_processus, &((*s_etat_processus) |
|
.l_base_pile), &s_objet_argument_3) == d_erreur) |
|
{ |
|
(*s_etat_processus).erreur_execution = d_ex_manque_argument; |
|
return; |
|
} |
|
|
|
if ((*s_objet_argument_3).type != LST) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_3); |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_type_argument; |
|
return; |
|
} |
|
|
|
if ((chaine = formateur_fichier(s_etat_processus, |
|
s_objet_argument_2, (*((struct_fichier *) |
|
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'U', |
|
&longueur_effective, &recursivite, d_faux)) == NULL) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
return; |
|
} |
} |
} |
else |
else // Fichiers indexés |
{ |
{ |
/* Fichiers indexés : panique totale ! */ |
if ((*s_objet_argument_2).type != LST) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
(*s_etat_processus).erreur_execution = |
|
d_ex_erreur_type_argument; |
|
return; |
|
} |
|
|
|
if ((chaine = formateur_fichier(s_etat_processus, |
|
s_objet_argument_2, (*((struct_fichier *) |
|
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'U', |
|
&longueur_effective, &recursivite, d_faux)) == NULL) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
return; |
|
} |
} |
} |
|
|
free(chaine); |
free(chaine); |
Line 1560 instruction_write(struct_processus *s_et
|
Line 1630 instruction_write(struct_processus *s_et
|
if ((chaine = formateur_fichier(s_etat_processus, |
if ((chaine = formateur_fichier(s_etat_processus, |
s_objet_argument_2, (*((struct_socket *) |
s_objet_argument_2, (*((struct_socket *) |
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'F', |
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'F', |
&longueur_effective, &recursivite)) == NULL) |
&longueur_effective, &recursivite, d_faux)) == NULL) |
{ |
{ |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
Line 1575 instruction_write(struct_processus *s_et
|
Line 1645 instruction_write(struct_processus *s_et
|
* Sockets non formatées |
* Sockets non formatées |
*/ |
*/ |
|
|
chaine = NULL; |
if ((chaine = formateur_fichier(s_etat_processus, |
|
s_objet_argument_2, (*((struct_socket *) |
|
(*s_objet_argument_1).objet)).format, 0, 0, ' ', 'U', |
|
&longueur_effective, &recursivite, d_faux)) == NULL) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
|
|
return; |
|
} |
} |
} |
else |
else |
{ |
{ |