#ifndef _CMOE_H_
#define _CMOE_H_
#define DATFILE "dat.sp"
#define TOKENFILE "token"
#define TOKEN "fumiama"
#define COUNTER_NAME_LEN 64
struct COUNTER {
char name[COUNTER_NAME_LEN];
uint32_t count;
};
typedef struct COUNTER COUNTER;
#define SERVER_STRING "Server: CMoe Counter by Fumiama/1.0\r\n"
#define HTTP200 "HTTP/1.0 200 OK\r\n"
#define HTTP400 "HTTP/1.0 400 BAD REQUEST\r\nContent-Type: text/html\r\n\r\n
%s\r\n"
#define HTTP404 "HTTP/1.0 404 NOT FOUND\r\nContent-Type: text/html\r\n\r\n
Not Found\r\n%s\r\n\r\n"
#define HTTP500 "HTTP/1.0 500 Internal Server Error\r\nContent-Type: text/html\r\n\r\n
%s\r\n"
#define CONTENT_TYPE "Content-Type: %s\r\n"
#define CONTENT_LEN "Content-Length: %d\r\n"
#define CACHE_CTRL "Cache-Control: max-age=0, no-cache, no-store, must-revalidate\r\n"
const uint16_t mbl[] = {1442, 1254, 1406, 1322, 1418, 1706, 1582, 1546, 1478, 1418};
const uint16_t mbhl[] = {930, 1050, 1162, 1058, 1114, 1446, 1082, 1374, 1242, 1126};
const uint16_t r34l[] = {13806, 8958, 9438, 14678, 13246, 12682, 11310, 11054, 1818, 6874};
const uint16_t gbl[] = {2550, 2302, 2450, 2494, 2298, 3042, 2886, 2754, 2574, 2550};
const uint16_t gbhl[] = {1550, 1702, 1870, 1778, 1618, 2370, 1830, 2234, 1914, 1878};
#define W_SMALL 45
#define H_SMALL 100
#define W_BIG 68
#define H_BIG 150
const char svg_small[] =
"