Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4216 → Rev 4215

/programs/develop/libraries/http/http.asm
99,13 → 99,11
jnz .error
 
; load proxy settings
pusha
invoke ini.get_str, inifile, sec_proxy, key_proxy, proxyAddr, 256, proxyAddr
invoke ini.get_int, inifile, sec_proxy, key_proxyport, 80
mov [proxyPort], eax
invoke ini.get_str, inifile, sec_proxy, key_user, proxyUser, 256, proxyUser
invoke ini.get_str, inifile, sec_proxy, key_password, proxyPassword, 256, proxyPassword
popa
 
DEBUGF 1, "HTTP library: init OK\n"
 
141,8 → 139,6
port dd ?
endl
 
pusha
 
; split the URL into hostname and pageaddr
stdcall parse_url, [URL]
test eax, eax
205,13 → 201,10
 
HTTP_init_buffer [buffer], [socketnum]
 
popa
mov eax, [buffer] ; return buffer ptr
ret
ret ; return buffer ptr
 
.error:
DEBUGF 1, "Error!\n"
popa
xor eax, eax ; return 0 = error
ret
 
237,7 → 230,6
port dd ?
endl
 
pusha
; split the URL into hostname and pageaddr
stdcall parse_url, [URL]
test eax, eax
301,13 → 293,10
 
HTTP_init_buffer [buffer], [socketnum]
 
popa
mov eax, [buffer]
ret ; return buffer ptr
 
.error:
DEBUGF 1, "Error!\n"
popa
xor eax, eax ; return 0 = error
ret
 
334,7 → 323,6
port dd ?
endl
 
pusha
; split the URL into hostname and pageaddr
stdcall parse_url, [URL]
test eax, eax
411,13 → 399,12
 
HTTP_init_buffer [buffer], [socketnum]
 
popa
mov eax, [buffer]
; mov eax, [buffer]
 
ret ; return buffer ptr
 
.error:
DEBUGF 1, "Error!\n"
popa
xor eax, eax ; return 0 = error
ret