Skip to content

Commit

Permalink
2.34.38
Browse files Browse the repository at this point in the history
  • Loading branch information
nidud committed Jan 4, 2024
1 parent 41a9e85 commit a32d99a
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 49 deletions.
71 changes: 30 additions & 41 deletions include/io.inc
Original file line number Diff line number Diff line change
Expand Up @@ -42,47 +42,36 @@ _pioinfo proto fastcall fh:abs {
imul eax,fh,ioinfo
add rax,__pioinfo
}
_osfile proto fastcall fh:abs {
_pioinfo(fh)
retm <[rax].ioinfo.osfile>
}
_textmode proto fastcall fh:abs {
_pioinfo(fh)
retm <[rax].ioinfo.textmode>
}

_osfhnd proto fastcall fh:abs {
_pioinfo(fh)
retm <[rax].ioinfo.osfhnd>
}
_pipech proto fastcall fh:abs {
_pioinfo(fh)
retm <[rax].ioinfo.pipech>
}
_pipech2 proto fastcall fh:abs {
_pioinfo(fh)
retm <[rax].ioinfo.pipech2>
}
_tm_unicode proto fastcall fh:abs {
_pioinfo(fh)
retm <[rax].ioinfo.unicode>
}
_startpos proto fastcall fh:abs {
_pioinfo(fh)
retm <[rax].ioinfo.startpos>
}
_utf8translations proto fastcall fh:abs {
_pioinfo(fh)
retm <[rax].ioinfo.utf8translations>
}
_dbcsBuffer proto fastcall fh:abs {
_pioinfo(fh)
retm <[rax].ioinfo.dbcsBuffer>
}
_dbcsBufferUsed proto fastcall fh:abs {
_pioinfo(fh)
retm <[rax].ioinfo.dbcsBufferUsed>
}
_osfile macro fh
exitm <[_pioinfo(fh)].ioinfo.osfile>
endm
_textmode macro fh
exitm <[_pioinfo(fh)].ioinfo.textmode>
endm
_osfhnd macro fh
exitm <[_pioinfo(fh)].ioinfo.osfhnd>
endm
_pipech macro fh
exitm <[_pioinfo(fh)].ioinfo.pipech>
endm
_pipech2 macro fh
exitm <[_pioinfo(fh)].ioinfo.pipech2>
endm
_tm_unicode macro fh
exitm <[_pioinfo(fh)].ioinfo.unicode>
endm
_startpos macro fh
exitm <[_pioinfo(fh)].ioinfo.startpos>
endm
_utf8translations macro fh
exitm <[_pioinfo(fh)].ioinfo.utf8translations>
endm
_dbcsBuffer macro fh
exitm <[_pioinfo(fh)].ioinfo.dbcsBuffer>
endm
_dbcsBufferUsed macro fh
exitm <[_pioinfo(fh)].ioinfo.dbcsBufferUsed>
endm

endif

Expand Down
1 change: 1 addition & 0 deletions include/stdlib.inc
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ _xtow_s proto __cdecl :qword, :wstring_t, :size_t, :uint_t, :int_t
_xtol proto __cdecl :string_t
_xtoi64 proto __cdecl :string_t
_wtoutf proto __cdecl :wchar_t
_utftow proto __cdecl :string_t
_pathtow proto __cdecl :string_t, :ptr wstring_t
_isexec proto __cdecl :string_t

Expand Down
3 changes: 2 additions & 1 deletion source/libc/ctype/isleadbyte.asm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ _initlead proc private

.new cpInfo:CPINFOEX

.if GetCPInfoEx(GetACP(), 0, &cpInfo) ; GetConsoleCP()
mov ecx,GetACP() ; GetConsoleCP()
.if GetCPInfoEx(ecx, 0, &cpInfo)

.if ( cpInfo.MaxCharSize > 1 )

Expand Down
14 changes: 7 additions & 7 deletions source/libc/io/_alloc_osfhnd.asm
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ _alloc_osfhnd proc

mov [rcx].osfile,0
ifndef __UNIX__
mov [rcx].osfhnd,-1
;mov [rcx].osfhnd,-1
mov [rcx].pipech,10
mov [rcx].textmode,0
mov [rcx].unicode,0
;mov [rcx].textmode,0
;mov [rcx].unicode,0
mov [rcx].pipech2[0],10
mov [rcx].pipech2[1],10
mov [rcx].dbcsBuffer,0
mov [rcx].startpos,0
mov [rcx].utf8translations,0
mov [rcx].dbcsBufferUsed,0
;mov [rcx].dbcsBuffer,0
;mov [rcx].startpos,0
;mov [rcx].utf8translations,0
;mov [rcx].dbcsBufferUsed,0
endif
ret

Expand Down

0 comments on commit a32d99a

Please sign in to comment.