Get Cosmopolitan into releasable state

A new rollup tool now exists for flattening out the headers in a way
that works better for our purposes than cpp. A lot of the API clutter
has been removed. APIs that aren't a sure thing in terms of general
recommendation are now marked internal.

There's now a smoke test for the amalgamation archive and gigantic
header file. So we can now guarantee you can use this project on the
easiest difficulty setting without the gigantic repository.

A website is being created, which is currently a work in progress:
https://justine.storage.googleapis.com/cosmopolitan/index.html
This commit is contained in:
Justine Tunney 2020-11-25 08:19:00 -08:00
parent dba7552c1e
commit ea0b5d9d1c
775 changed files with 6864 additions and 3963 deletions

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_ChooseColorA,ChooseColorA,102
.text.windows
ChooseColorA:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_ChooseColorA(%rip)
leave
ret
.endfn ChooseColorA,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_ChooseColorW,ChooseColorW,103
.text.windows
ChooseColor:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_ChooseColorW(%rip)
leave
ret
.endfn ChooseColor,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_ChooseFontA,ChooseFontA,104
.text.windows
ChooseFontA:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_ChooseFontA(%rip)
leave
ret
.endfn ChooseFontA,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_ChooseFontW,ChooseFontW,105
.text.windows
ChooseFont:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_ChooseFontW(%rip)
leave
ret
.endfn ChooseFont,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_GetFileTitleA,GetFileTitleA,111
.text.windows
GetFileTitleA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetFileTitleA(%rip),%rax
jmp __sysv2nt
.endfn GetFileTitleA,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_GetFileTitleW,GetFileTitleW,112
.text.windows
GetFileTitle:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetFileTitleW(%rip),%rax
jmp __sysv2nt
.endfn GetFileTitle,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_GetOpenFileNameA,GetOpenFileNameA,113
.text.windows
GetOpenFileNameA:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_GetOpenFileNameA(%rip)
leave
ret
.endfn GetOpenFileNameA,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_GetOpenFileNameW,GetOpenFileNameW,114
.text.windows
GetOpenFileName:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_GetOpenFileNameW(%rip)
leave
ret
.endfn GetOpenFileName,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_GetSaveFileNameA,GetSaveFileNameA,115
.text.windows
GetSaveFileNameA:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_GetSaveFileNameA(%rip)
leave
ret
.endfn GetSaveFileNameA,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_GetSaveFileNameW,GetSaveFileNameW,116
.text.windows
GetSaveFileName:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_GetSaveFileNameW(%rip)
leave
ret
.endfn GetSaveFileName,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_PrintDlgA,PrintDlgA,120
.text.windows
PrintDlgA:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_PrintDlgA(%rip)
leave
ret
.endfn PrintDlgA,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_PrintDlgW,PrintDlgW,123
.text.windows
PrintDlg:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_PrintDlgW(%rip)
leave
ret
.endfn PrintDlg,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_ReplaceTextA,ReplaceTextA,124
.text.windows
ReplaceTextA:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_ReplaceTextA(%rip)
leave
ret
.endfn ReplaceTextA,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp comdlg32,__imp_ReplaceTextW,ReplaceTextW,125
.text.windows
ReplaceText:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_ReplaceTextW(%rip)
leave
ret
.endfn ReplaceText,globl
.previous