From 80ff7b315a6b5a9f9c62de5c6b03f52ddf099837 Mon Sep 17 00:00:00 2001 From: Oxore Date: Thu, 6 Dec 2018 05:24:30 +0300 Subject: Add simple documentation in comments, refactor. Change all `unsigned int` and `unsigned long` types to `size_t`. Fix names alignment in headers. Add documentation and simple description: Painter - painter.h Main - tetris.c Unicode - unicode.h IDList - idlist.h Engine - engine.c Minor changes: tetris.c - fix indentation and code blocks separation with newlines, remove unused includes. idlist.h - fix structure field name alignment. field.h, engine.c - define aliases for ghost and active shapes indexes in the field. engine.c - rename menuTick to snake case, fix curly braces style of functions. Makefile - switch SFML deprecated warnings off. --- include/text.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'include/text.h') diff --git a/include/text.h b/include/text.h index 5c2dc5d..d8d9a47 100644 --- a/include/text.h +++ b/include/text.h @@ -1,15 +1,15 @@ -#define TXT_ATTR_INVISIBLE (1 << 0) +#define TXT_ATTR_INVISIBLE (1 << 0) typedef struct text { - char *type; - char *scene; - char *font; - wchar_t *text; - unsigned int size; - struct vector2ui pos; - unsigned int attr; - unsigned long id; + char *type; + char *scene; + char *font; + wchar_t *text; + size_t size; + struct vector2ui pos; + size_t attr; + size_t id; } Text; -struct idlist *load_texts(char *filename); -void text_destroy(void *text); +struct idlist *load_texts(char *filename); +void text_destroy(void *text); -- cgit v1.2.3