pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pdf-devel] Status of PDF_ERROR versus PDF_EBADDATA


From: Jeffrey Walton
Subject: [pdf-devel] Status of PDF_ERROR versus PDF_EBADDATA
Date: Fri, 19 Feb 2010 07:03:31 -0500

Hi All,

Nearly all (if not all) of the pdf-types functions return PDF_ERROR if
response to a required but missing parameter. For example,

    pdf_i64_t a, b;
    pdf_status_t status;
    pdf_i64_add(NULL, a, b, &status)

would return PDF_ERROR even though PDF_EBADDATA specifies bad
arguments into a function.

Other sources, such as pdf-time, usually returns PDF_EBADDATA. Should
the various functions in pdf-types respond with PDF_EBADDATA in this
circumstance?

Jeff




reply via email to

[Prev in Thread] Current Thread [Next in Thread]