diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-10-16 16:03:28 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-10-16 16:03:28 (GMT) |
commit | 6f9563a0184e36fab8d0c2c38d151827784e331e (patch) | |
tree | 2d0e13667bc9efcc0f26c17572c9d38dabd89db7 /src/analysis/types/encaps.c | |
parent | c7a14e50bd002e3922969e9bae7816753aefb073 (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/analysis/types/encaps.c')
-rw-r--r-- | src/analysis/types/encaps.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/analysis/types/encaps.c b/src/analysis/types/encaps.c index 492fd46..1d4b6f4 100644 --- a/src/analysis/types/encaps.c +++ b/src/analysis/types/encaps.c @@ -61,6 +61,9 @@ static GDataType *g_encapsulated_type_dup(const GEncapsulatedType *); /* Décrit le type fourni sous forme de caractères. */ static char *g_encapsulated_type_to_string(const GEncapsulatedType *); +/* Procède à l'impression de la description d'un type. */ +static void g_encapsulated_type_output(const GEncapsulatedType *, GLangOutput *, GBufferLine *, bool, bool); + /* Indique le type défini pour un type encapsulé. */ @@ -105,6 +108,7 @@ static void g_encapsulated_type_init(GEncapsulatedType *type) data_type->dup = (type_dup_fc)g_encapsulated_type_dup; data_type->to_string = (type_to_string_fc)g_encapsulated_type_to_string; + data_type->output = (output_type_fc)g_encapsulated_type_output; } @@ -256,6 +260,29 @@ static char *g_encapsulated_type_to_string(const GEncapsulatedType *type) /****************************************************************************** * * +* Paramètres : type = type à afficher. * +* lang = langage à utiliser pour la sortie humaine. * +* buffer = tampon mis à disposition pour la sortie. * +* info = nature du cadre de destination. * +* full = besoin de descriptions étendues ? * +* * +* Description : Procède à l'impression de la description d'un type. * +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +static void g_encapsulated_type_output(const GEncapsulatedType *type, GLangOutput *lang, GBufferLine *line, bool info, bool full) +{ + g_buffer_line_insert_text(line, BLC_LAST_USED, "!TODO!", 6, info ? RTT_COMMENT : RTT_RAW); + +} + + +/****************************************************************************** +* * * Paramètres : type = type à consulter. * * * * Description : Fournit le type d'encapsulation gérée par le type. * |