Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 93614 invoked from network); 27 Jun 2008 11:26:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jun 2008 11:26:36 -0000 Received: (qmail 74620 invoked by uid 500); 27 Jun 2008 11:26:37 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 74610 invoked by uid 500); 27 Jun 2008 11:26:37 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 74599 invoked by uid 99); 27 Jun 2008 11:26:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jun 2008 04:26:37 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jun 2008 11:25:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0F94D234C14E for ; Fri, 27 Jun 2008 04:25:45 -0700 (PDT) Message-ID: <103700594.1214565945062.JavaMail.jira@brutus> Date: Fri, 27 Jun 2008 04:25:45 -0700 (PDT) From: "Damitha Kumarage (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Updated: (AXIS2C-740) Definition of type axis2_bool_t based on an enumeration In-Reply-To: <19188728.1193587550782.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2C-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Damitha Kumarage updated AXIS2C-740: ------------------------------------ Fix Version/s: 1.4.1 > Definition of type axis2_bool_t based on an enumeration > ------------------------------------------------------- > > Key: AXIS2C-740 > URL: https://issues.apache.org/jira/browse/AXIS2C-740 > Project: Axis2-C > Issue Type: Improvement > Components: util > Environment: Ubuntu 7.10 (Gutsy Gibbon) > Reporter: Senaka Fernando > Assignee: Damitha Kumarage > Fix For: 1.4.1 > > Attachments: diff.txt > > > Boolean types have only two states. > As C does not have such a type, an alternate mechanism has been used as, typedef int axis2_bool_t; > Now, legally axis2_bool_t types can have any integer value. > I propose that it should only be limited to two values. > Thus it should be defined as typedef enum {AXIS2_FALSE, AXIS2_TRUE} axis2_bool_t; > in C, types defined in such a manner do accept any integer value. But, when compiled using a C++ compiler, it would flag an error which should be the desired behavior. > Ex:- in C++, axis2_bool_t myVar = 100; would result in, error: invalid conversion from 'int' to 'axis2_bool_t' -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org