@@ -4818,7 +4818,8 @@ fun charLowerW(lpsz ArrayPointer<ClangWideChar>) ArrayPointer<ClangWideChar> {
48184818 return null
48194819}
48204820
4821- fun xsetPixel(hdc HDc, x Int32, y Int32, color COLORREF) COLORREF {
4821+ @dllExport('SetPixel_TODO')
4822+ fun setPixel_TODO(hdc HDc, x Int32, y Int32, color COLORREF) COLORREF {
48224823 tofitaDebugLog("SetPixel called with hdc %8".utf16(), hdc as! UInt64)
48234824 tofitaDebugLog("> x %d y %d".utf16(), x as! UInt64, y as! UInt64)
48244825 tofitaDebugLog("> color %u".utf16(), color as! UInt64)
@@ -5107,6 +5108,33 @@ fun _xcptFilter(exceptionCode Int32, exceptionInfo SizeOfPointer) Int32 {
51075108 return 0
51085109}
51095110
5111+ // TODO Hexa: code gen bug produces `_fmode_ = int32_t$new_();`
5112+ // `let _fmode ByValue<Int32> = ByValue<Int32>()`
5113+ // TODO Hexa: code gen optimizer bug `return (size_t)((int32_t)0->ref_);`
5114+ // `let _fmode ByValue<Int32> = 0`
5115+ var _fmode ByValue<Int32> = 0
5116+
5117+ #if bit32
5118+ @convention('cdecl')
5119+ #end
5120+ @dllExport('__p__fmode')
5121+ fun __p__fmode() SizeOfPointer {
5122+ tofitaDebugLog("__p__fmode called".utf16())
5123+ return _fmode.ref as! SizeOfPointer
5124+ }
5125+
5126+ // TODO `let _commode ByValue<Int32> = ByValue<Int32>()`
5127+ var _commode ByValue<Int32> = 0
5128+
5129+ #if bit32
5130+ @convention('cdecl')
5131+ #end
5132+ @dllExport('__p__commode')
5133+ fun __p__commode() SizeOfPointer {
5134+ tofitaDebugLog("__p__commode called".utf16())
5135+ return _commode.ref as! SizeOfPointer
5136+ }
5137+
51105138#if bit32
51115139 @convention('cdecl')
51125140#end
@@ -5155,33 +5183,6 @@ fun __getmainargs(
51555183 return 0
51565184}
51575185
5158- // TODO Hexa: code gen bug produces `_fmode_ = int32_t$new_();`
5159- // `let _fmode ByValue<Int32> = ByValue<Int32>()`
5160- // TODO Hexa: code gen optimizer bug `return (size_t)((int32_t)0->ref_);`
5161- // `let _fmode ByValue<Int32> = 0`
5162- var _fmode ByValue<Int32> = 0
5163-
5164- #if bit32
5165- @convention('cdecl')
5166- #end
5167- @dllExport('__p__fmode')
5168- fun __p__fmode() SizeOfPointer {
5169- tofitaDebugLog("__p__fmode called".utf16())
5170- return _fmode.ref as! SizeOfPointer
5171- }
5172-
5173- // TODO `let _commode ByValue<Int32> = ByValue<Int32>()`
5174- var _commode ByValue<Int32> = 0
5175-
5176- #if bit32
5177- @convention('cdecl')
5178- #end
5179- @dllExport('__p__commode')
5180- fun __p__commode() SizeOfPointer {
5181- tofitaDebugLog("__p__commode called".utf16())
5182- return _commode.ref as! SizeOfPointer
5183- }
5184-
51855186#if bit32
51865187 @convention('cdecl')
51875188#end
0 commit comments