-
-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With these addtions, I could build and run a [sokol](https://github.com/floooh/sokol) application (using OpenGL) on both Linux and Windows.
- Loading branch information
Showing
33 changed files
with
618 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "libc/nt/codegen.h" | ||
.imp gdi32,__imp_DescribePixelFormat,DescribePixelFormat | ||
|
||
.text.windows | ||
.ftrace1 | ||
DescribePixelFormat: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
mov __imp_DescribePixelFormat(%rip),%rax | ||
jmp __sysv2nt | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
ret | ||
#endif | ||
.endfn DescribePixelFormat,globl | ||
.previous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "libc/nt/codegen.h" | ||
.imp kernel32,__imp_GlobalLock,GlobalLock | ||
|
||
.text.windows | ||
.ftrace1 | ||
GlobalLock: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
mov %rdi,%rcx | ||
sub $32,%rsp | ||
call *__imp_GlobalLock(%rip) | ||
leave | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
#endif | ||
ret | ||
.endfn GlobalLock,globl | ||
.previous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "libc/nt/codegen.h" | ||
.imp kernel32,__imp_GlobalUnlock,GlobalUnlock | ||
|
||
.text.windows | ||
.ftrace1 | ||
GlobalUnlock: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
mov %rdi,%rcx | ||
sub $32,%rsp | ||
call *__imp_GlobalUnlock(%rip) | ||
leave | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
#endif | ||
ret | ||
.endfn GlobalUnlock,globl | ||
.previous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "libc/nt/codegen.h" | ||
.imp shell32,__imp_CommandLineToArgvW,CommandLineToArgvW | ||
|
||
.text.windows | ||
.ftrace1 | ||
CommandLineToArgv: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
mov __imp_CommandLineToArgvW(%rip),%rax | ||
jmp __sysv2nt | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
ret | ||
#endif | ||
.endfn CommandLineToArgv,globl | ||
.previous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "libc/nt/codegen.h" | ||
.imp shell32,__imp_DragAcceptFiles,DragAcceptFiles | ||
|
||
.text.windows | ||
.ftrace1 | ||
DragAcceptFiles: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
mov __imp_DragAcceptFiles(%rip),%rax | ||
jmp __sysv2nt | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
ret | ||
#endif | ||
.endfn DragAcceptFiles,globl | ||
.previous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "libc/nt/codegen.h" | ||
.imp shell32,__imp_DragFinish,DragFinish | ||
|
||
.text.windows | ||
.ftrace1 | ||
DragFinish: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
mov %rdi,%rcx | ||
sub $32,%rsp | ||
call *__imp_DragFinish(%rip) | ||
leave | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
#endif | ||
ret | ||
.endfn DragFinish,globl | ||
.previous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "libc/nt/codegen.h" | ||
.imp shell32,__imp_DragQueryFileW,DragQueryFileW | ||
|
||
.text.windows | ||
.ftrace1 | ||
DragQueryFile: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
mov __imp_DragQueryFileW(%rip),%rax | ||
jmp __sysv2nt | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
ret | ||
#endif | ||
.endfn DragQueryFile,globl | ||
.previous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "libc/nt/codegen.h" | ||
.imp user32,__imp_AdjustWindowRectEx,AdjustWindowRectEx | ||
|
||
.text.windows | ||
.ftrace1 | ||
AdjustWindowRectEx: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
mov __imp_AdjustWindowRectEx(%rip),%rax | ||
jmp __sysv2nt | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
ret | ||
#endif | ||
.endfn AdjustWindowRectEx,globl | ||
.previous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "libc/nt/codegen.h" | ||
.imp user32,__imp_ClientToScreen,ClientToScreen | ||
|
||
.text.windows | ||
.ftrace1 | ||
ClientToScreen: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
mov __imp_ClientToScreen(%rip),%rax | ||
jmp __sysv2nt | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
ret | ||
#endif | ||
.endfn ClientToScreen,globl | ||
.previous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "libc/nt/codegen.h" | ||
.imp user32,__imp_ClipCursor,ClipCursor | ||
|
||
.text.windows | ||
.ftrace1 | ||
ClipCursor: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
mov %rdi,%rcx | ||
sub $32,%rsp | ||
call *__imp_ClipCursor(%rip) | ||
leave | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
#endif | ||
ret | ||
.endfn ClipCursor,globl | ||
.previous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "libc/nt/codegen.h" | ||
.imp user32,__imp_CloseClipboard,CloseClipboard | ||
|
||
.text.windows | ||
.ftrace1 | ||
CloseClipboard: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
sub $32,%rsp | ||
call *__imp_CloseClipboard(%rip) | ||
leave | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
#endif | ||
ret | ||
.endfn CloseClipboard,globl | ||
.previous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "libc/nt/codegen.h" | ||
.imp user32,__imp_EmptyClipboard,EmptyClipboard | ||
|
||
.text.windows | ||
.ftrace1 | ||
EmptyClipboard: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
sub $32,%rsp | ||
call *__imp_EmptyClipboard(%rip) | ||
leave | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
#endif | ||
ret | ||
.endfn EmptyClipboard,globl | ||
.previous |
Oops, something went wrong.