Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4012acf

Browse files
committed
improve comments and declarations in rangeset.c
1 parent25cff80 commit4012acf

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

‎src/rangeset.c

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@
1111
#include"rangeset.h"
1212

1313

14+
staticIndexRangeirange_handle_cover_internal(IndexRangeir_covering,
15+
IndexRangeir_inner,
16+
List**new_iranges);
17+
18+
staticIndexRangeirange_union_internal(IndexRangefirst,
19+
IndexRangesecond,
20+
List**new_iranges);
21+
22+
1423
/* Check if two ranges intersect */
1524
bool
1625
iranges_intersect(IndexRangea,IndexRangeb)
@@ -175,13 +184,13 @@ irange_union_internal(IndexRange first,
175184
/* range 'first' covers 'second' */
176185
if (irange_eq_bounds(ir_union,first))
177186
{
178-
/*Save rightmost IndexRangeto 'ret' */
187+
/*Return rightmost IndexRange, save othersto 'new_iranges' */
179188
returnirange_handle_cover_internal(first,second,new_iranges);
180189
}
181190
/* range 'second' covers 'first' */
182191
elseif (irange_eq_bounds(ir_union,second))
183192
{
184-
/*Save rightmost IndexRangeto 'ret' */
193+
/*Retun rightmost IndexRange, save othersto 'new_iranges' */
185194
returnirange_handle_cover_internal(second,first,new_iranges);
186195
}
187196
/* No obvious leader, lossiness differs */
@@ -242,9 +251,7 @@ irange_union_internal(IndexRange first,
242251
}
243252
}
244253

245-
/*
246-
* Make union of two index rage lists.
247-
*/
254+
/* Make union of two index rage lists */
248255
List*
249256
irange_list_union(List*a,List*b)
250257
{
@@ -307,9 +314,7 @@ irange_list_union(List *a, List *b)
307314
returnresult;
308315
}
309316

310-
/*
311-
* Find intersection of two range lists.
312-
*/
317+
/* Find intersection of two range lists */
313318
List*
314319
irange_list_intersection(List*a,List*b)
315320
{

‎src/rangeset.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
* IndexRange contains a set of selected partitions.
2121
*/
2222
typedefstruct {
23-
/* lossy == should we useIndexScan? */
23+
/* lossy == should we usequals? */
2424
/* valid == is this IndexRange valid? */
2525

26-
/* Don't swapthis fields */
26+
/* Don't swapthese fields */
2727
uint32lower;/* valid + lower_bound */
2828
uint32upper;/* lossy + upper_bound */
2929
}IndexRange;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp