![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
Go to the source code of this file.
Data Structures | |
| struct | collector |
| struct | rects |
Macros | |
| #define | CHECK(cond, msg) |
| #define | MAX_LINES 16 |
Functions | |
| static void | collect (size_t first, size_t last, size_t line, double width, void *user) |
| static int | eq (double a, double b) |
| int | main (void) |
| static void | rect_collect (size_t line, double x0, double x1, void *user) |
| static size_t | run (const n_wrap_item *items, size_t count, double max_width, collector *c) |
Variables | |
| static int | failures = 0 |
| struct collector |
| struct rects |
| #define CHECK | ( | cond, | |
| msg ) |
| #define MAX_LINES 16 |
Definition at line 43 of file ex_wrap.c.
Referenced by collect(), and rect_collect().
|
static |
Definition at line 50 of file ex_wrap.c.
References failures, collector::first, collector::last, last, line(), LOG_ERR, MAX_LINES, collector::n, n_log, and collector::width.
|
static |
Definition at line 93 of file ex_wrap.c.
Referenced by _n_html_skip_rawtext(), _n_parse_query_params(), main(), and n_cookiejar_add_from_header().
| int main | ( | void | ) |
Definition at line 98 of file ex_wrap.c.
References CHECK, collect(), eq(), failures, collector::first, collector::last, rects::line, LOG_ERR, LOG_NOTICE, collector::n, rects::n, n_log, n_wrap_index_at(), n_wrap_layout(), N_WRAP_NEWLINE, N_WRAP_SPACE, n_wrap_span_rects(), rect_collect(), run, set_log_level(), collector::width, rects::x0, and rects::x1.
|
static |
|
static |
Definition at line 84 of file ex_wrap.c.
References CHECK, collect(), collector::n, and n_wrap_layout().