diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/context.c | 7 | ||||
-rw-r--r-- | src/arch/context.h | 12 |
2 files changed, 9 insertions, 10 deletions
diff --git a/src/arch/context.c b/src/arch/context.c index 431fdb7..fc68640 100644 --- a/src/arch/context.c +++ b/src/arch/context.c @@ -227,8 +227,7 @@ static void _g_proc_context_push_drop_point(GProcContext *ctx, DisassPriorityLev { ctx->dp_allocated[level] += DP_ALLOC_BLOCK; - ctx->drop_points[level] = (virt_t *)realloc(ctx->drop_points[level], - ctx->dp_allocated[level] * sizeof(virt_t)); + ctx->drop_points[level] = realloc(ctx->drop_points[level], ctx->dp_allocated[level] * sizeof(virt_t)); } @@ -339,7 +338,7 @@ void g_proc_context_push_new_symbol_at(GProcContext *ctx, const vmpa2t *addr) { g_mutex_lock(&ctx->es_access); - ctx->extra_symbols = (vmpa2t *)realloc(ctx->extra_symbols, ++ctx->esyms_count * sizeof(vmpa2t)); + ctx->extra_symbols = realloc(ctx->extra_symbols, ++ctx->esyms_count * sizeof(vmpa2t)); copy_vmpa(&ctx->extra_symbols[ctx->esyms_count - 1], addr); @@ -403,7 +402,7 @@ void g_proc_context_add_db_item(GProcContext *ctx, GDbItem *item) { ctx->items_allocated += DB_ALLOC_SIZE; - ctx->items = (GDbItem **)realloc(ctx->items, sizeof(GDbItem *) * ctx->items_allocated); + ctx->items = realloc(ctx->items, sizeof(GDbItem *) * ctx->items_allocated); } diff --git a/src/arch/context.h b/src/arch/context.h index 255909f..f54419d 100644 --- a/src/arch/context.h +++ b/src/arch/context.h @@ -34,12 +34,12 @@ -#define G_TYPE_PROC_CONTEXT g_proc_context_get_type() -#define G_PROC_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_proc_context_get_type(), GProcContext)) -#define G_IS_PROC_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_proc_context_get_type())) -#define G_PROC_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_PROC_CONTEXT, GProcContextClass)) -#define G_IS_PROC_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_PROC_CONTEXT)) -#define G_PROC_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_PROC_CONTEXT, GProcContextClass)) +#define G_TYPE_PROC_CONTEXT g_proc_context_get_type() +#define G_PROC_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_PROC_CONTEXT, GProcContext)) +#define G_IS_PROC_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_PROC_CONTEXT)) +#define G_PROC_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_PROC_CONTEXT, GProcContextClass)) +#define G_IS_PROC_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_PROC_CONTEXT)) +#define G_PROC_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_PROC_CONTEXT, GProcContextClass)) /* Définition d'un contexte pour processeur (instance) */ |