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/operands | |
parent | 1865cce4d51b9c7a6fb718f4e2c034a57365ad1b (diff) |
Improve the code quality by renaming the type for packed buffers.
Diffstat (limited to 'src/arch/operands')
-rw-r--r-- | src/arch/operands/feeder-int.h | 4 | ||||
-rw-r--r-- | src/arch/operands/feeder.c | 4 | ||||
-rw-r--r-- | src/arch/operands/feeder.h | 4 | ||||
-rw-r--r-- | src/arch/operands/immediate.c | 16 | ||||
-rw-r--r-- | src/arch/operands/proxy.c | 8 | ||||
-rw-r--r-- | src/arch/operands/register.c | 12 | ||||
-rw-r--r-- | src/arch/operands/target.c | 8 |
7 files changed, 28 insertions, 28 deletions
diff --git a/src/arch/operands/feeder-int.h b/src/arch/operands/feeder-int.h index 9a58dd5..86bc98f 100644 --- a/src/arch/operands/feeder-int.h +++ b/src/arch/operands/feeder-int.h @@ -36,10 +36,10 @@ typedef int (* compare_proxy_operand_fc) (const GProxyFeeder *, const GProxyFeed typedef void (* print_proxy_feeder_fc) (const GProxyFeeder *, GBufferLine *); /* Charge un fournisseur depuis une mémoire tampon. */ -typedef bool (* unserialize_proxy_feeder_fc) (GProxyFeeder *, GBinFormat *, packed_buffer *); +typedef bool (* unserialize_proxy_feeder_fc) (GProxyFeeder *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un fournisseur dans une mémoire tampon. */ -typedef bool (* serialize_proxy_feeder_fc) (const GProxyFeeder *, packed_buffer *); +typedef bool (* serialize_proxy_feeder_fc) (const GProxyFeeder *, packed_buffer_t *); diff --git a/src/arch/operands/feeder.c b/src/arch/operands/feeder.c index 6d24efc..f34475c 100644 --- a/src/arch/operands/feeder.c +++ b/src/arch/operands/feeder.c @@ -120,7 +120,7 @@ void g_proxy_feeder_print(const GProxyFeeder *feeder, GBufferLine *line) * * ******************************************************************************/ -bool g_proxy_feeder_unserialize(GProxyFeeder *feeder, GBinFormat *format, packed_buffer *pbuf) +bool g_proxy_feeder_unserialize(GProxyFeeder *feeder, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GProxyFeederIface *iface; /* Interface utilisée */ @@ -147,7 +147,7 @@ bool g_proxy_feeder_unserialize(GProxyFeeder *feeder, GBinFormat *format, packed * * ******************************************************************************/ -bool g_proxy_feeder_serialize(const GProxyFeeder *feeder, packed_buffer *pbuf) +bool g_proxy_feeder_serialize(const GProxyFeeder *feeder, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GProxyFeederIface *iface; /* Interface utilisée */ diff --git a/src/arch/operands/feeder.h b/src/arch/operands/feeder.h index d2b2cff..2d8559e 100644 --- a/src/arch/operands/feeder.h +++ b/src/arch/operands/feeder.h @@ -60,10 +60,10 @@ int g_proxy_feeder_compare(const GProxyFeeder *, const GProxyFeeder *); void g_proxy_feeder_print(const GProxyFeeder *, GBufferLine *); /* Charge un fournisseur depuis une mémoire tampon. */ -bool g_proxy_feeder_unserialize(GProxyFeeder *, GBinFormat *, packed_buffer *); +bool g_proxy_feeder_unserialize(GProxyFeeder *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un fournisseur dans une mémoire tampon. */ -bool g_proxy_feeder_serialize(const GProxyFeeder *, packed_buffer *); +bool g_proxy_feeder_serialize(const GProxyFeeder *, packed_buffer_t *); diff --git a/src/arch/operands/immediate.c b/src/arch/operands/immediate.c index 2a3ca0b..cb39fce 100644 --- a/src/arch/operands/immediate.c +++ b/src/arch/operands/immediate.c @@ -156,10 +156,10 @@ static void g_imm_operand_print(const GImmOperand *, GBufferLine *); static char *g_imm_operand_build_tooltip(const GImmOperand *, const GLoadedBinary *); /* Charge un opérande depuis une mémoire tampon. */ -static bool g_imm_operand_unserialize(GImmOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_imm_operand_unserialize(GImmOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_imm_operand_serialize(const GImmOperand *, GAsmStorage *, packed_buffer *); +static bool g_imm_operand_serialize(const GImmOperand *, GAsmStorage *, packed_buffer_t *); /* Obtient l'adresse de la cible visée par un opérande. */ static bool g_imm_operand_get_addr(const GImmOperand *, const vmpa2t *, GBinFormat *, GArchProcessor *, vmpa2t *); @@ -211,10 +211,10 @@ static int g_known_imm_operand_compare(const GKnownImmOperand *, const GKnownImm static void g_known_imm_operand_print(const GKnownImmOperand *, GBufferLine *); /* Charge un opérande depuis une mémoire tampon. */ -static bool g_known_imm_operand_unserialize(GKnownImmOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_known_imm_operand_unserialize(GKnownImmOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_known_imm_operand_serialize(const GKnownImmOperand *, GAsmStorage *, packed_buffer *); +static bool g_known_imm_operand_serialize(const GKnownImmOperand *, GAsmStorage *, packed_buffer_t *); /* Fournit un texte comme représentation alternative d'opérande. */ static const char *g_known_imm_operand_get_text(const GKnownImmOperand *); @@ -1586,7 +1586,7 @@ void g_imm_operand_as_uleb128(const GImmOperand *operand, uleb128_t *val) * * ******************************************************************************/ -static bool g_imm_operand_unserialize(GImmOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_imm_operand_unserialize(GImmOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -1639,7 +1639,7 @@ static bool g_imm_operand_unserialize(GImmOperand *operand, GAsmStorage *storage * * ******************************************************************************/ -static bool g_imm_operand_serialize(const GImmOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_imm_operand_serialize(const GImmOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -1963,7 +1963,7 @@ static void g_known_imm_operand_print(const GKnownImmOperand *operand, GBufferLi * * ******************************************************************************/ -static bool g_known_imm_operand_unserialize(GKnownImmOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_known_imm_operand_unserialize(GKnownImmOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -2006,7 +2006,7 @@ static bool g_known_imm_operand_unserialize(GKnownImmOperand *operand, GAsmStora * * ******************************************************************************/ -static bool g_known_imm_operand_serialize(const GKnownImmOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_known_imm_operand_serialize(const GKnownImmOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ diff --git a/src/arch/operands/proxy.c b/src/arch/operands/proxy.c index 469e656..bf26a4f 100644 --- a/src/arch/operands/proxy.c +++ b/src/arch/operands/proxy.c @@ -55,10 +55,10 @@ static void g_proxy_operand_print(const GProxyOperand *, GBufferLine *); /* Charge un opérande depuis une mémoire tampon. */ -static bool g_proxy_operand_unserialize(GProxyOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_proxy_operand_unserialize(GProxyOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_proxy_operand_serialize(const GProxyOperand *, GAsmStorage *, packed_buffer *); +static bool g_proxy_operand_serialize(const GProxyOperand *, GAsmStorage *, packed_buffer_t *); @@ -278,7 +278,7 @@ GProxyFeeder *g_proxy_operand_get_feeder(const GProxyOperand *operand) * * ******************************************************************************/ -static bool g_proxy_operand_unserialize(GProxyOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_proxy_operand_unserialize(GProxyOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ @@ -309,7 +309,7 @@ static bool g_proxy_operand_unserialize(GProxyOperand *operand, GAsmStorage *sto * * ******************************************************************************/ -static bool g_proxy_operand_serialize(const GProxyOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_proxy_operand_serialize(const GProxyOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ diff --git a/src/arch/operands/register.c b/src/arch/operands/register.c index 81608a3..9a6de17 100644 --- a/src/arch/operands/register.c +++ b/src/arch/operands/register.c @@ -56,10 +56,10 @@ static void g_register_operand_print(const GRegisterOperand *, GBufferLine *); /* Charge un opérande depuis une mémoire tampon. */ -static bool g_register_operand_unserialize(GRegisterOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_register_operand_unserialize(GRegisterOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_register_operand_serialize(const GRegisterOperand *, GAsmStorage *, packed_buffer *); +static bool g_register_operand_serialize(const GRegisterOperand *, GAsmStorage *, packed_buffer_t *); @@ -315,12 +315,12 @@ bool g_register_operand_is_written(const GRegisterOperand *operand) * * ******************************************************************************/ -static bool g_register_operand_unserialize(GRegisterOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_register_operand_unserialize(GRegisterOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ off64_t pos; /* Position dans le flux */ - packed_buffer reg_pbuf; /* Tampon des données à écrire */ + packed_buffer_t reg_pbuf; /* Tampon des données à écrire */ GArchRegister *reg; /* Registre restauré */ parent = G_ARCH_OPERAND_CLASS(g_register_operand_parent_class); @@ -368,12 +368,12 @@ static bool g_register_operand_unserialize(GRegisterOperand *operand, GAsmStorag * * ******************************************************************************/ -static bool g_register_operand_serialize(const GRegisterOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_register_operand_serialize(const GRegisterOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperandClass *parent; /* Classe parente à consulter */ off64_t pos; /* Position dans le flux */ - packed_buffer reg_pbuf; /* Tampon des données à écrire */ + packed_buffer_t reg_pbuf; /* Tampon des données à écrire */ parent = G_ARCH_OPERAND_CLASS(g_register_operand_parent_class); diff --git a/src/arch/operands/target.c b/src/arch/operands/target.c index 2c75f1c..5edc805 100644 --- a/src/arch/operands/target.c +++ b/src/arch/operands/target.c @@ -74,10 +74,10 @@ static char *g_target_operand_build_tooltip(const GTargetOperand *, const GLoade /* Charge un opérande depuis une mémoire tampon. */ -static bool g_target_operand_unserialize(GTargetOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_target_operand_unserialize(GTargetOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_target_operand_serialize(const GTargetOperand *, GAsmStorage *, packed_buffer *); +static bool g_target_operand_serialize(const GTargetOperand *, GAsmStorage *, packed_buffer_t *); @@ -590,7 +590,7 @@ GBinSymbol *g_target_operand_get_symbol(const GTargetOperand *operand, phys_t *d * * ******************************************************************************/ -static bool g_target_operand_unserialize(GTargetOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_target_operand_unserialize(GTargetOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ @@ -629,7 +629,7 @@ static bool g_target_operand_unserialize(GTargetOperand *operand, GAsmStorage *s * * ******************************************************************************/ -static bool g_target_operand_serialize(const GTargetOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_target_operand_serialize(const GTargetOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchOperand *original; /* Opérande d'origine */ |