[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: |
jemarch |
Subject: |
Re: [pdf-devel] Something is scaring me in the description of the library |
Date: |
Wed, 20 Feb 2008 11:07:37 +0100 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
> -- 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.
--
Jose E. Marchesi <address@hidden>
Project Engineer
Real Time System Division
Deimos Space, SL (http://www.deimos-space.com)