Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
LL_ATTR_DATATYPE_BOOL and LL_ATTR_DATATYPE_INT are both defined as 3
Mike_Morper
in lapi_documents.h file, you find the following:#define LL_ATTR_DATATYPE_INT 3#define LL_ATTR_DATATYPE_BOOL 3isnt this invalid?
Find more posts tagged with
Comments
Jonny_Coombes
Message from Jonny Coombes <
jcoombes@opentext.com
> via eLink
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">eLink
Not at all - in C, (this has changed recently due to standardisation etc...I think, although depends on the compiler rev that you use) you never had a boolean datatype as such, therefore you would always define a BOOL datatype as an integer. These days, you actually have a bool datatype (as you would do in C++) so you might re-write this or not define the macro in the first place.
Defining a boolean type in this way, means you can do all kinds of stuff like the classic if
(!somefunc()){ etc...
without the compiler puking everywhere.
Cheers
JC
Jonny Coombes
Principal Solutions Architect
Open Text Corporation
Tel: +44 (0) 7748 986937
Fax: +44 (0) 1494 679707
Email:
jcoombes@opentext.com
YIM: ot_jcoombes
This e-mail is protected by domestic and international copyright laws and treaties and is the property of Open Text Corporation, it may contain confidential and/or trade secret information of the Open Text Corporation and/or its subsidiaries (OTC), and may be subject to legal privilege in favour of OTC. This e-mail may only be lawfully received, accessed, displayed on a computer screen, printed, copied, and/or used by the specific addressee(s) named above (“Authorized Recipient”) for the purpose for which it was sent by OTC. All other rights and licenses to this e-mail are fully reserved to OTC. If you are not an Authorized Recipient, you are required to immediately delete this e-mail in its entirety without printing, copying, using, and/or re-transmitting this e-mail, either in whole or in part. The transmission of this e-mail by OTC is not to be construed as a waiver by OTC and/or the individual sending this e-mail on behalf of OTC of any of their respective rights or privileges at law or otherwise, howsoever arising.
From:
eLink Discussion: LAPI Discussion [mailto:lapi@elinkkc.opentext.com]
Sent:
29 November 2004 19:34
To:
eLink Recipient
Subject:
LL_ATTR_DATATYPE_BOOL and LL_ATTR_DATATYPE_INT are both defined as 3
LL_ATTR_DATATYPE_BOOL and LL_ATTR_DATATYPE_INT are both defined as 3
Posted by
HPcaAdmin
(Runds, Thomas ) on 11/29/2004 02:29 PM
in lapi_documents.h file, you find the following:
#define LL_ATTR_DATATYPE_INT 3
#define LL_ATTR_DATATYPE_BOOL 3
isnt this invalid?