> Date: Thu, 23 Jul 2009 20:45:33 +0200 > From: [email protected] > > > Hi Gerel. > > +...@item PDF_EIMPLLIMIT > +The filter has been asked for features that aren't implemented > yet. > > That error code is for signaling that the operation was not successful > due that some implementation limit has been reached. See the > reference manual for the table of implementation limits. >
Thanks for the note. Following is the updated patch. ## # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: [email protected] # target_branch: file:///home/gerel/PROJECTS/libgnupdf/trunk/ # testament_sha1: 01936bd7d3a3f72aa494bdca5e0437dfb894741e # timestamp: 2009-07-23 16:27:06 -0300 # base_revision_id: [email protected] # # Begin patch === modified file 'ChangeLog' --- ChangeLog 2009-07-20 18:34:37 +0000 +++ ChangeLog 2009-07-23 16:34:57 +0000 @@ -1,3 +1,11 @@ +2009-07-23 Gerardo E. Gidoni <[email protected]> + + * doc/gnupdf-arch.texi: added missing error status codes. + + * doc/gnupdf.texi: likewise. + + * src/base/pdf-error.h: added new status code, PDF_EIO. + 2009-07-20 Jose E. Marchesi <[email protected]> * configure.ac: Condition fixed in the reporting of the === modified file 'doc/gnupdf-arch.texi' --- doc/gnupdf-arch.texi 2009-06-20 02:25:19 +0000 +++ doc/gnupdf-arch.texi 2009-07-23 19:26:59 +0000 @@ -719,6 +719,14 @@ ready to fill it when it becomes available, via a new call to the 'apply' function. It is assumed that the output buffer is full after the apply function returns this value. +...@item PDF_EIMPLLIMIT +The filter operation was not successful due that some implementation +limit has been reached. See the reference manual for the table of +implementation limits. +...@item PDF_ENOMEM +The filter implementation needs more memory to proceed. +...@item PDF_EBADFILE +The requested data violates PDF specifications. @item PDF_ERROR Error in the data processed by the filter. If the filter implementation returns this value then the 'apply' function will not be === modified file 'doc/gnupdf.texi' --- doc/gnupdf.texi 2009-07-13 19:06:37 +0000 +++ doc/gnupdf.texi 2009-07-23 19:26:59 +0000 @@ -4463,8 +4463,18 @@ All the requested bytes were successfully read into @var{buf}. @item PDF_EEOF An end of file condition occurred. +...@item PDF_EAGAIN +Resource temporarily unavailable, try later. +...@item PDF_EIO +Input/output error. @item PDF_EINVOP Reading was requested in a writing stream. +...@item PDF_EIMPLLIMIT +Some implementation limit has been reached. +...@item PDF_ENOMEM +Filter needs more memory. +...@item PDF_EBADFILE +Filter requested data violates PDF specifications. @item PDF_ERROR An error prevented to read the bytes. @end table @@ -4498,10 +4508,16 @@ @table @code @item PDF_OK All the requested bytes were successfully written into @var{stm}. -...@item PDF_EEOF +...@item PDF_ENOSPC A disk full condition occurred. @item PDF_EINVOP Writting was requested in a read stream. +...@item PDF_EIMPLLIMIT +Some implementation limit has been reached. +...@item PDF_ENOMEM +Filter needs more memory. +...@item PDF_EIO +Input/output error. @item PDF_ERROR An error prevented to write the bytes. @end table @@ -4533,6 +4549,16 @@ End of file. @item PDF_EINVOP Reading was requested in a writing stream. +...@item PDF_EAGAIN +Resource temporarily unavailable, try later. +...@item PDF_EIO +Input/output error. +...@item PDF_EIMPLLIMIT +Some implementation limit has been reached. +...@item PDF_ENOMEM +Filter needs more memory. +...@item PDF_EBADFILE +Filter requested data violates PDF specifications. @item PDF_ERROR An error prevented to read the character. @end table @@ -4564,6 +4590,16 @@ End of file. @item PDF_EINVOP Peeking was requested in a writing stream. +...@item PDF_EAGAIN +Resource temporarily unavailable, try later. +...@item PDF_EIO +Input/output error. +...@item PDF_EIMPLLIMIT +Some implementation limit has been reached. +...@item PDF_ENOMEM +Filter needs more memory. +...@item PDF_EBADFILE +Filter requested data violates PDF specifications. @item PDF_ERROR An error prevented to peek the character. @end table @@ -4597,10 +4633,14 @@ @table @code @item PDF_OK All the requested bytes were successfully written into @var{stm}. -...@item PDF_EEOF +...@item PDF_ENOSPC A disk full condition occurred. @item PDF_EINVOP Writting was requested in a read stream. +...@item PDF_EIMPLLIMIT +Some implementation limit has been reached. +...@item PDF_EIO +Input/output error. @item PDF_ERROR An error prevented to write the bytes. @end table @@ -9198,6 +9238,14 @@ The file element or a given pointer is invalid. @item PDF_EEOF An end of file condition occurred. +...@item PDF_EINVOP +Invalid operation, requested read on write mode file. +...@item PDF_EAGAIN +Resource temporarily unavailable, try later. +...@item PDF_EIMPLLIMIT +Some implementation limit has been reached. +...@item PDF_EIO +Input/output error. @item PDF_ERROR An error prevented to read the bytes. @end table @@ -9232,8 +9280,16 @@ All the requested bytes were successfully written to @var{file}. @item PDF_EBADDATA The file element or a given pointer is invalid. -...@item PDF_ENOMEM +...@item PDF_ENOSPC A disk full condition ocurred. +...@item PDF_EINVOP +Invalid operation, requested write on read mode file. +...@item PDF_EAGAIN +Resource temporarily unavailable, try later. +...@item PDF_EIMPLLIMIT +Some implementation limit has been reached. +...@item PDF_EIO +Input/output error. @item PDF_ERROR An error prevented to write the bytes. @end table @@ -9264,6 +9320,14 @@ Bad function parameters to underlying @code{write()}. @item PDF_EAGAIN Try again. +...@item PDF_EINVOP +Invalid operation, requested write on read mode file. +...@item PDF_ENOSPC +A disk full condition ocurred. +...@item PDF_EIMPLLIMIT +Some implementation limit has been reached. +...@item PDF_EIO +Input/output error. @item PDF_ERROR There was an error flushing the open file. @end table === modified file 'src/base/pdf-error.h' --- src/base/pdf-error.h 2009-05-19 18:19:15 +0000 +++ src/base/pdf-error.h 2009-07-23 16:34:57 +0000 @@ -1,4 +1,4 @@ -/* -*- mode: C -*- Time-stamp: "2009-05-11 16:05:06 davazp" +/* -*- mode: C -*- Time-stamp: "2009-07-23 12:43:28 gerel" * * File: pdf-error.h * Date: Sun Feb 24 20:22:05 2008 @@ -113,6 +113,7 @@ ERROR_ENTRY (PDF_EDIVBYZERO, "divison by zero"), \ ERROR_ENTRY (PDF_ENONODE, "no node found"), \ ERROR_ENTRY (PDF_EINVRANGE, "invalid range"), \ + ERROR_ENTRY (PDF_EIO, "input/output error"), \ ERROR_ENTRY (PDF_ETEXTENC, "error in text encoding"), \ ERROR_ENTRY (PDF_ENOMATCH, "no matching found"), \ ERROR_ENTRY (PDF_EBADTEXT, "invalid text format"), \ # Begin bundle IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTF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