version 1.92, 2015/01/05 15:32:21
|
version 1.97, 2015/11/26 11:44:39
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.20 |
RPL/2 (R) version 4.1.24 |
Copyright (C) 1989-2015 Dr. BERTRAND Joël |
Copyright (C) 1989-2015 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
Line 1331 instruction_read(struct_processus *s_eta
|
Line 1331 instruction_read(struct_processus *s_eta
|
return; |
return; |
} |
} |
|
|
if (alsprintf(&commande, "select data from data where " |
if (alsprintf(s_etat_processus, &commande, |
"id = %lld", (*((integer8 *) (*s_objet_argument_2) |
"select data from data where id = %lld", |
.objet))) < 0) |
(*((integer8 *) (*s_objet_argument_2).objet))) < 0) |
{ |
{ |
(*s_etat_processus).erreur_systeme = |
(*s_etat_processus).erreur_systeme = |
d_es_allocation_memoire; |
d_es_allocation_memoire; |
Line 1504 instruction_read(struct_processus *s_eta
|
Line 1504 instruction_read(struct_processus *s_eta
|
|
|
// Récupération de la position de la clef |
// Récupération de la position de la clef |
|
|
if (alsprintf(&commande, "select key from control " |
if (alsprintf(s_etat_processus, &commande, |
"where id = 1") < 0) |
"select key from control where id = 1") < 0) |
{ |
{ |
(*s_etat_processus).erreur_systeme = |
(*s_etat_processus).erreur_systeme = |
d_es_allocation_memoire; |
d_es_allocation_memoire; |
Line 1578 instruction_read(struct_processus *s_eta
|
Line 1578 instruction_read(struct_processus *s_eta
|
|
|
// Récupération de l'identifiant de la clef |
// Récupération de l'identifiant de la clef |
|
|
if (alsprintf(&commande, "select id from key where key = " |
if (alsprintf(s_etat_processus, &commande, |
"'{ \"%s\" }'", clef_utf8) < 0) |
"select id from key where key = '{ \"%s\" }'", |
|
clef_utf8) < 0) |
{ |
{ |
(*s_etat_processus).erreur_systeme = |
(*s_etat_processus).erreur_systeme = |
d_es_allocation_memoire; |
d_es_allocation_memoire; |
Line 1671 instruction_read(struct_processus *s_eta
|
Line 1672 instruction_read(struct_processus *s_eta
|
|
|
free(commande); |
free(commande); |
|
|
if (alsprintf(&commande, "select data from data where " |
if (alsprintf(s_etat_processus, &commande, |
|
"select data from data where " |
"key_id = %lld order by sequence asc", id) < 0) |
"key_id = %lld order by sequence asc", id) < 0) |
{ |
{ |
(*s_etat_processus).erreur_systeme = |
(*s_etat_processus).erreur_systeme = |
Line 1801 instruction_read(struct_processus *s_eta
|
Line 1803 instruction_read(struct_processus *s_eta
|
return; |
return; |
} |
} |
|
|
if (alsprintf(&tampon2, "{ \"%s\" }", |
if (alsprintf(s_etat_processus, &tampon2, |
(*s_etat_processus) |
"{ \"%s\" }", (*s_etat_processus) |
.instruction_courante) < 0) |
.instruction_courante) < 0) |
{ |
{ |
(*s_etat_processus).erreur_systeme = |
(*s_etat_processus).erreur_systeme = |
Line 2060 instruction_read(struct_processus *s_eta
|
Line 2062 instruction_read(struct_processus *s_eta
|
return; |
return; |
} |
} |
|
|
if ((format_chaine = conversion_majuscule((unsigned char *) |
if ((format_chaine = conversion_majuscule( |
|
s_etat_processus, (unsigned char *) |
(*(*l_element_courant_format).donnee).objet)) |
(*(*l_element_courant_format).donnee).objet)) |
== NULL) |
== NULL) |
{ |
{ |