81,6 → 81,7 |
;;------------------------------------------------------------------------------------------------;; |
;< --- TBD --- ;; |
;;================================================================================================;; |
push ecx |
mov ecx, [_f] |
dec [ecx + IniFile.cnt] |
jns @f |
87,6 → 88,7 |
stdcall libini._.preload_block, [_f] |
dec [ecx + IniFile.cnt] |
@@: lodsb |
pop ecx |
ret |
endp |
|
99,6 → 101,7 |
;;------------------------------------------------------------------------------------------------;; |
;< --- TBD --- ;; |
;;================================================================================================;; |
push ecx |
mov ecx, [_f] |
@@: stdcall libini._.get_char, [_f] |
cmp al, 32 |
114,6 → 117,7 |
stdcall libini._.skip_line, [_f] |
jmp @b |
@@: stdcall libini._.unget_char, [_f] |
pop ecx |
ret |
endp |
|
126,6 → 130,7 |
;;------------------------------------------------------------------------------------------------;; |
;< --- TBD --- ;; |
;;================================================================================================;; |
push ecx |
mov ecx, [_f] |
@@: stdcall libini._.get_char, [_f] |
cmp al, 32 |
133,6 → 138,7 |
cmp al, 9 |
je @b |
@@: stdcall libini._.unget_char, [_f] |
pop ecx |
ret |
endp |
|
145,6 → 151,7 |
;;------------------------------------------------------------------------------------------------;; |
;< --- TBD --- ;; |
;;================================================================================================;; |
push ecx |
mov ecx, [_f] |
@@: stdcall libini._.get_char, [_f] |
or al, al |
154,6 → 161,7 |
cmp al, 10 |
jne @b |
@@: stdcall libini._.unget_char, [_f] |
pop ecx |
ret |
endp |
|
425,7 → 433,7 |
;< eax = -1 (fail) / 0 (ok) ;; |
;< [_f.pos] = new cursor position (right after ']' char if eax = 0, at the end of file otherwise) ;; |
;;================================================================================================;; |
push ebx edi |
push ebx ecx edi |
|
mov ecx, [_f] |
invoke file.seek, [ecx + IniFile.fh], 0, SEEK_SET |
461,12 → 469,12 |
@@: |
cmp byte[edi], 0 |
jne .next_section |
pop edi ebx |
pop edi ecx ebx |
xor eax, eax |
ret |
|
.exit_error: |
pop edi ebx |
pop edi ecx ebx |
or eax, -1 |
ret |
endp |