konoma 0.9.0

Full-screen preview-focused terminal file browser (macOS Apple Silicon)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Sample C header — syntax highlighting demo.
#ifndef KONOMA_SAMPLE_H
#define KONOMA_SAMPLE_H

#include <stddef.h>

#define VEC2_ZERO ((Vec2){0.0, 0.0})

typedef struct {
    double x;
    double y;
} Vec2;

Vec2 vec2_add(Vec2 a, Vec2 b);
double vec2_len(const Vec2 *v);
size_t vec2_hash(const Vec2 *v);

#endif /* KONOMA_SAMPLE_H */