Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4848 → Rev 4847

/programs/develop/libraries/http/http.asm
1131,8 → 1131,6
 
; TODO: instead of static buffer allocation, make it 4096 bytes and larger only if needed
 
DEBUGF 1, "HTTP_escape: %s\n", [URI]
 
pusha
 
invoke mem.alloc, URLMAXLEN
1180,11 → 1178,9
mov [esp + 4 * 4], edi
 
popa
DEBUGF 1, "escaped URL: %s\n", eax
ret
 
.error:
DEBUGF 1, "ERROR: out of RAM!\n"
popa
xor eax, eax
ret
1203,7 → 1199,6
;< eax = 0 (error) / ptr to ASCIIZ URI ;;
;;================================================================================================;;
 
DEBUGF 1, "HTTP_unescape: %s\n", [URI]
pusha
 
invoke mem.alloc, URLMAXLEN
1216,8 → 1211,10
lodsb
test al, al
jz .done
 
cmp al, '%'
je .unescape
 
stosb
jmp .loop
 
1252,12 → 1249,11
 
.done:
stosb
 
popa
DEBUGF 1, "unescaped URL: %s\n", eax
ret
 
.error:
DEBUGF 1, "ERROR: out of RAM!\n"
popa
xor eax, eax
ret