mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Fix bugs and make improvements to redbean
- Abort if .init.lua fails - Refactor redbean to use new append library - Use first certificate if SNI routing fails - Use function/data sections when building Lua - Don't use self-signed auto-generated cert for client - Add -D staging dirs to redbean lua module default path
This commit is contained in:
parent
55a15c204e
commit
aeeb851422
26 changed files with 703 additions and 513 deletions
|
@ -19,9 +19,16 @@
|
|||
#include "libc/stdio/append.internal.h"
|
||||
|
||||
/**
|
||||
* Appends formatted data to buffer.
|
||||
* Appends formatted string to buffer, e.g.
|
||||
*
|
||||
* char *b = 0;
|
||||
* appendf(&b, "hello %d\n", 123);
|
||||
* free(b);
|
||||
*
|
||||
* @return bytes appended or -1 if `ENOMEM`
|
||||
* @see appendz(b).i to get buffer length
|
||||
*/
|
||||
int(appendf)(char **b, const char *fmt, ...) {
|
||||
ssize_t(appendf)(char **b, const char *fmt, ...) {
|
||||
int n;
|
||||
va_list va;
|
||||
va_start(va, fmt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue