Debian Codegraph @

texk/gregorio/gregorio-src/src/bool.h

raw
1 /*
2 * Gregorio is a program that translates gabc files to GregorioTeX
3 * This header provides a minimum of C11-like bool functionality.
4 *
5 * Copyright (C) 2015-2025 The Gregorio Project (see CONTRIBUTORS.md)
6 *
7 * This file is part of Gregorio.
8 *
9 * Gregorio is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
13 *
14 * Gregorio is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with Gregorio. If not, see <http://www.gnu.org/licenses/>.
21 */
22
23 #ifndef BOOL_H
24 #define BOOL_H
25
26 #include <stdbool.h>
27
28 /* C23 makes a typedef bool into an error. */
29 /* typedef unsigned int bool; */
30 #define true 1
31 #define false 0
32
33 #endif