MySQL  8.0.20
Source Code Documentation
Go to the documentation of this file.
1 /* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  GNU General Public License, version 2.0, for more details.
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23 #ifndef NODE_SET_H
24 #define NODE_SET_H
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
30 #define dbg_node_set(s) _dbg_node_set(s, #s)
31 #define g_dbg_node_set(s) _g_dbg_node_set(s, #s)
32 bool_t equal_node_set(node_set x, node_set y);
33 bool_t is_empty_node_set(node_set set);
34 bool_t is_full_node_set(node_set set);
35 bool_t is_set(node_set set, node_no i);
36 u_int node_count(node_set set);
37 node_set *alloc_node_set(node_set *set, u_int n);
38 node_set *init_node_set(node_set *set, u_int n);
39 node_set *reset_node_set(node_set *set);
40 node_set *set_node_set(node_set *set);
41 node_set bit_set_to_node_set(bit_set *set, u_int n);
42 node_set clone_node_set(node_set set);
43 char *_dbg_node_set(node_set set, const char *name);
44 void _g_dbg_node_set(node_set set, const char *name);
45 void add_node(node_set set, node_no node);
46 void and_node_set(node_set *x, node_set const *y);
47 void copy_node_set(node_set const *from, node_set *to);
48 void copy_node_set(node_set const *from, node_set *to);
49 void dump_node_set(node_set set);
50 void free_node_set(node_set *set);
51 void not_node_set(node_set *x, node_set const *y);
52 void or_node_set(node_set *x, node_set const *y);
53 void remove_node(node_set set, node_no node);
54 void xor_node_set(node_set *x, node_set const *y);
55 node_set *realloc_node_set(node_set *set, u_int n);
57 #ifdef __cplusplus
58 }
59 #endif
61 #endif
void copy_node_set(node_set const *from, node_set *to)
Definition: node_set.c:89
void remove_node(node_set set, node_no node)
Definition: node_set.c:265
void add_node(node_set set, node_no node)
Definition: node_set.c:255
void free_node_set(node_set *set)
Definition: node_set.c:115
char * _dbg_node_set(node_set set, const char *name)
Debug a node set.
Definition: node_set.c:140
node_set * init_node_set(node_set *set, u_int n)
Definition: node_set.c:105
void xor_node_set(node_set *x, node_set const *y)
Definition: node_set.c:295
u_int node_count(node_set set)
Definition: node_set.c:193
void dump_node_set(node_set set)
Definition: node_set.c:54
case opt name
Definition: sslopt-case.h:32
void not_node_set(node_set *x, node_set const *y)
Definition: node_set.c:306
void and_node_set(node_set *x, node_set const *y)
Definition: node_set.c:275
bool_t is_set(node_set set, node_no i)
Definition: node_set.c:243
__u_int u_int
Definition: types.h:73
int n
Definition: xcom_base.c:425
int bool_t
Definition: types.h:35
node_set clone_node_set(node_set set)
Definition: node_set.c:126
node_set * reset_node_set(node_set *set)
Definition: node_set.c:166
node_set * realloc_node_set(node_set *set, u_int n)
Definition: node_set.c:74
bool_t is_empty_node_set(node_set set)
Definition: node_set.c:206
node_set * alloc_node_set(node_set *set, u_int n)
Definition: node_set.c:68
bool_t is_full_node_set(node_set set)
Definition: node_set.c:218
bool_t equal_node_set(node_set x, node_set y)
Definition: node_set.c:230
void or_node_set(node_set *x, node_set const *y)
Definition: node_set.c:285
void _g_dbg_node_set(node_set set, const char *name)
Debug a node set with G_MESSAGE.
Definition: node_set.c:178
node_set bit_set_to_node_set(bit_set *set, u_int n)
Definition: node_set.c:41
node_set * set_node_set(node_set *set)
Definition: node_set.c:154