File: set.h

package info (click to toggle)
labwc 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,980 kB
  • sloc: ansic: 34,416; perl: 5,836; xml: 875; sh: 162; python: 131; makefile: 12
file content (19 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_SET_H
#define LABWC_SET_H

#include <stdbool.h>
#include <stdint.h>

#define LAB_SET_MAX_SIZE 16

struct lab_set {
	uint32_t values[LAB_SET_MAX_SIZE];
	int size;
};

bool lab_set_contains(struct lab_set *set, uint32_t value);
void lab_set_add(struct lab_set *set, uint32_t value);
void lab_set_remove(struct lab_set *set, uint32_t value);

#endif /* LABWC_SET_H */