summaryrefslogtreecommitdiff
path: root/src/decomp/output.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-10-16 16:03:28 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-10-16 16:03:28 (GMT)
commit6f9563a0184e36fab8d0c2c38d151827784e331e (patch)
tree2d0e13667bc9efcc0f26c17572c9d38dabd89db7 /src/decomp/output.c
parentc7a14e50bd002e3922969e9bae7816753aefb073 (diff)
Properly output routines documentation.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@268 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/decomp/output.c')
-rw-r--r--src/decomp/output.c34
1 files changed, 31 insertions, 3 deletions
diff --git a/src/decomp/output.c b/src/decomp/output.c
index 698ce0d..20e18a9 100644
--- a/src/decomp/output.c
+++ b/src/decomp/output.c
@@ -25,6 +25,7 @@
#include "output-int.h"
+#include "../analysis/type.h" /* TODO : remme */
@@ -216,12 +217,12 @@ void g_lang_output_write_comp_sign(GLangOutput *output, GBufferLine *line, CompS
* *
******************************************************************************/
-GBufferLine *g_lang_output_start_class(GLangOutput *output, GCodeBuffer *buffer, const GDataType *type)
+GBufferLine *g_lang_output_start_class(GLangOutput *output, GCodeBuffer *buffer, const void *type)
{
GBufferLine *result; /* Adresse nouvelle à remonter */
if (output->start_class != NULL)
- result = output->start_class(output, buffer, type);
+ result = output->start_class(output, buffer, (const GDataType *)type);
else result = NULL;
@@ -255,6 +256,33 @@ void g_lang_output_end_class(GLangOutput *output, GCodeBuffer *buffer)
* *
* Paramètres : output = encadrant de l'impression en langage de prog. *
* buffer = tampon de sortie à disposition. *
+* *
+* Description : Débute la documentation d'une routine. *
+* *
+* Retour : Ligne nouvellement créée. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+GBufferLine *g_lang_output_start_routine_info(const GLangOutput *output, GCodeBuffer *buffer)
+{
+ GBufferLine *result; /* Adresse nouvelle à remonter */
+
+ if (output->start_routine_proto != NULL)
+ result = output->start_info(output, buffer);
+
+ else result = NULL;
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : output = encadrant de l'impression en langage de prog. *
+* buffer = tampon de sortie à disposition. *
* ret = type de retour de la routine traitée. *
* *
* Description : Débute la définition d'une routine. *
@@ -265,7 +293,7 @@ void g_lang_output_end_class(GLangOutput *output, GCodeBuffer *buffer)
* *
******************************************************************************/
-GBufferLine *g_lang_output_start_routine_prototype(GLangOutput *output, GCodeBuffer *buffer, const GDataType *ret)
+GBufferLine *g_lang_output_start_routine_prototype(GLangOutput *output, GCodeBuffer *buffer, const void *ret)
{
GBufferLine *result; /* Adresse nouvelle à remonter */