mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
http_win: fix BUF_MAX
This commit is contained in:
parent
54b069f9ad
commit
8aa7da1be1
@ -1,3 +1,10 @@
|
||||
## V 0.1.16
|
||||
*17 Jul 2019*
|
||||
- High order functions
|
||||
|
||||
|
||||
|
||||
|
||||
## V 0.1.15
|
||||
*15 Jul 2019*
|
||||
- FreeBSD, OpenBSD, NetBSD, DragonFly support.
|
||||
|
@ -1497,8 +1497,8 @@ fn (p mut Parser) var_expr(v Var) string {
|
||||
mut typ := v.typ
|
||||
// Function pointer?
|
||||
if typ.starts_with('fn ') {
|
||||
println('CALLING FN PTR')
|
||||
p.print_tok()
|
||||
//println('CALLING FN PTR')
|
||||
//p.print_tok()
|
||||
T := p.table.find_type(typ)
|
||||
p.gen('(')
|
||||
p.fn_call_args(T.func)
|
||||
|
@ -20,6 +20,10 @@ import const (
|
||||
INTERNET_SERVICE_HTTP
|
||||
)
|
||||
|
||||
const (
|
||||
BUF_MAX = 1024
|
||||
)
|
||||
|
||||
pub fn (req &Request) do() Response {
|
||||
emptyresp := Response{}
|
||||
mut url := req.url
|
||||
@ -121,7 +125,6 @@ pub fn (req &Request) do() Response {
|
||||
// # TCHAR buf[BUF_MAX + 1];
|
||||
mut buf := [1025]byte
|
||||
mut nr_read := 0
|
||||
BUF_MAX := 1024
|
||||
// ok := C.InternetReadFile(request, buf, BUF_MAX, &nr_read)
|
||||
// # DWORD dwRead = 0;
|
||||
// /println('calling InternetReadFile()')
|
||||
|
Loading…
Reference in New Issue
Block a user