mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-04 11:42:28 +00:00
Make exciting improvements
- Add Lua backtraces to redbean! - Wipe serving keys after redbean forks - Audit redbean to remove free via exit - Log SSL client ciphersuite preferences - Increase ASAN malloc() backtrace depth - Make GetSslRoots() behave as a singleton - Move leaks.c from LIBC_TESTLIB to LIBC_LOG - Add undocumented %n to printf() for newlines - Fix redbean memory leak reindexing inode change - Fix redbean memory leak with Fetch() DNS object - Restore original environ after __cxa_finalize() - Make backtrace always work after __cxa_finalize() - Introduce COUNTEXPR() diagnostic / benchmark tool - Fix a few more instances of errno being clobbered - Consolidate the ANSI color disabling internal APIs
This commit is contained in:
parent
f5831a62fa
commit
af645fcbec
61 changed files with 1354 additions and 814 deletions
|
@ -1,12 +1,12 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_LOG_COUNTBRANCH_H_
|
||||
#define COSMOPOLITAN_LIBC_LOG_COUNTBRANCH_H_
|
||||
#include "libc/macros.internal.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
#include "libc/macros.internal.h"
|
||||
|
||||
#define COUNTBRANCH(x) COUNTBRANCH_(x, #x, STRINGIFY(__FILE__), __LINE__)
|
||||
#define COUNTBRANCH_(x, xs, file, line) \
|
||||
COUNTBRANCH__(x, STRINGIFY(xs), STRINGIFY(#x), file, line)
|
||||
COUNTBRANCH__(x, STRINGIFY(xs), STRINGIFY(xs), file, line)
|
||||
#define COUNTBRANCH__(x, xs, xss, file, line) \
|
||||
({ \
|
||||
bool Cond; \
|
||||
|
@ -46,7 +46,7 @@ struct countbranch {
|
|||
const char *code;
|
||||
const char *xcode;
|
||||
const char *file;
|
||||
int line;
|
||||
long line;
|
||||
};
|
||||
|
||||
extern struct countbranch countbranch_data[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue