Code cleanup

This commit is contained in:
angt
2015-11-17 07:15:59 +01:00
parent 53a55e83c4
commit a261f1a8b1
4 changed files with 42 additions and 19 deletions

View File

@@ -14,6 +14,8 @@
#define PALIGN(x) ((void *)ALIGN((size_t)(x)))
#define PALIGN_DOWN(x) ((void *)ALIGN_DOWN((size_t)(x)))
#define _printf_(A,B) __attribute__((format(printf,A,B)))
#define _noreturn_ __attribute__((noreturn))
#define _unused_ __attribute__((unused))
typedef struct buffer buffer_t;
@@ -25,4 +27,6 @@ struct buffer {
uint8_t *end;
};
void gt_not_available (const char *);
void gt_log (const char *, ...) _printf_(1,2);
void gt_fatal (const char *, ...) _printf_(1,2) _noreturn_;
void gt_na (const char *);