X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Frange-map.h;h=05525baaa373efb1eb68fb98bc4bd5e2b58b7321;hb=f5c108becd49d78f4898cab11352291f5689d24e;hp=8a5f6f43ce59177ecda3dbd8cce9e3a7511be69c;hpb=7eee0554f378481faf447e2d2e940f389d6b05ec;p=pspp-builds.git diff --git a/src/libpspp/range-map.h b/src/libpspp/range-map.h index 8a5f6f43..05525baa 100644 --- a/src/libpspp/range-map.h +++ b/src/libpspp/range-map.h @@ -43,7 +43,7 @@ ((STRUCT *) ((char *) (NODE) - offsetof (STRUCT, MEMBER))) /* A range map node, to be embedded in the data value. */ -struct range_map_node +struct range_map_node { struct bt_node bt_node; /* Balanced tree node. */ unsigned long int start; /* Start of range. */ @@ -52,27 +52,27 @@ struct range_map_node /* Returns the start of the range in the given NODE. */ static inline unsigned long int -range_map_node_get_start (const struct range_map_node *node) +range_map_node_get_start (const struct range_map_node *node) { return node->start; } /* Returns the end of the range in the given NODE, plus one. */ static inline unsigned long int -range_map_node_get_end (const struct range_map_node *node) +range_map_node_get_end (const struct range_map_node *node) { return node->end; } /* Returns the width of the range in the given NODE. */ static inline unsigned long int -range_map_node_get_width (const struct range_map_node *node) +range_map_node_get_width (const struct range_map_node *node) { return node->end - node->start; } /* Range map. */ -struct range_map +struct range_map { struct bt bt; };