- Disable single-column listviews when double-clicked, and provide a
[AROS.git] / workbench / libs / commodities / cxobjerror.c
blobee1d5f8c1c2d99181951eeee0598a6029cceab33
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 /*****************************************************************************
11 NAME */
13 #include "cxintern.h"
14 #include <proto/commodities.h>
16 AROS_LH1I(LONG, CxObjError,
18 /* SYNOPSIS */
20 AROS_LHA(CxObj *, co, A0),
22 /* LOCATION */
24 struct Library *, CxBase, 11, Commodities)
26 /* FUNCTION
28 Obtain the ackumulated error of commodity object 'co'.
30 INPUTS
32 co - the object the error of which to get
34 RESULT
36 The ackumulated error of the object 'co'. See <libraries/commodities.h>
37 for the possible errors.
39 NOTES
41 EXAMPLE
43 BUGS
45 SEE ALSO
47 ClearCxObjError()
49 INTERNALS
51 There seems to be some kind of RKRM error here. The RKRM says that
52 COERR_ISNULL is returned if 'co' is NULL. COERR_ISNULL is furthermore
53 defined as 1 in <libraries/commodities.h>. However, in the RESULTS part
54 is says "error - the accumulated error, or 0 if 'co' is NULL". As the
55 commodities.library I have (39.6 I believe) returns 0, I do the same
56 below.
58 HISTORY
60 ******************************************************************************/
63 AROS_LIBFUNC_INIT
65 return (co == NULL) ? 0 : co->co_Error;
67 AROS_LIBFUNC_EXIT
68 } /* CxObjError */