Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ex_atlas.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "nilorea/n_common.h"
#include "nilorea/n_log.h"
#include "nilorea/n_atlas.h"
#include "allegro5/allegro_image.h"
#include "allegro5/allegro_memfile.h"
Include dependency graph for ex_atlas.c:

Go to the source code of this file.

Macros

#define ALLEGRO_UNSTABLE   1

Functions

static void expect_eqf (const char *label, float got, float want)
static void expect_true (const char *label, int cond)
int main (void)
static unsigned char * make_png (int w, int h, size_t *out_len)

Variables

static int failures = 0

Macro Definition Documentation

◆ ALLEGRO_UNSTABLE

#define ALLEGRO_UNSTABLE   1

Definition at line 38 of file ex_atlas.c.

Function Documentation

◆ expect_eqf()

void expect_eqf ( const char * label,
float got,
float want )
static
Examples
ex_atlas.c.

Definition at line 62 of file ex_atlas.c.

References failures, LOG_ERR, LOG_INFO, and n_log.

Referenced by main().

Here is the caller graph for this function:

◆ expect_true()

◆ main()

int main ( void )
Examples
ex_accept_pool_client.c, ex_accept_pool_server.c, ex_allegro_4.c, ex_atlas.c, ex_base64.c, ex_clock_sync.c, ex_common.c, ex_configfile.c, ex_cookies.c, ex_crypto.c, ex_diff.c, ex_digest.c, ex_disk_cache.c, ex_dns.c, ex_ecc.c, ex_entropy.c, ex_exceptions.c, ex_file.c, ex_file_copy.c, ex_fluid.c, ex_git.c, ex_gui.c, ex_gui_bench.c, ex_gui_button_keys.c, ex_gui_checkbox_label.c, ex_gui_color_picker.c, ex_gui_colorwheel.c, ex_gui_combobox_items.c, ex_gui_combobox_wheel.c, ex_gui_cursor.c, ex_gui_curve.c, ex_gui_custom.c, ex_gui_custom_mouse.c, ex_gui_datagrid.c, ex_gui_datagrid_keys.c, ex_gui_datagrid_sort.c, ex_gui_detach.c, ex_gui_dictionary.c, ex_gui_display_fallback.c, ex_gui_double_click.c, ex_gui_dropmenu.c, ex_gui_frameless_drag.c, ex_gui_global_scroll.c, ex_gui_glyph.c, ex_gui_grid.c, ex_gui_hexview.c, ex_gui_hover.c, ex_gui_isometric.c, ex_gui_kvtable.c, ex_gui_label_fits.c, ex_gui_label_lines.c, ex_gui_layout_persist.c, ex_gui_listbox.c, ex_gui_md.c, ex_gui_multiwin.c, ex_gui_network.c, ex_gui_particles.c, ex_gui_placeholder.c, ex_gui_popup.c, ex_gui_progressbar.c, ex_gui_reentrant.c, ex_gui_round.c, ex_gui_sectionlist.c, ex_gui_slider_default.c, ex_gui_slider_handle.c, ex_gui_slider_step.c, ex_gui_splitpane.c, ex_gui_suggest.c, ex_gui_syntaxview.c, ex_gui_text_shorten.c, ex_gui_textarea_selection.c, ex_gui_tooltip.c, ex_gui_tree_lazy.c, ex_gui_tree_order.c, ex_gui_tree_state.c, ex_gui_window_rect.c, ex_gui_zorder.c, ex_hash.c, ex_hex.c, ex_html.c, ex_http2.c, ex_http2_server.c, ex_http_req.c, ex_icc.c, ex_iso_astar.c, ex_json.c, ex_kafka.c, ex_list.c, ex_log.c, ex_markdown.c, ex_module.c, ex_monolith.c, ex_network.c, ex_network_alpn.c, ex_network_connect_abort.c, ex_network_mock.c, ex_network_proxy.c, ex_network_reactor.c, ex_network_sni.c, ex_network_sse.c, ex_network_ssl.c, ex_network_ssl_hardened.c, ex_network_ssl_hostname.c, ex_network_ssl_nonblock.c, ex_network_ws.c, ex_network_ws_limits.c, ex_nstr.c, ex_parallel_for.c, ex_pcre.c, ex_pretty.c, ex_pth.c, ex_query.c, ex_random.c, ex_sha256.c, ex_signals.c, ex_spawn.c, ex_ssrf.c, ex_stack.c, ex_threads.c, ex_tiff.c, ex_trajectory.c, ex_trees.c, ex_url.c, ex_url_safe.c, ex_wrap.c, ex_x509.c, ex_zip.c, and ex_zlib.c.

Definition at line 117 of file ex_atlas.c.

