]> git.decadent.org.uk Git - ion3.git/blob - de/private.h
dde51c4ef26c98d861dcc00ee8638b2b573def4d
[ion3.git] / de / private.h
1 /*
2  * ion/de/private.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
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.
10  */
11
12 #ifndef ION_DE_PRIVATE_H
13 #define ION_DE_PRIVATE_H
14
15 #define DE_SUB_IND " ->"
16 #define DE_SUB_IND_LEN 3
17
18 #define MATCHES(S, A) (gr_stylespec_score(&(S), A)>0)
19 #define MATCHES2(S, A1, A2) (gr_stylespec_score2(&(S), A1, A2)>0)
20
21 #define ENSURE_INITSPEC(S, NM) \
22     if((S).attrs==NULL) gr_stylespec_load(&(S), NM);
23     
24 #endif /* ION_DE_PRIVATE_H */