View Issue Details

IDProjectCategoryView StatusLast Update
0001469Issue 8 draftsBase Definitions and Headerspublic2024-06-11 09:12
Reporterdennisw Assigned To 
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionAccepted 
Product VersionDraft 1.1 
NameDennis Wölfing
Organization
User Reference
Section<search.h>
Page Number316
Line Number11052-11055
Final Accepted Text
Summary0001469: Inconsistent return type for tfind and tsearch
Description0001011 added the posix_tnode type and changed the return types of tfind and tsearch to posix_tnode*. However in the current draft the return type is only changed in XSH but not in XBD <search.h>.
Desired ActionOn page 316 line 11052-11055 change
void *tfind(const void *, posix_tnode *const *,
    int(*)(const void *, const void *));
void *tsearch(const void *, posix_tnode **,
    int(*)(const void *, const void *));
to
posix_tnode *tfind(const void *, posix_tnode *const *,
    int(*)(const void *, const void *));
posix_tnode *tsearch(const void *, posix_tnode **,
    int(*)(const void *, const void *));
Tagsissue8

Relationships

related to 0001011 Closedajosey 1003.1(2008)/Issue 7 Make the binary search tree functions friendlier to use: require balancing, add typing and allow destruction 

Activities

geoffclare

2021-05-06 09:30

manager   bugnote:0005350

Thanks for spotting this. Clearly an oversight on my part when I applied bug 1011. I changed the function parameters in <search.h> but not the return types.

Issue History

Date Modified Username Field Change
2021-05-04 16:03 dennisw New Issue
2021-05-04 16:03 dennisw Name => Dennis Wölfing
2021-05-04 16:03 dennisw Section => <search.h>
2021-05-04 16:03 dennisw Page Number => 316
2021-05-04 16:03 dennisw Line Number => 11052-11055
2021-05-06 09:30 geoffclare Note Added: 0005350
2021-05-06 09:31 geoffclare Relationship added related to 0001011
2021-05-06 15:07 geoffclare Status New => Resolved
2021-05-06 15:07 geoffclare Resolution Open => Accepted
2021-05-06 15:07 geoffclare Tag Attached: issue8
2021-05-11 09:35 geoffclare Status Resolved => Applied
2024-06-11 09:12 agadmin Status Applied => Closed