IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#499 closed defect (fixed)

Return types

Reported by: David.Robbins@… Owned by: Paul Price
Priority: high Milestone:
Component: PSLib SDRS Version: unspecified
Severity: normal Keywords: IPP-doc
Cc:

Description

As far I can tell, the following functions should return a bool instead of int,

int psXMLDocToFD(const psXMLDoc *doc, int fd)
int psXMLDocToMem(const psXMLDoc *doc, char *buffer)
int psXMLDocToFile(const psXMLDoc *doc, const char *filename)

I can't see any reason for these to return int's, so if this doesn't change,
please elaborate on what that int represents. I could also see void be
appropriate.

Change History (4)

comment:1 by robert.desonia@…, 21 years ago

bug_group: PSLib?IPP-doc?
Component: xmlPSLib SDRS
Keywords: IPP-doc added; PSLib removed
product: PSLibIPP-doc

comment:2 by robert.desonia@…, 21 years ago

Owner: changed from robert.desonia@… to Paul Price

comment:3 by robert.desonia@…, 21 years ago

Actually, I think that the return values should be bool to indicate success/failure.

comment:4 by Paul Price, 21 years ago

Resolution: fixed
Status: newclosed

Agreed --- let's make them bool.

bool psXMLDocToFile(const psXMLDoc *doc, const char *filename);
bool psXMLDocToMem(const psXMLDoc *doc, char *buffer);
bool psXMLDocToFD(const psXMLDoc *doc, int fd);

Note: See TracTickets for help on using tickets.