From 67ccb5b0e7e6c1ae36ce981aa13a0b7b5d913fa3 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 23 Dec 2019 22:14:53 +0100 Subject: [PATCH] doxygen for T_Font, T_Tile --- src/struct.h | 7 +++++-- src/text.c | 8 +++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/struct.h b/src/struct.h index 1f54904a..a93eaa70 100644 --- a/src/struct.h +++ b/src/struct.h @@ -542,10 +542,13 @@ typedef struct { } T_Paintbrush; +/** + * Element of a circular linked list in the tile map + */ typedef struct { - int Previous; - int Next; + int Previous; ///< Previous similar tile in the linked list + int Next; ///< Next similar tile in the linked list byte Flipped; ///< 0:no, 1:horizontally, 2:vertically, 3:both } T_Tile; diff --git a/src/text.c b/src/text.c index a342ab82..93815cfa 100644 --- a/src/text.c +++ b/src/text.c @@ -73,6 +73,9 @@ #include "loadsave.h" #include "SFont.h" +/** + * Element of the font linked list + */ typedef struct T_Font { char * Name; @@ -84,7 +87,10 @@ typedef struct T_Font struct T_Font * Next; struct T_Font * Previous; } T_Font; -// Liste chainée des polices de texte + +/** + * Head of the font linked list + */ T_Font * font_list_start; int Nb_fonts;