diff options
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/instruction-int.h | 4 | ||||
-rw-r--r-- | src/arch/instruction.c | 18 | ||||
-rw-r--r-- | src/arch/instruction.h | 4 | ||||
-rw-r--r-- | src/arch/instructions/raw.c | 8 | ||||
-rw-r--r-- | src/arch/instructions/undefined.c | 8 | ||||
-rw-r--r-- | src/arch/meta.c | 8 | ||||
-rw-r--r-- | src/arch/operand-int.h | 4 | ||||
-rw-r--r-- | src/arch/operand.c | 12 | ||||
-rw-r--r-- | src/arch/operand.h | 4 | ||||
-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 | ||||
-rw-r--r-- | src/arch/register-int.h | 4 | ||||
-rw-r--r-- | src/arch/register.c | 12 | ||||
-rw-r--r-- | src/arch/register.h | 4 | ||||
-rw-r--r-- | src/arch/storage.c | 18 | ||||
-rw-r--r-- | src/arch/storage.h | 10 | ||||
-rw-r--r-- | src/arch/vmpa.c | 8 | ||||
-rw-r--r-- | src/arch/vmpa.h | 8 |
23 files changed, 95 insertions, 95 deletions
diff --git a/src/arch/instruction-int.h b/src/arch/instruction-int.h index ed172bb..6a3ccea 100644 --- a/src/arch/instruction-int.h +++ b/src/arch/instruction-int.h @@ -47,10 +47,10 @@ typedef char * (* build_instruction_tooltip_fc) (const GArchInstruction *); typedef const char * (* get_instruction_desc_fc) (const GArchInstruction *); /* Charge une instruction depuis une mémoire tampon. */ -typedef bool (* unserialize_instruction_fc) (GArchInstruction *, GAsmStorage *, GBinFormat *, packed_buffer *); +typedef bool (* unserialize_instruction_fc) (GArchInstruction *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde une instruction dans une mémoire tampon. */ -typedef bool (* serialize_instruction_fc) (GArchInstruction *, GAsmStorage *, packed_buffer *); +typedef bool (* serialize_instruction_fc) (GArchInstruction *, GAsmStorage *, packed_buffer_t *); /* Ajoute à un tampon GLib le contenu de l'instance spécifiée. */ typedef GBufferLine * (* print_instruction_fc) (const GArchInstruction *, GBufferLine *, size_t, size_t, const GBinContent *); 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 */ diff --git a/src/arch/instruction.h b/src/arch/instruction.h index 0401853..80c500b 100644 --- a/src/arch/instruction.h +++ b/src/arch/instruction.h @@ -318,10 +318,10 @@ typedef struct _GAsmStorage GAsmStorage; /* Charge une instruction depuis une mémoire tampon. */ -GArchInstruction *g_arch_instruction_load(GAsmStorage *, GBinFormat *, packed_buffer *); +GArchInstruction *g_arch_instruction_load(GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde une instruction dans une mémoire tampon. */ -bool g_arch_instruction_store(GArchInstruction *, GAsmStorage *, packed_buffer *); +bool g_arch_instruction_store(GArchInstruction *, GAsmStorage *, packed_buffer_t *); diff --git a/src/arch/instructions/raw.c b/src/arch/instructions/raw.c index 0c27258..481dd1c 100644 --- a/src/arch/instructions/raw.c +++ b/src/arch/instructions/raw.c @@ -81,10 +81,10 @@ static const char *g_raw_instruction_get_keyword(const GRawInstruction *); /* Charge une instruction depuis une mémoire tampon. */ -static bool g_raw_instruction_unserialize(GRawInstruction *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_raw_instruction_unserialize(GRawInstruction *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde une instruction dans une mémoire tampon. */ -static bool g_raw_instruction_serialize(GRawInstruction *, GAsmStorage *, packed_buffer *); +static bool g_raw_instruction_serialize(GRawInstruction *, GAsmStorage *, packed_buffer_t *); @@ -512,7 +512,7 @@ static const char *g_raw_instruction_get_keyword(const GRawInstruction *instr) * * ******************************************************************************/ -static bool g_raw_instruction_unserialize(GRawInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_raw_instruction_unserialize(GRawInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchInstructionClass *parent; /* Classe parente à consulter */ @@ -559,7 +559,7 @@ static bool g_raw_instruction_unserialize(GRawInstruction *instr, GAsmStorage *s * * ******************************************************************************/ -static bool g_raw_instruction_serialize(GRawInstruction *instr, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_raw_instruction_serialize(GRawInstruction *instr, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchInstructionClass *parent; /* Classe parente à consulter */ diff --git a/src/arch/instructions/undefined.c b/src/arch/instructions/undefined.c index dab7864..880e338 100644 --- a/src/arch/instructions/undefined.c +++ b/src/arch/instructions/undefined.c @@ -59,10 +59,10 @@ static const char *g_undef_instruction_get_keyword(const GUndefInstruction *); /* Charge une instruction depuis une mémoire tampon. */ -static bool g_undef_instruction_unserialize(GUndefInstruction *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_undef_instruction_unserialize(GUndefInstruction *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde une instruction dans une mémoire tampon. */ -static bool g_undef_instruction_serialize(GUndefInstruction *, GAsmStorage *, packed_buffer *); +static bool g_undef_instruction_serialize(GUndefInstruction *, GAsmStorage *, packed_buffer_t *); @@ -296,7 +296,7 @@ const char *g_undef_instruction_get_keyword(const GUndefInstruction *instr) * * ******************************************************************************/ -static bool g_undef_instruction_unserialize(GUndefInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_undef_instruction_unserialize(GUndefInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchInstructionClass *parent; /* Classe parente à consulter */ @@ -333,7 +333,7 @@ static bool g_undef_instruction_unserialize(GUndefInstruction *instr, GAsmStorag * * ******************************************************************************/ -static bool g_undef_instruction_serialize(GUndefInstruction *instr, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_undef_instruction_serialize(GUndefInstruction *instr, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchInstructionClass *parent; /* Classe parente à consulter */ diff --git a/src/arch/meta.c b/src/arch/meta.c index 8469ed7..137a043 100644 --- a/src/arch/meta.c +++ b/src/arch/meta.c @@ -78,10 +78,10 @@ static const char *g_meta_instruction_get_keyword(const GMetaInstruction *); /* Charge une instruction depuis une mémoire tampon. */ -static bool g_meta_instruction_unserialize(GMetaInstruction *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_meta_instruction_unserialize(GMetaInstruction *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde une instruction dans une mémoire tampon. */ -static bool g_meta_instruction_serialize(GMetaInstruction *, GAsmStorage *, packed_buffer *); +static bool g_meta_instruction_serialize(GMetaInstruction *, GAsmStorage *, packed_buffer_t *); @@ -386,7 +386,7 @@ void g_meta_instruction_add_child(GMetaInstruction *instr, GArchInstruction *chi * * ******************************************************************************/ -static bool g_meta_instruction_unserialize(GMetaInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_meta_instruction_unserialize(GMetaInstruction *instr, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchInstructionClass *parent; /* Classe parente à consulter */ @@ -414,7 +414,7 @@ static bool g_meta_instruction_unserialize(GMetaInstruction *instr, GAsmStorage * * ******************************************************************************/ -static bool g_meta_instruction_serialize(GMetaInstruction *instr, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_meta_instruction_serialize(GMetaInstruction *instr, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GArchInstructionClass *parent; /* Classe parente à consulter */ diff --git a/src/arch/operand-int.h b/src/arch/operand-int.h index b019ac1..a50ec73 100644 --- a/src/arch/operand-int.h +++ b/src/arch/operand-int.h @@ -45,10 +45,10 @@ typedef void (* operand_print_fc) (const GArchOperand *, GBufferLine *); typedef char * (* operand_build_tooltip_fc) (const GArchOperand *, const GLoadedBinary *); /* Charge un opérande depuis une mémoire tampon. */ -typedef bool (* unserialize_operand_fc) (GArchOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +typedef bool (* unserialize_operand_fc) (GArchOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -typedef bool (* serialize_operand_fc) (const GArchOperand *, GAsmStorage *, packed_buffer *); +typedef bool (* serialize_operand_fc) (const GArchOperand *, GAsmStorage *, packed_buffer_t *); /* Définition générique d'un opérande d'architecture (instance) */ diff --git a/src/arch/operand.c b/src/arch/operand.c index 92fb1d6..3758d7f 100644 --- a/src/arch/operand.c +++ b/src/arch/operand.c @@ -59,10 +59,10 @@ static void g_arch_operand_finalize(GArchOperand *); /* Charge un opérande depuis une mémoire tampon. */ -static bool g_arch_operand_unserialize(GArchOperand *, GAsmStorage *, GBinFormat *, packed_buffer *); +static bool g_arch_operand_unserialize(GArchOperand *, GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -static bool g_arch_operand_serialize(const GArchOperand *, GAsmStorage *, packed_buffer *); +static bool g_arch_operand_serialize(const GArchOperand *, GAsmStorage *, packed_buffer_t *); @@ -324,7 +324,7 @@ char *g_arch_operand_build_tooltip(const GArchOperand *operand, const GLoadedBin * * ******************************************************************************/ -static bool g_arch_operand_unserialize(GArchOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +static bool g_arch_operand_unserialize(GArchOperand *operand, GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ @@ -349,7 +349,7 @@ static bool g_arch_operand_unserialize(GArchOperand *operand, GAsmStorage *stora * * ******************************************************************************/ -GArchOperand *g_arch_operand_load(GAsmStorage *storage, GBinFormat *format, packed_buffer *pbuf) +GArchOperand *g_arch_operand_load(GAsmStorage *storage, GBinFormat *format, packed_buffer_t *pbuf) { GArchOperand *result; /* Instance à retourner */ bool status; /* Bilan du chargement */ @@ -387,7 +387,7 @@ GArchOperand *g_arch_operand_load(GAsmStorage *storage, GBinFormat *format, pack * * ******************************************************************************/ -static bool g_arch_operand_serialize(const GArchOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_arch_operand_serialize(const GArchOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ @@ -412,7 +412,7 @@ static bool g_arch_operand_serialize(const GArchOperand *operand, GAsmStorage *s * * ******************************************************************************/ -bool g_arch_operand_store(const GArchOperand *operand, GAsmStorage *storage, packed_buffer *pbuf) +bool g_arch_operand_store(const GArchOperand *operand, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ diff --git a/src/arch/operand.h b/src/arch/operand.h index 4d3a80a..9e1b5a8 100644 --- a/src/arch/operand.h +++ b/src/arch/operand.h @@ -84,10 +84,10 @@ typedef struct _GAsmStorage GAsmStorage; /* Charge un opérande depuis une mémoire tampon. */ -GArchOperand *g_arch_operand_load(GAsmStorage *, GBinFormat *, packed_buffer *); +GArchOperand *g_arch_operand_load(GAsmStorage *, GBinFormat *, packed_buffer_t *); /* Sauvegarde un opérande dans une mémoire tampon. */ -bool g_arch_operand_store(const GArchOperand *, GAsmStorage *, packed_buffer *); +bool g_arch_operand_store(const GArchOperand *, GAsmStorage *, packed_buffer_t *); 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 */ diff --git a/src/arch/register-int.h b/src/arch/register-int.h index cdbc92b..a162435 100644 --- a/src/arch/register-int.h +++ b/src/arch/register-int.h @@ -48,10 +48,10 @@ typedef bool (* reg_is_base_pointer_fc) (const GArchRegister *); typedef bool (* reg_is_stack_pointer_fc) (const GArchRegister *); /* Charge un registre depuis une mémoire tampon. */ -typedef GArchRegister * (* reg_unserialize_fc) (GArchRegister *, GAsmStorage *, packed_buffer *); +typedef GArchRegister * (* reg_unserialize_fc) (GArchRegister *, GAsmStorage *, packed_buffer_t *); /* Sauvegarde un registre dans une mémoire tampon. */ -typedef bool (* reg_serialize_fc) (const GArchRegister *, GAsmStorage *, packed_buffer *); +typedef bool (* reg_serialize_fc) (const GArchRegister *, GAsmStorage *, packed_buffer_t *); /* Représentation d'un registre (instance) */ diff --git a/src/arch/register.c b/src/arch/register.c index 0309c62..740a06b 100644 --- a/src/arch/register.c +++ b/src/arch/register.c @@ -50,10 +50,10 @@ static void g_arch_register_finalize(GArchRegister *); /* Charge un registre depuis une mémoire tampon. */ -static GArchRegister *g_arch_register_unserialize(GArchRegister *, GAsmStorage *, packed_buffer *); +static GArchRegister *g_arch_register_unserialize(GArchRegister *, GAsmStorage *, packed_buffer_t *); /* Sauvegarde un registre dans une mémoire tampon. */ -static bool g_arch_register_serialize(const GArchRegister *, GAsmStorage *, packed_buffer *); +static bool g_arch_register_serialize(const GArchRegister *, GAsmStorage *, packed_buffer_t *); @@ -280,7 +280,7 @@ bool g_arch_register_is_stack_pointer(const GArchRegister *reg) * * ******************************************************************************/ -static GArchRegister *g_arch_register_unserialize(GArchRegister *reg, GAsmStorage *storage, packed_buffer *pbuf) +static GArchRegister *g_arch_register_unserialize(GArchRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf) { GArchRegister *result; /* Instance à retourner */ @@ -304,7 +304,7 @@ static GArchRegister *g_arch_register_unserialize(GArchRegister *reg, GAsmStorag * * ******************************************************************************/ -GArchRegister *g_arch_register_load(GAsmStorage *storage, packed_buffer *pbuf) +GArchRegister *g_arch_register_load(GAsmStorage *storage, packed_buffer_t *pbuf) { GArchRegister *result; /* Instance à retourner */ GArchRegister *dummy; /* Patron du type de registre */ @@ -343,7 +343,7 @@ GArchRegister *g_arch_register_load(GAsmStorage *storage, packed_buffer *pbuf) * * ******************************************************************************/ -static bool g_arch_register_serialize(const GArchRegister *reg, GAsmStorage *storage, packed_buffer *pbuf) +static bool g_arch_register_serialize(const GArchRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ @@ -368,7 +368,7 @@ static bool g_arch_register_serialize(const GArchRegister *reg, GAsmStorage *sto * * ******************************************************************************/ -bool g_arch_register_store(const GArchRegister *reg, GAsmStorage *storage, packed_buffer *pbuf) +bool g_arch_register_store(const GArchRegister *reg, GAsmStorage *storage, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ diff --git a/src/arch/register.h b/src/arch/register.h index 10fa428..36bd9d9 100644 --- a/src/arch/register.h +++ b/src/arch/register.h @@ -79,10 +79,10 @@ typedef struct _GAsmStorage GAsmStorage; /* Charge un registre depuis une mémoire tampon. */ -GArchRegister *g_arch_register_load(GAsmStorage *, packed_buffer *); +GArchRegister *g_arch_register_load(GAsmStorage *, packed_buffer_t *); /* Sauvegarde un registre dans une mémoire tampon. */ -bool g_arch_register_store(const GArchRegister *, GAsmStorage *, packed_buffer *); +bool g_arch_register_store(const GArchRegister *, GAsmStorage *, packed_buffer_t *); diff --git a/src/arch/storage.c b/src/arch/storage.c index 269228c..41fa602 100644 --- a/src/arch/storage.c +++ b/src/arch/storage.c @@ -394,7 +394,7 @@ static void g_ins_caching_process(GInsCaching *caching, GtkStatusStack *status) static void g_ins_caching_process_load(GInsCaching *caching, GtkStatusStack *status) { GAsmStorage *storage; /* Cache de destinartion */ - packed_buffer pbuf; /* Tampon des données à écrire */ + packed_buffer_t pbuf; /* Tampon des données à écrire */ off64_t i; /* Boucle de parcours */ off64_t pos; /* Position courante */ GArchInstruction *instr; /* Instruction à traiter */ @@ -459,7 +459,7 @@ static void g_ins_caching_process_store(GInsCaching *caching, GtkStatusStack *st { GArchProcessor *proc; /* Ensemble à traiter */ GAsmStorage *storage; /* Cache de destinartion */ - packed_buffer pbuf; /* Tampon des données à écrire */ + packed_buffer_t pbuf; /* Tampon des données à écrire */ size_t count; /* Quantité d'instructions */ phys_t last_phys; /* Dernière position physique */ size_t i; /* Boucle de parcours #1 */ @@ -1007,7 +1007,7 @@ static bool g_asm_storage_compress(const GAsmStorage *storage) static bool g_asm_storage_read_types(GAsmStorage *storage) { bool result; /* Bilan à enregistrer */ - packed_buffer pbuf; /* Tampon des données à lire */ + packed_buffer_t pbuf; /* Tampon des données à lire */ size_t i; /* Boucle de parcours */ unsigned char len; /* Taille d'un nom de type */ char *name; /* Désignation d'un type */ @@ -1078,7 +1078,7 @@ static bool g_asm_storage_read_types(GAsmStorage *storage) * * ******************************************************************************/ -GObject *g_asm_storage_create_object(GAsmStorage *storage, packed_buffer *pbuf) +GObject *g_asm_storage_create_object(GAsmStorage *storage, packed_buffer_t *pbuf) { GObject *result; /* Nouvelle instance à renvoyer*/ size_t index; /* Indice du point d'insertion */ @@ -1118,7 +1118,7 @@ GObject *g_asm_storage_create_object(GAsmStorage *storage, packed_buffer *pbuf) * * ******************************************************************************/ -bool g_asm_storage_store_object_gtype(GAsmStorage *storage, GObject *obj, packed_buffer *pbuf) +bool g_asm_storage_store_object_gtype(GAsmStorage *storage, GObject *obj, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ GType gtype; /* Type à enregistrer */ @@ -1184,7 +1184,7 @@ bool g_asm_storage_store_object_gtype(GAsmStorage *storage, GObject *obj, packed static bool g_asm_storage_write_types(GAsmStorage *storage) { bool result; /* Bilan à enregistrer */ - packed_buffer pbuf; /* Tampon des données à écrire */ + packed_buffer_t pbuf; /* Tampon des données à écrire */ size_t i; /* Boucle de parcours */ const gchar *name; /* Désignation d'un type */ size_t len; /* Taille de ce nom */ @@ -1241,7 +1241,7 @@ static bool g_asm_storage_write_types(GAsmStorage *storage) * * ******************************************************************************/ -bool _g_asm_storage_load_data(const GAsmStorage *storage, StorageFileType type, packed_buffer *pbuf, off64_t pos) +bool _g_asm_storage_load_data(const GAsmStorage *storage, StorageFileType type, packed_buffer_t *pbuf, off64_t pos) { bool result; /* Bilan à retourner */ int fd; /* Flux ciblé */ @@ -1302,7 +1302,7 @@ bool _g_asm_storage_load_data(const GAsmStorage *storage, StorageFileType type, * * ******************************************************************************/ -bool _g_asm_storage_store_data(const GAsmStorage *storage, StorageFileType type, packed_buffer *pbuf, off64_t *pos) +bool _g_asm_storage_store_data(const GAsmStorage *storage, StorageFileType type, packed_buffer_t *pbuf, off64_t *pos) { bool result; /* Bilan à retourner */ int fd; /* Flux ciblé */ @@ -1517,7 +1517,7 @@ bool g_asm_storage_open(GAsmStorage *storage, GBinFormat *format, wgroup_id_t gi * * ******************************************************************************/ -GArchInstruction *g_asm_storage_get_instruction_at(GAsmStorage *storage, GBinFormat *format, off64_t index, packed_buffer *pbuf) +GArchInstruction *g_asm_storage_get_instruction_at(GAsmStorage *storage, GBinFormat *format, off64_t index, packed_buffer_t *pbuf) { GArchInstruction *result; /* Instruction à renvoyer */ off64_t pos; /* Position dans le cache */ diff --git a/src/arch/storage.h b/src/arch/storage.h index 35e3a7d..df4c573 100644 --- a/src/arch/storage.h +++ b/src/arch/storage.h @@ -67,10 +67,10 @@ GAsmStorage *g_asm_storage_new_compressed(GArchProcessor *, const gchar *); bool g_asm_storage_has_cache(const GAsmStorage *); /* Crée une nouvelle instance d'objet à partir de son type. */ -GObject *g_asm_storage_create_object(GAsmStorage *, packed_buffer *); +GObject *g_asm_storage_create_object(GAsmStorage *, packed_buffer_t *); /* Sauvegarde le type d'un objet instancié. */ -bool g_asm_storage_store_object_gtype(GAsmStorage *, GObject *, packed_buffer *); +bool g_asm_storage_store_object_gtype(GAsmStorage *, GObject *, packed_buffer_t *); /* Type de fichier intermédiaire */ typedef enum _StorageFileType @@ -82,7 +82,7 @@ typedef enum _StorageFileType } StorageFileType; /* Charge des données rassemblées. */ -bool _g_asm_storage_load_data(const GAsmStorage *, StorageFileType, packed_buffer *, off64_t); +bool _g_asm_storage_load_data(const GAsmStorage *, StorageFileType, packed_buffer_t *, off64_t); #define g_asm_storage_load_instruction_data(s, b, p) \ _g_asm_storage_load_data(s, SFT_INSTRUCTION, b, p) @@ -94,7 +94,7 @@ bool _g_asm_storage_load_data(const GAsmStorage *, StorageFileType, packed_buffe _g_asm_storage_load_data(s, SFT_REGISTER, b, p) /* Sauvegarde des données rassemblées. */ -bool _g_asm_storage_store_data(const GAsmStorage *, StorageFileType, packed_buffer *, off64_t *); +bool _g_asm_storage_store_data(const GAsmStorage *, StorageFileType, packed_buffer_t *, off64_t *); #define g_asm_storage_store_instruction_data(s, b, p) \ _g_asm_storage_store_data(s, SFT_INSTRUCTION, b, p) @@ -109,7 +109,7 @@ bool _g_asm_storage_store_data(const GAsmStorage *, StorageFileType, packed_buff bool g_asm_storage_open(GAsmStorage *, GBinFormat *, wgroup_id_t); /* Fournit l'instruction correspondant à une position indicée. */ -GArchInstruction *g_asm_storage_get_instruction_at(GAsmStorage *, GBinFormat *, off64_t, packed_buffer *); +GArchInstruction *g_asm_storage_get_instruction_at(GAsmStorage *, GBinFormat *, off64_t, packed_buffer_t *); /* Programme une sauvegarde complète et compressée. */ void g_asm_storage_save(GAsmStorage *); diff --git a/src/arch/vmpa.c b/src/arch/vmpa.c index 184d334..b172acf 100644 --- a/src/arch/vmpa.c +++ b/src/arch/vmpa.c @@ -453,7 +453,7 @@ phys_t compute_vmpa_diff(const vmpa2t *a, const vmpa2t *b) * * ******************************************************************************/ -bool unpack_vmpa(vmpa2t *addr, packed_buffer *pbuf) +bool unpack_vmpa(vmpa2t *addr, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ @@ -480,7 +480,7 @@ bool unpack_vmpa(vmpa2t *addr, packed_buffer *pbuf) * * ******************************************************************************/ -bool pack_vmpa(const vmpa2t *addr, packed_buffer *pbuf) +bool pack_vmpa(const vmpa2t *addr, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ @@ -1319,7 +1319,7 @@ void compute_mrange_end_addr(const mrange_t *range, vmpa2t *addr) * * ******************************************************************************/ -bool unpack_mrange(mrange_t *range, packed_buffer *pbuf) +bool unpack_mrange(mrange_t *range, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ @@ -1346,7 +1346,7 @@ bool unpack_mrange(mrange_t *range, packed_buffer *pbuf) * * ******************************************************************************/ -bool pack_mrange(const mrange_t *range, packed_buffer *pbuf) +bool pack_mrange(const mrange_t *range, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ diff --git a/src/arch/vmpa.h b/src/arch/vmpa.h index 5c82885..f353ebd 100644 --- a/src/arch/vmpa.h +++ b/src/arch/vmpa.h @@ -125,10 +125,10 @@ void align_vmpa(vmpa2t *, phys_t); phys_t compute_vmpa_diff(const vmpa2t *, const vmpa2t *); /* Lit la définition d'une adresse depuis un tampon. */ -bool unpack_vmpa(vmpa2t *, packed_buffer *); +bool unpack_vmpa(vmpa2t *, packed_buffer_t *); /* Ecrit la définition d'une adresse dans un tampon. */ -bool pack_vmpa(const vmpa2t *, packed_buffer *); +bool pack_vmpa(const vmpa2t *, packed_buffer_t *); /* Transforme une adresse physique en chaîne de caractères. */ char *vmpa2_phys_to_string(const vmpa2t *, MemoryDataSize, char [VMPA_MAX_LEN], size_t *); @@ -224,10 +224,10 @@ bool mrange_intersects_mrange(const mrange_t *, const mrange_t *); void compute_mrange_end_addr(const mrange_t *, vmpa2t *); /* Lit la définition d'une couverture depuis un tampon. */ -bool unpack_mrange(mrange_t *, packed_buffer *); +bool unpack_mrange(mrange_t *, packed_buffer_t *); /* Ecrit la définition d'une couverture dans un tampon. */ -bool pack_mrange(const mrange_t *, packed_buffer *); +bool pack_mrange(const mrange_t *, packed_buffer_t *); /* Transforme un emplacement physique en chaîne de caractères. */ char *mrange_phys_to_string(const mrange_t *, MemoryDataSize, bool, char [VMPA_MAX_LEN], size_t *); |