[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pdf-devel] Re: PDF_EINVAL in the text module
From: |
Aleksander Morgado |
Subject: |
[pdf-devel] Re: PDF_EINVAL in the text module |
Date: |
Fri, 6 Jun 2008 09:17:54 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.9a |
> The code in the text module is using PDF_EINVAL as the used error code
> in the case of invalid parameters. All other modules are using
> PDF_EBADDATA for the same purpose.
Yes, I added it to have a difference between
a)Invalid input parameter (ex. NULL pointer) --> PDF_EINVAL
b)Invalid data contained in the input parameter (ex. Invalid UTF-8 encoded
string) --> PDF_EBADDATA
> I suggest to change the text module to use PDF_EBADDATA as well.
I thought it was a good idea... don't you think so? Anyway, no problem to
change it if needed.