/usr/include/cleri/node.h is in libcleri-dev 0.9.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | /*
* node.h - node is created while parsing a string. a node old the result
* for one element.
*
* author : Jeroen van der Heijden
* email : jeroen@transceptor.technology
* copyright : 2016, Transceptor Technology
*
* changes
* - initial version, 08-03-2016
* - refactoring, 17-06-2017
*/
#ifndef CLERI_NODE_H_
#define CLERI_NODE_H_
#include <stddef.h>
#include <inttypes.h>
#include <cleri/cleri.h>
#include <cleri/children.h>
/* typedefs */
typedef struct cleri_s cleri_t;
typedef struct cleri_children_s cleri_children_t;
typedef struct cleri_node_s cleri_node_t;
/* public macro function */
#define cleri_node_has_children(__node) \
(__node->children != NULL && __node->children->node != NULL)
/* private functions */
cleri_node_t * cleri__node_new(cleri_t * cl_obj, const char * str, size_t len);
void cleri__node_free(cleri_node_t * node);
/* private use as empty node */
extern cleri_node_t * CLERI_EMPTY_NODE;
/* structs */
struct cleri_node_s
{
/* public */
const char * str;
size_t len;
cleri_t * cl_obj;
cleri_children_t * children;
/* private */
uint_fast8_t ref;
int64_t result;
};
#endif /* CLERI_NODE_H_ */
|