[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] Something is scaring me in the description of the librar
From: |
gerel |
Subject: |
Re: [pdf-devel] Something is scaring me in the description of the library |
Date: |
Thu, 21 Feb 2008 15:50:58 -0300 |
> Date: Wed, 20 Feb 2008 11:07:37 +0100
> From: address@hidden
> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
> Content-Type: text/plain; charset=US-ASCII
>
>
> > -- Function: char* pdf_alloc (int SIZE)
> > Allocates heap memory.
> >
> > *Parameters*
> >
> > SIZE
> > The requested number of octects to allocate.
> >
> > If there is not enough available memory to satisfy the
> > petition a fatal error is signaled killing the current
> > process. An error status is returned to the operating
> > system.
>
> Why should a library terminate my process?
>
> It shouldn't. It is a no-no to call `exit' in a shared library.
> I just changed the API:
>
> 124,127d123
> <
> < If there is not enough available memory to satisfy the petition a
> < fatal error is signaled killing the current process. An error status
> < is returned to the operating system.
> 132a129,130
> > If there is not enough available memory to satisfy the petition then
> > @code{NULL} is returned.
>
> Thanks.
>
Then I think we should not provide the option to abort the program on the error
module either, right ?
-gerel