mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Make improvements
- Expand redbean UNIX module - Expand redbean documentation - Ensure Lua copyright is embedded in binary - Increase the PATH_MAX limit especially on NT - Use column major sorting for linenoise completions - Fix some suboptimalities in redbean's new UNIX API - Figured out right flags for Multics newline in raw mode
This commit is contained in:
parent
cf3174dc74
commit
2046c0d2ae
305 changed files with 6602 additions and 4221 deletions
|
@ -248,7 +248,7 @@ static unsigned combinecolors(unsigned char bf[1u << MC][2],
|
|||
const unsigned char bl[CN][YS * XS]) {
|
||||
uint64_t hv, ht[(1u << MC) * 2];
|
||||
unsigned i, j, n, b, f, h, hi, bu, fu;
|
||||
memset(ht, 0, sizeof(ht));
|
||||
bzero(ht, sizeof(ht));
|
||||
for (n = b = 0; b < BN && n < (1u << MC); ++b) {
|
||||
bu = bl[2][b] << 020 | bl[1][b] << 010 | bl[0][b];
|
||||
hi = 0;
|
||||
|
@ -295,7 +295,7 @@ static unsigned combinecolors(unsigned char bf[1u << MC][2],
|
|||
const float lb[CN][YS * XS]) { \
|
||||
unsigned i, k, gu; \
|
||||
float p[BN], q[BN], fu, bu, r; \
|
||||
memset(q, 0, sizeof(q)); \
|
||||
bzero(q, sizeof(q)); \
|
||||
for (k = 0; k < CN; ++k) { \
|
||||
gu = kGlyphs[g]; \
|
||||
bu = lb[k][b]; \
|
||||
|
@ -336,7 +336,7 @@ static float adjudicate(unsigned b, unsigned f, unsigned g,
|
|||
const float lb[CN][YS * XS]) {
|
||||
unsigned i, k, gu;
|
||||
float p[BN], q[BN], fu, bu, r;
|
||||
memset(q, 0, sizeof(q));
|
||||
bzero(q, sizeof(q));
|
||||
for (k = 0; k < CN; ++k) {
|
||||
gu = kGlyphs[g];
|
||||
bu = lb[k][b];
|
||||
|
@ -487,8 +487,8 @@ static void LoadFileViaImageMagick(const char *path, unsigned yn, unsigned xn,
|
|||
unsigned char rgb[yn][YS][xn][XS][CN]) {
|
||||
const char *convert;
|
||||
int pid, ws, pipefds[2];
|
||||
char pathbuf[PATH_MAX], dim[32];
|
||||
if (!(convert = commandv("convert", pathbuf))) {
|
||||
char pathbuf[PATH_MAX + 1], dim[32];
|
||||
if (!(convert = commandv("convert", pathbuf, sizeof(pathbuf)))) {
|
||||
fputs("error: `convert` command not found\n"
|
||||
"try: apt-get install imagemagick\n",
|
||||
stderr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue