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/cse.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/cse.c')
-rw-r--r-- | src/analysis/types/cse.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/analysis/types/cse.c b/src/analysis/types/cse.c index 40d726e..4ee03ef 100644 --- a/src/analysis/types/cse.c +++ b/src/analysis/types/cse.c @@ -84,6 +84,7 @@ static void g_class_enum_type_init(GClassEnumType *type) data_type->dup = (type_dup_fc)g_class_enum_type_dup; data_type->to_string = (type_to_string_fc)g_class_enum_type_to_string; + data_type->output = (output_type_fc)g_class_enum_type_output; } @@ -151,3 +152,27 @@ char *g_class_enum_type_to_string(const GClassEnumType *type) return strdup(type->name); } + + +/****************************************************************************** +* * +* 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 : - * +* * +******************************************************************************/ + +void g_class_enum_type_output(const GClassEnumType *type, GLangOutput *lang, GBufferLine *line, bool info, bool full) +{ + g_buffer_line_insert_text(line, BLC_LAST_USED, type->name, strlen(type->name), + info ? RTT_COMMENT : RTT_RAW); + +} |