4 * Copyright (c) Tuomo Valkonen 1999-2007.
6 * Ion is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
12 #ifndef ION_DE_PRIVATE_H
13 #define ION_DE_PRIVATE_H
15 #define DE_SUB_IND " ->"
16 #define DE_SUB_IND_LEN 3
18 #define MATCHES(S, A) (gr_stylespec_score(&(S), A)>0)
19 #define MATCHES2(S, A1, A2) (gr_stylespec_score2(&(S), A1, A2)>0)
21 #define ENSURE_INITSPEC(S, NM) \
22 if((S).attrs==NULL) gr_stylespec_load(&(S), NM);
24 #endif /* ION_DE_PRIVATE_H */