Austin Group Defect Tracker

Aardvark Mark IV


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001469 [Issue 8 drafts] Base Definitions and Headers Editorial Error 2021-05-04 16:03 2021-05-06 15:07
Reporter dennisw View Status public  
Assigned To
Priority normal Resolution Accepted  
Status Resolved   Product Version Draft 1.1
Name Dennis Wölfing
Organization
User Reference
Section <search.h>
Page Number 316
Line Number 11052-11055
Final Accepted Text
Summary 0001469: Inconsistent return type for tfind and tsearch
Description 0001011 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 Action On 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 *));
Tags issue8
Attached Files

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

-  Notes
(0005350)
geoffclare (manager)
2021-05-06 09:30

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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker