12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #pragma once
- #pragma GCC push_options
- #pragma GCC optimize("O0")
- #define PAD_ZERO 1
- #define LEFT 2
- #define RIGHT 4
- #define PLUS 8
- #define SPACE 16
- #define SPECIAL 32
- #define SMALL 64
- #define SIGN 128
- #define is_digit(c) ((c) >= '0' && (c) <= '9')
- #define WHITE 0x00ffffff
- #define BLACK 0x00000000
- #define RED 0x00ff0000
- #define ORANGE 0x00ff8000
- #define YELLOW 0x00ffff00
- #define GREEN 0x0000ff00
- #define BLUE 0x000000ff
- #define INDIGO 0x0000ffff
- #define PURPLE 0x008000ff
- #define EPOS_OVERFLOW 1
- #define EFB_MISMATCH 2
- #define EUNSUPPORTED 3
- #include "glib.h"
- #include <stdarg.h>
- int vsprintf(char *buf, const char *fmt, va_list args);
- int vsnprintf(char *buf, const char *fmt, int buf_size, va_list args);
- #define printk(...) printk_color(WHITE, BLACK, __VA_ARGS__)
- int printk_color(unsigned int FRcolor, unsigned int BKcolor, const char *fmt, ...);
- int sprintk(char *buf, const char *fmt, ...);
- #pragma GCC pop_options
|