diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2021-06-01 22:32:50 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2021-06-01 22:32:50 (GMT) |
commit | 9eab0a0903303d3c93872e7e4b6b1cb774b69b03 (patch) | |
tree | ae8594cae830118ca3a92ee60242490e58c14a9e /src/arch/instruction.c | |
parent | 1865cce4d51b9c7a6fb718f4e2c034a57365ad1b (diff) |
Improve the code quality by renaming the type for packed buffers.
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r-- | src/arch/instruction.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c index 52c3aa0..4079e82 100644 --- a/src/arch/instruction.c +++ b/src/arch/instruction.c @@ -62,10 +62,10 @@ static void g_arch_instruction_finalize(GArchInstruction *); /* Charge une instruction depuis une mémoire tampon. */ -static bool g_arch_instruction_unserialize(GArchInstruction *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_arch_instruction_unserialize(GArchInstruction *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde une instruction dans une mémoire tampon. */ -static bool g_arch_instruction_serialize(GArchInstruction *, GAsmStorage *, packed_buffer *); +static bool g_arch_instruction_serialize(GArchInstruction *, GAsmStorage *, packed_buffer_t *); @@ -1660,16 +1660,16 @@ const char *g_arch_instruction_get_description(const GArchInstruction *instr) * * ******************************************************************************/ -static bool g_arch_instruction_unserialize(GArchInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_arch_instruction_unserialize(GArchInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ - packed_buffer op_pbuf; /* Tampon des données à écrire */ + packed_buffer_t op_pbuf; /* Tampon des données à écrire */ size_t count; /* Nombre d'éléments à traiter */ size_t i; /* Boucle de parcours */ off64_t pos; /* Position dans le flux */ GArchOperand *op; /* Opérande à traiter */ instr_link_t link; /* Lien vers une instruction */ - packed_buffer ins_pbuf; /* Tampon des données à écrire */ + packed_buffer_t ins_pbuf; /* Tampon des données à écrire */ instr_obj_extra *extra; /* Données insérées à consulter*/ result = unpack_mrange(&instr->range, pbuf); @@ -1784,7 +1784,7 @@ static bool g_arch_instruction_unserialize(GArchInstruction *instr, GAsmStorage * * ******************************************************************************/ -GArchInstruction *g_arch_instruction_load(GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +GArchInstruction *g_arch_instruction_load(GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { GArchInstruction *result; /* Instance à retourner */ bool status; /* Bilan du chargement */ @@ -1822,10 +1822,10 @@ GArchInstruction *g_arch_instruction_load(GAsmStorage *storage, GBinFormat *form * * ******************************************************************************/ -static bool g_arch_instruction_serialize(GArchInstruction *instr, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_arch_instruction_serialize(GArchInstruction *instr, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ - packed_buffer op_pbuf; /* Tampon des données à écrire */ + packed_buffer_t op_pbuf; /* Tampon des données à écrire */ size_t count; /* Nombre d'éléments à traiter */ size_t i; /* Boucle de parcours */ GArchOperand *op; /* Opérande à traiter */ @@ -1966,7 +1966,7 @@ static bool g_arch_instruction_serialize(GArchInstruction *instr, GAsmStorage *s * * ******************************************************************************/ -bool g_arch_instruction_store(GArchInstruction *instr, GAsmStorage *storage, packed_buffer *pbuf) +bool g_arch_instruction_store(GArchInstruction *instr, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ |