Move cgit_parse_query() from parsing.c to html.c as http_parse_querystring()

This is a generic http-function.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
这个提交包含在:
Lars Hjemli
2008-04-08 21:11:36 +02:00
父节点 20a33548b9
当前提交 e87e896333
共有 6 个文件被更改,包括 68 次插入64 次删除

查看文件

@@ -89,18 +89,6 @@ void *cgit_free_commitinfo(struct commitinfo *info)
return NULL;
}
int hextoint(char c)
{
if (c >= 'a' && c <= 'f')
return 10 + c - 'a';
else if (c >= 'A' && c <= 'F')
return 10 + c - 'A';
else if (c >= '0' && c <= '9')
return c - '0';
else
return -1;
}
char *trim_end(const char *str, char c)
{
int len;