References expect_eqf(), expect_true(), failures, LOG_ERR, make_png(), n_atlas_cell_rect(), n_atlas_destroy(), n_atlas_max_bitmap_size(), n_atlas_page_ready(), n_atlas_set_page(), n_log, new_n_atlas(), and set_log_level().

Here is the call graph for this function:

◆ make_png()

unsigned char * make_png ( int w,
int h,
size_t * out_len )
static
Examples
ex_atlas.c, and ex_icc.c.

Definition at line 76 of file ex_atlas.c.

Referenced by main(), and main().

Here is the caller graph for this function:

Variable Documentation

◆ failures

int failures = 0
static
Examples
ex_atlas.c, ex_cookies.c, ex_diff.c, ex_digest.c, ex_disk_cache.c, ex_dns.c, ex_ecc.c, ex_entropy.c, ex_file_copy.c, ex_gui_button_keys.c, ex_gui_checkbox_label.c, ex_gui_color_picker.c, ex_gui_colorwheel.c, ex_gui_combobox_items.c, ex_gui_combobox_wheel.c, ex_gui_cursor.c, ex_gui_curve.c, ex_gui_custom.c, ex_gui_custom_mouse.c, ex_gui_datagrid.c, ex_gui_datagrid_keys.c, ex_gui_datagrid_sort.c, ex_gui_display_fallback.c, ex_gui_double_click.c, ex_gui_dropmenu.c, ex_gui_frameless_drag.c, ex_gui_global_scroll.c, ex_gui_glyph.c, ex_gui_grid.c, ex_gui_hexview.c, ex_gui_hover.c, ex_gui_kvtable.c, ex_gui_label_fits.c, ex_gui_label_lines.c, ex_gui_layout_persist.c, ex_gui_listbox.c, ex_gui_md.c, ex_gui_multiwin.c, ex_gui_placeholder.c, ex_gui_popup.c, ex_gui_progressbar.c, ex_gui_reentrant.c, ex_gui_round.c, ex_gui_sectionlist.c, ex_gui_slider_default.c, ex_gui_slider_handle.c, ex_gui_slider_step.c, ex_gui_splitpane.c, ex_gui_suggest.c, ex_gui_syntaxview.c, ex_gui_text_shorten.c, ex_gui_textarea_selection.c, ex_gui_tooltip.c, ex_gui_tree_lazy.c, ex_gui_tree_order.c, ex_gui_tree_state.c, ex_gui_window_rect.c, ex_gui_zorder.c, ex_hex.c, ex_html.c, ex_http2.c, ex_http2_server.c, ex_http_req.c, ex_icc.c, ex_json.c, ex_markdown.c, ex_module.c, ex_network_alpn.c, ex_network_sni.c, ex_network_ssl_nonblock.c, ex_parallel_for.c, ex_pcre.c, ex_pretty.c, ex_pth.c, ex_query.c, ex_random.c, ex_sha256.c, ex_spawn.c, ex_ssrf.c, ex_tiff.c, ex_url.c, ex_url_safe.c, ex_wrap.c, ex_x509.c, and ex_zip.c.

Definition at line 51 of file ex_atlas.c.

Referenced by approx(), check(), check(), collect(), expect(), expect_canon(), expect_close(), expect_close(), expect_close(), expect_close(), expect_contains(), expect_contains(), expect_encode(), expect_eq(), expect_eq_float(), expect_eq_int(), expect_eqf(), expect_hex(), expect_link_absent(), expect_link_present(), expect_missing(), expect_near(), expect_near(), expect_order(), expect_parse_error(), expect_resolve(), expect_size(), expect_streq(), expect_text(), expect_text(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_true(), expect_unified(), h2_on_request(), handle_stays_inside(), main(), main(), on_request(), peer_headers(), peer_put(), server_fn(), test_aead(), test_aead_chacha(), test_boundaries(), test_bounded(), test_build_response(), test_bytes(), test_callback_stop(), test_consttime(), test_continuation(), test_decode_errors(), test_decode_roundtrip(), test_digests(), test_dribbled_reads(), test_empty_and_null(), test_enctype(), test_errors(), test_errors(), test_forms(), test_get(), test_guards(), test_handshake(), test_handshake_errors(), test_hmac(), test_hmac_variants(), test_hpack_guards(), test_hpack_overflow(), test_hpack_rfc_huffman(), test_hpack_rfc_requests(), test_hpack_roundtrip(), test_js_urls(), test_kdf(), test_links(), test_multiplex(), test_parse(), test_pbkdf2(), test_ping_goaway(), test_post_body(), test_preface(), test_roundtrip(), test_rst_stream(), test_scripts(), test_send_flow_control(), test_send_window_stall(), test_settings(), test_sha256_hex(), test_sitemap(), test_to_text(), and test_token().