X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Frange-set.c;h=fc02f3720f8128d638ef67e1d81100fb4f9fe781;hb=f20d313de2b85419c3e2e22a78cdcdce499af43d;hp=cd17fe02a4e2130544d5d37687cf46210ff2de39;hpb=d0b91eae59319ab2756d0d43b9cb15eb9cd3c234;p=pspp diff --git a/src/libpspp/range-set.c b/src/libpspp/range-set.c index cd17fe02a4..fc02f3720f 100644 --- a/src/libpspp/range-set.c +++ b/src/libpspp/range-set.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2011 Free Software Foundation, Inc. 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 @@ -23,17 +23,17 @@ #include -#include +#include "libpspp/range-set.h" #include #include -#include -#include -#include +#include "libpspp/assertion.h" +#include "libpspp/compiler.h" +#include "libpspp/pool.h" -#include "minmax.h" -#include "xalloc.h" +#include "gl/minmax.h" +#include "gl/xalloc.h" static int compare_range_set_nodes (const struct bt_node *, const struct bt_node *, @@ -106,8 +106,8 @@ range_set_destroy (struct range_set *rs) /* Inserts the region starting at START and extending for WIDTH into RS. */ void -range_set_insert (struct range_set *rs, - unsigned long int start, unsigned long int width) +range_set_set1 (struct range_set *rs, + unsigned long int start, unsigned long int width) { unsigned long int end = start + width; struct range_set_node *node; @@ -152,11 +152,11 @@ range_set_insert (struct range_set *rs, } } -/* Inserts the region starting at START and extending for WIDTH +/* Deletes the region starting at START and extending for WIDTH from RS. */ void -range_set_delete (struct range_set *rs, - unsigned long int start, unsigned long int width) +range_set_set0 (struct range_set *rs, + unsigned long int start, unsigned long int width) { unsigned long int end = start + width; struct range_set_node *node;