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

Go to the source code of this file.

Macros

#define ALLEGRO_UNSTABLE   1

Functions

static void expect_order (N_GUI_TREE *tree, const char *const *want, int n)
static void expect_true (const char *label, int cond)
int main (int argc, char **argv)
static void visible_labels (N_GUI_TREE *tree, const char **out, int max, int *count)

Variables

static int failures = 0

Macro Definition Documentation

◆ ALLEGRO_UNSTABLE

#define ALLEGRO_UNSTABLE   1

Definition at line 30 of file ex_gui_tree_order.c.

Function Documentation

◆ expect_order()

void expect_order ( N_GUI_TREE * tree,
const char *const * want,
int n )
static
Examples
ex_gui_tree_order.c.

Definition at line 59 of file ex_gui_tree_order.c.

References failures, LOG_ERR, n_log, and visible_labels().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expect_true()

void expect_true ( const char * label,
int cond )
static

Definition at line 42 of file ex_gui_tree_order.c.

References failures, LOG_ERR, and n_log.

◆ main()

◆ visible_labels()

void visible_labels ( N_GUI_TREE * tree,
const char ** out,
int max,
int * count )
static
Examples
ex_gui_tree_order.c.

Definition at line 52 of file ex_gui_tree_order.c.

References N_GUI_TREE_NODE::label, N_GUI_TREE::nb_visible, N_GUI_TREE::nodes, and N_GUI_TREE::visible_map.

Referenced by expect_order().

Here is the caller graph for this function:

Variable Documentation

◆ failures

int failures = 0
static

Definition at line 40 of file ex_gui_tree_order.c.