1
zero-epwing/util.h

37 lines
1.0 KiB
C
Raw Normal View History

2016-11-01 02:32:40 +00:00
/*
2017-04-23 19:32:22 +00:00
* Copyright (C) 2017 Alex Yatskov <alex@foosoft.net>
2016-11-01 02:32:40 +00:00
* Author: Alex Yatskov <alex@foosoft.net>
*
2017-04-23 19:32:22 +00:00
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
2016-11-01 02:32:40 +00:00
*
2017-04-23 19:32:22 +00:00
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
2016-11-01 02:32:40 +00:00
*
2017-04-23 19:32:22 +00:00
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
2016-11-01 02:32:40 +00:00
*/
2016-11-20 02:14:55 +00:00
/*
* Macros
*/
2016-11-21 02:23:50 +00:00
#ifndef UTIL_H
#define UTIL_H
2016-11-03 03:06:40 +00:00
2016-11-21 02:23:50 +00:00
#define ARRSIZE(arr) (sizeof(arr) / sizeof(arr[0]))
2016-11-03 03:06:40 +00:00
2016-12-01 07:19:16 +00:00
enum {
FLAG_PRETTY_PRINT = 1 << 0,
2016-12-02 04:46:44 +00:00
FLAG_HOOK_MARKUP = 1 << 1,
2016-12-01 07:19:16 +00:00
FLAG_POSITIONS = 1 << 2,
2017-02-12 03:46:46 +00:00
FLAG_FONTS = 1 << 3,
2017-02-12 18:24:57 +00:00
FLAG_ENTRIES = 1 << 4,
2016-12-01 07:19:16 +00:00
};
2016-11-19 20:23:06 +00:00
#endif /* UTIL_H */