2016-11-01 02:32:40 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Alex Yatskov <alex@foosoft.net>
|
|
|
|
* Author: Alex Yatskov <alex@foosoft.net>
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* 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-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,
|
2016-12-02 04:46:44 +00:00
|
|
|
FLAG_FONT_TAGS = 1 << 3,
|
2016-12-01 07:19:16 +00:00
|
|
|
};
|
|
|
|
|
2016-11-19 20:23:06 +00:00
|
|
|
#endif /* UTIL_H */
|