mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Make major improvements to redbean
- lua server pages - lua http library - http v0.9 support - request uri parsing - fork failure recovery - accelerated redirects - http pipelining support - lenient message framing - html / uri / js escaping - fix shutdown signal handling
This commit is contained in:
parent
6b90ff60cd
commit
09bcfa23d5
23 changed files with 2208 additions and 581 deletions
12
libc/zip.h
12
libc/zip.h
|
@ -69,6 +69,7 @@
|
|||
#define kZipLfileOffsetLastmodifieddate 12
|
||||
#define kZipLfileOffsetCrc32 14
|
||||
#define kZipLfileOffsetCompressedsize 18
|
||||
#define kZipLfileOffsetUncompressedsize 22
|
||||
|
||||
#define kZipGflagUtf8 0x800
|
||||
|
||||
|
@ -140,11 +141,12 @@
|
|||
#define ZIP_LFILE_CRC32(P) READ32LE((P) + kZipLfileOffsetCrc32)
|
||||
#define ZIP_LFILE_COMPRESSEDSIZE(P) \
|
||||
READ32LE((P) + kZipLfileOffsetCompressedsize)
|
||||
#define ZIP_LFILE_UNCOMPRESSEDSIZE(P) READ32LE((P) + 22)
|
||||
#define ZIP_LFILE_NAMESIZE(P) READ16LE((P) + 26)
|
||||
#define ZIP_LFILE_EXTRASIZE(P) READ16LE((P) + 28)
|
||||
#define ZIP_LFILE_NAME(P) ((const char *)(&(P)[30]))
|
||||
#define ZIP_LFILE_EXTRA(P) (&(P)[30 + ZIP_LFILE_NAMESIZE(P)])
|
||||
#define ZIP_LFILE_UNCOMPRESSEDSIZE(P) \
|
||||
READ32LE((P) + kZipLfileOffsetUncompressedsize)
|
||||
#define ZIP_LFILE_NAMESIZE(P) READ16LE((P) + 26)
|
||||
#define ZIP_LFILE_EXTRASIZE(P) READ16LE((P) + 28)
|
||||
#define ZIP_LFILE_NAME(P) ((const char *)(&(P)[30]))
|
||||
#define ZIP_LFILE_EXTRA(P) (&(P)[30 + ZIP_LFILE_NAMESIZE(P)])
|
||||
#define ZIP_LFILE_HDRSIZE(P) \
|
||||
(ZIP_LFILE_NAMESIZE(P) + ZIP_LFILE_EXTRASIZE(P) + kZipLfileHdrMinSize)
|
||||
#define ZIP_LFILE_CONTENT(P) ((P) + ZIP_LFILE_HDRSIZE(P))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue