diff mbox

[PATCHv2,1/8] API: implement odp_bool type

Message ID 1417110685-2931-2-git-send-email-maxim.uvarov@linaro.org
State Accepted
Commit 2ac48e3216f3118e51b2d4f2e42f274a4f17fca1
Headers show

Commit Message

Maxim Uvarov Nov. 27, 2014, 5:51 p.m. UTC
To have compatibility with other compilers define custom
booalen type for odp.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 platform/linux-generic/include/api/odp_std_types.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Comments

Bill Fischofer Nov. 28, 2014, 2:50 a.m. UTC | #1
On Thu, Nov 27, 2014 at 12:51 PM, Maxim Uvarov <maxim.uvarov@linaro.org>
wrote:

> To have compatibility with other compilers define custom
> booalen type for odp.
>
> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
>

Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>


> ---
>  platform/linux-generic/include/api/odp_std_types.h | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/platform/linux-generic/include/api/odp_std_types.h
> b/platform/linux-generic/include/api/odp_std_types.h
> index b12a2f3..61255a6 100644
> --- a/platform/linux-generic/include/api/odp_std_types.h
> +++ b/platform/linux-generic/include/api/odp_std_types.h
> @@ -27,9 +27,11 @@ extern "C" {
>  #include <inttypes.h>
>  #include <limits.h>
>
> -
> -
> -
> +/** Use odp boolean type to have it well-defined and known size,
> +  * regardless which compiler is used as this facilities interoperability
> +  * between e.g. different compilers.
> +  */
> +typedef int odp_bool_t;
>
>  #ifdef __cplusplus
>  }
> --
> 1.8.5.1.163.gd7aced9
>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
Maxim Uvarov Nov. 28, 2014, 9:58 a.m. UTC | #2
Merged this  boolean patch.


Maxim.

On 11/28/2014 05:50 AM, Bill Fischofer wrote:
>
>
> On Thu, Nov 27, 2014 at 12:51 PM, Maxim Uvarov 
> <maxim.uvarov@linaro.org <mailto:maxim.uvarov@linaro.org>> wrote:
>
>     To have compatibility with other compilers define custom
>     booalen type for odp.
>
>     Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org
>     <mailto:maxim.uvarov@linaro.org>>
>
>
> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org 
> <mailto:bill.fischofer@linaro.org>>
>
>     ---
>      platform/linux-generic/include/api/odp_std_types.h | 8 +++++---
>      1 file changed, 5 insertions(+), 3 deletions(-)
>
>     diff --git a/platform/linux-generic/include/api/odp_std_types.h
>     b/platform/linux-generic/include/api/odp_std_types.h
>     index b12a2f3..61255a6 100644
>     --- a/platform/linux-generic/include/api/odp_std_types.h
>     +++ b/platform/linux-generic/include/api/odp_std_types.h
>     @@ -27,9 +27,11 @@ extern "C" {
>      #include <inttypes.h>
>      #include <limits.h>
>
>     -
>     -
>     -
>     +/** Use odp boolean type to have it well-defined and known size,
>     +  * regardless which compiler is used as this facilities
>     interoperability
>     +  * between e.g. different compilers.
>     +  */
>     +typedef int odp_bool_t;
>
>      #ifdef __cplusplus
>      }
>     --
>     1.8.5.1.163.gd7aced9
>
>
>     _______________________________________________
>     lng-odp mailing list
>     lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
>     http://lists.linaro.org/mailman/listinfo/lng-odp
>
>
diff mbox

Patch

diff --git a/platform/linux-generic/include/api/odp_std_types.h b/platform/linux-generic/include/api/odp_std_types.h
index b12a2f3..61255a6 100644
--- a/platform/linux-generic/include/api/odp_std_types.h
+++ b/platform/linux-generic/include/api/odp_std_types.h
@@ -27,9 +27,11 @@  extern "C" {
 #include <inttypes.h>
 #include <limits.h>
 
-
-
-
+/** Use odp boolean type to have it well-defined and known size,
+  * regardless which compiler is used as this facilities interoperability
+  * between e.g. different compilers.
+  */
+typedef int odp_bool_t;
 
 #ifdef __cplusplus
 }