/* OpenIDA - Outil d'analyse de fichiers binaires * instruction.c - gestion des instructions décompilées * * Copyright (C) 2010-2012 Cyrille Bagard * * This file is part of OpenIDA. * * OpenIDA is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * OpenIDA is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Foobar. If not, see . */ #include "instruction.h" #include "instruction-int.h" /* Initialise la classe des instructions décompilées. */ static void g_dec_instruction_class_init(GDecInstructionClass *); /* Initialise une instance d'instruction décompilée. */ static void g_dec_instruction_init(GDecInstruction *); /* Indique le type défini pour une instruction décompilée. */ G_DEFINE_TYPE(GDecInstruction, g_dec_instruction, G_TYPE_OBJECT); /****************************************************************************** * * * Paramètres : klass = classe à initialiser. * * * * Description : Initialise la classe des instructions décompilées. * * * * Retour : - * * * * Remarques : - * * * ******************************************************************************/ static void g_dec_instruction_class_init(GDecInstructionClass *klass) { } /****************************************************************************** * * * Paramètres : instr = instance à initialiser. * * * * Description : Initialise une instance d'instruction décompilée. * * * * Retour : - * * * * Remarques : - * * * ******************************************************************************/ static void g_dec_instruction_init(GDecInstruction *instr) { } /****************************************************************************** * * * Paramètres : instr = instruction à transcrire en version humaine. * * buffer = tampon où doit se réaliser l'insertion. * * line = ligne d'impression prête à emploi ou NULL. * * output = langage de programmation de sortie. * * * * Description : Imprime pour l'écran un version humaine d'une instruction. * * * * Retour : - * * * * Remarques : - * * * ******************************************************************************/ void g_dec_instruction_print(const GDecInstruction *instr, GCodeBuffer *buffer, GBufferLine *line, GLangOutput *output) { if (line == NULL) line = g_code_buffer_append_new_line_fixme(buffer); /* FIXME : n° de ligne */ instr->print(instr, buffer, line, output); }