* @param size 追加サイズ
* @return 追加後のバッファ容量
*/
-static int buf_append(BUF *buf, const char *data, size_t size)
+static int buf_append(BUF *buf, cptr data, size_t size)
{
while (buf->size + size > buf->max_size)
{
* @param fmt 文字列フォーマット
* @return 追加後のバッファ容量
*/
-static int buf_sprintf(BUF *buf, const char *fmt, ...)
+static int buf_sprintf(BUF *buf, cptr fmt, ...)
{
int ret;
char tmpbuf[8192];
return buf->size;
}
-static int buf_search(BUF *buf, const char *str)
+static int buf_search(BUF *buf, cptr str)
{
char *ret;
{
BUF *output;
char response_buf[1024] = "";
- const char *HTTP_RESPONSE_CODE_OK = "HTTP/1.1 200 OK";
+ cptr HTTP_RESPONSE_CODE_OK = "HTTP/1.1 200 OK";
output = buf_new();
buf_sprintf(output, "POST %s HTTP/1.0\r\n", url);
cptr ret;
TERM_COLOR a = 0, old_a = 0;
- char c = ' ';
+ SYMBOL_CODE c = ' ';
static cptr html_head[] = {
"<html>\n<body text=\"#ffffff\" bgcolor=\"#000000\">\n",