Re: Bugs in includes


From: Amon Ott <ao@rsbac.org>
Subject: Re: Bugs in includes
Date: Tue, 19 Sep 2000 16:25:01 +0200

Next Article (by Author): 1.0.9c-pre1 Amon Ott
Previous Article (by Author): Re: new version? Amon Ott
Top of Thread: Bugs in includes inger
Articles sorted by: [Date] [Author] [Subject]


On Die, 19 Sep 2000 inger wrote:
> I've found some bugs in RSBAC includes.
> 
> It's not a bugs in code, it's a bugs in idea.
> 
> 1. You use name "class" in PM includes (see text below). So I can't use
> C++ to develop RSBAC utilites.
> 
> 
> struct rsbac_pm_na_data_t
>     {
>       rsbac_pm_task_id_t                 task;
>       rsbac_pm_object_class_id_t         class;
>       rsbac_pm_tp_id_t                   tp;
>       rsbac_pm_accesses_t                accesses;
>     };

This could be changed with moderate work. I will do that.
 
> 2. You define "boolean" type (see text below). Some GUI libraries like
> QT define this type too. So I see "redeclared" compiler error.
> 
> #if defined(FALSE) || defined(TRUE)
> typedef int boolean;
> #ifndef FALSE
> #define FALSE 0
> #endif
> #ifndef TRUE
> #define TRUE 1
> #endif
> #else
> typedef enum {FALSE, TRUE} boolean;
> #endif
> 
> 
> Result: RSBAC not ready to work with C++. But we need C++ to develop
> interesting utilites.

I will also change this definition.

Amon.
-
To unsubscribe from the rsbac list, send a mail to
majordomo@rsbac.org with
unsubscribe rsbac
as single line in the body.

Next Article (by Author): 1.0.9c-pre1 Amon Ott
Previous Article (by Author): Re: new version? Amon Ott
Top of Thread: Bugs in includes inger
Articles sorted by: [Date] [Author] [Subject]


Go to Compuniverse LWGate Home Page.