mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-24 11:30:29 +00:00
Run clang-format (#1197)
This commit is contained in:
parent
ea081b262c
commit
f032b5570b
183 changed files with 1074 additions and 983 deletions
|
@ -16,8 +16,8 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/intrin/safemacros.internal.h"
|
||||
#include "libc/fmt/itoa.h"
|
||||
#include "libc/intrin/safemacros.internal.h"
|
||||
#include "tool/viz/lib/formatstringtable.h"
|
||||
|
||||
void *FormatStringTableAsCode(long yn, long xn, const char *const T[yn][xn],
|
||||
|
|
|
@ -53,7 +53,8 @@
|
|||
// from the space left below, seen by overimposing an underline ⠿_
|
||||
// along the 3 dots, the Y axis is least 1,0,1,0,1,0,0,1 so 8 steps
|
||||
//
|
||||
// Problem: fonts are taller than wider, and terminals are traditionally 80x24, so
|
||||
// Problem: fonts are taller than wider, and terminals are traditionally 80x24,
|
||||
// so
|
||||
// - we shouldn't use square glyphs, 8x16 seems to be the minimal size
|
||||
// - we should adapt the conversion to BMP to avoid accidental Y downsampling
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/log/check.h"
|
||||
#include "tool/viz/lib/halfblit.h"
|
||||
#include "libc/log/check.h"
|
||||
|
||||
void *halfblit(size_t n, void *block) {
|
||||
unsigned y, x;
|
||||
|
|
|
@ -16,14 +16,15 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "tool/viz/lib/stringbuilder.h"
|
||||
#include "libc/log/check.h"
|
||||
#include "libc/macros.internal.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/x/x.h"
|
||||
#include "tool/viz/lib/stringbuilder.h"
|
||||
|
||||
static dontinline void StringBuilderGrow(size_t need, struct StringBuilder *sb) {
|
||||
static dontinline void StringBuilderGrow(size_t need,
|
||||
struct StringBuilder *sb) {
|
||||
size_t n2;
|
||||
n2 = MAX(16, sb->n);
|
||||
while (sb->i + need > n2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue