[Haifux] Re: OT: PROG question: regarding returning errors in libraries

2003-02-07 Thread Muli Ben-Yehuda
On Fri, Feb 07, 2003 at 05:54:38PM +0200, Oleg Goldshmidt wrote: > Interesting topic. Maybe more suitable for hackers-il, as > non-Linux-specific? Maybe we need programming-il? > and __LINE__ (and if you only care about gcc than you can also use > __FUNCTION__) then the trace is easy to follow.

[Haifux] Re: OT: PROG question: regarding returning errors in libraries

2003-02-07 Thread Muli Ben-Yehuda
On Fri, Feb 07, 2003 at 03:18:41PM +0200, guy keren wrote: > 3. the function returns the error code by itself (with either a >per-function errors enum, or a global list of error codes - with one >value for 'success'). this puts consistency into the code (every >function that might f