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,12 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_AppendMenuA,AppendMenuA,1515
.text.windows
AppendMenuA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AppendMenuA(%rip),%rax
jmp __sysv2nt
.endfn AppendMenuA,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_AppendMenuW,AppendMenuW,1516
.text.windows
AppendMenu:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AppendMenuW(%rip),%rax
jmp __sysv2nt
.endfn AppendMenu,globl
.previous

View file

@ -1,2 +1,14 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_CreateMenu,CreateMenu,1621
.text.windows
CreateMenu:
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_CreateMenu(%rip)
leave
ret
.endfn CreateMenu,globl
.previous

View file

@ -1,2 +1,14 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_CreatePopupMenu,CreatePopupMenu,1622
.text.windows
CreatePopupMenu:
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_CreatePopupMenu(%rip)
leave
ret
.endfn CreatePopupMenu,globl
.previous

View file

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

View file

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

View file

@ -1,2 +1,14 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_GetCursor,GetCursor,1826
.text.windows
GetCursor:
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_GetCursor(%rip)
leave
ret
.endfn GetCursor,globl
.previous

View file

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

View file

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

View file

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

View file

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

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_InsertMenuA,InsertMenuA,2041
.text.windows
InsertMenuA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_InsertMenuA(%rip),%rax
jmp __sysv2nt6
.endfn InsertMenuA,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_InsertMenuW,InsertMenuW,2044
.text.windows
InsertMenu:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_InsertMenuW(%rip),%rax
jmp __sysv2nt6
.endfn InsertMenu,globl
.previous

View file

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

View file

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

View file

@ -1,2 +1,14 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_ReleaseCapture,ReleaseCapture,2279
.text.windows
ReleaseCapture:
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_ReleaseCapture(%rip)
leave
ret
.endfn ReleaseCapture,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_SendMessageW,SendMessageW,2306
.text.windows
SendMessage:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SendMessageW(%rip),%rax
jmp __sysv2nt
.endfn SendMessage,globl
.previous

View file

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

View file

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

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_SetClassLongW,SetClassLongW,2316
.text.windows
SetClassLong:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetClassLongW(%rip),%rax
jmp __sysv2nt
.endfn SetClassLong,globl
.previous

View file

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

View file

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

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp user32,__imp_TrackPopupMenu,TrackPopupMenu,2443
.text.windows
TrackPopupMenu:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_TrackPopupMenu(%rip),%rax
jmp __sysv2nt8
.endfn TrackPopupMenu,globl
.previous