mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
Add fixes performance and static web server
This commit is contained in:
parent
b6793d42d5
commit
c45e46f871
108 changed files with 2927 additions and 819 deletions
|
@ -43,6 +43,10 @@ nodiscard char *tabpad(const char *s, unsigned width) {
|
|||
need = width > l ? (roundup(width, 8) - l - 1) / 8 + 1 : 0;
|
||||
p = memcpy(malloc(l + need + 1), s, l);
|
||||
for (i = 0; i < need; ++i) p[l + i] = '\t';
|
||||
if (!need) {
|
||||
p[l] = ' ';
|
||||
++need;
|
||||
}
|
||||
p[l + need] = '\0';
|
||||
return p;
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ const struct IdName kZipCompressionNames[] = {
|
|||
const struct IdName kZipExtraNames[] = {
|
||||
{kZipExtraZip64, "kZipExtraZip64"},
|
||||
{kZipExtraNtfs, "kZipExtraNtfs"},
|
||||
{kZipExtraExtendedTimestamp, "kZipExtraExtendedTimestamp"},
|
||||
{0, 0},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue