<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14107</bug_id>
          
          <creation_ts>2020-10-23 11:10:38 +0000</creation_ts>
          <short_desc>The libopkg source should consistently use stdbool for its boolean value implementation, for currency and consistency.</short_desc>
          <delta_ts>2021-07-08 14:58:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>0.4.4</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>ACCEPTED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>next-patch</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Stewart">astewart.49c6</reporter>
          <assigned_to name="Alex Stewart">alex.stewart</assigned_to>
          <cc>alex.stewart</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88483</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Stewart">astewart.49c6</who>
    <bug_when>2020-10-23 11:10:38 +0000</bug_when>
    <thetext>1. Feature Description:
In this recent patchset[1], @Alex Stewart used stdbool.h and the bool type it provided to implement a new attribute for libopkg commands. This is a contemporary and reasonable approach, but it differs from other boolean implementations in the codebase - where the other implementations use C int primitives to encode boolean. The patchset has been accepted upstream on the understanding that we will standardize the boolean implementation at a later date.

There&apos;s no time like the present. Update all the boolean implementations in the libopkg codebase to use stdbool - except where obviously inappropriate.

[1] https://groups.google.com/forum/#!topic/opkg-devel/UucYATiuHKU

2. Feature Present Code Status(including location and version):
N/A

3. Code License (e.g. GPLv2):
N/A

4. Business Impaction:
None

5. Other Justification:
Maintainability of the libopkg codebase benefits from currency and consistency.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>