summaryrefslogtreecommitdiff
path: root/src/raptor_sax2.c
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2010-02-05 18:10:39 -0800
committerDave Beckett <dave@dajobe.org>2010-02-05 18:10:39 -0800
commit323d0ebb63a8c41afe961f0636974b104212864b (patch)
tree53f1a0c504901c1ec07e8f0ae2d4e86a70deff9b /src/raptor_sax2.c
parentd747871de0d1bf017bf867ba02b9706ef7ae1f43 (diff)
downloadraptor-323d0ebb63a8c41afe961f0636974b104212864b.tar.gz
Replace raptor_feature_get_areas with raptor_feature_is_valid_for_area
(raptor_feature_get_areas): Deleted. (raptor_feature_is_valid_for_area): Added to check if a feature is valid for a given area; this all the calls to raptor_feature_get_areas() ever was used for.
Diffstat (limited to 'src/raptor_sax2.c')
-rw-r--r--src/raptor_sax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raptor_sax2.c b/src/raptor_sax2.c
index d1513c57..ced03ffc 100644
--- a/src/raptor_sax2.c
+++ b/src/raptor_sax2.c
@@ -680,7 +680,7 @@ int
raptor_sax2_set_feature(raptor_sax2 *sax2, raptor_feature feature, int value)
{
if(value < 0 ||
- !(raptor_feature_get_areas(feature) & RAPTOR_FEATURE_AREA_SAX2))
+ !raptor_feature_is_valid_for_area(feature, RAPTOR_FEATURE_AREA_SAX2))
return -1;
switch(feature) {