Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – tendra.SVN – Blame – /branches/tendra5/src/producers/common/construct/access.h – Rev 2

Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
2
    		 Crown Copyright (c) 1997
3
 
4
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
12
 
13
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
15
 
16
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
19
 
20
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
22
        these conditions;
23
 
24
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
27
        it may be put.
28
*/
29
 
30
 
31
#ifndef ACCESS_INCLUDED
32
#define ACCESS_INCLUDED
33
 
34
 
35
/*
36
    TYPE REPRESENTING LIST OF PENDING ACCESS CHECKS
37
 
38
    This type is used to represent a list of pending access checks.  These
39
    fall into two categories - member accesses and base class accesses.
40
*/
41
 
42
typedef struct {
43
    LIST ( IDENTIFIER ) ids ;
44
    LIST ( GRAPH ) bases ;
45
    LIST ( int ) info ;
46
    int pending ;
47
    int inherit ;
48
} ACCESS_LIST ;
49
 
50
 
51
/*
52
    ACCESS DECLARATIONS
53
 
54
    The routines in this module are concerned with class member access.
55
*/
56
 
57
extern IDENTIFIER access_decl PROTO_S ( ( IDENTIFIER ) ) ;
58
extern void friend_function PROTO_S ( ( CLASS_TYPE, IDENTIFIER, int ) ) ;
59
extern void friend_class PROTO_S ( ( CLASS_TYPE, IDENTIFIER, int ) ) ;
60
extern DECL_SPEC join_access PROTO_S ( ( DECL_SPEC, DECL_SPEC ) ) ;
61
extern void check_access PROTO_S ( ( IDENTIFIER, DECL_SPEC ) ) ;
62
extern void check_base_access PROTO_S ( ( GRAPH ) ) ;
63
extern void immediate_access PROTO_S ( ( IDENTIFIER, IDENTIFIER ) ) ;
64
extern int clear_access PROTO_S ( ( IDENTIFIER, ACCESS_LIST * ) ) ;
65
extern int report_access PROTO_S ( ( IDENTIFIER ) ) ;
66
extern void adjust_access PROTO_S ( ( IDENTIFIER, DECL_SPEC, int ) ) ;
67
extern void free_access PROTO_S ( ( ACCESS_LIST * ) ) ;
68
extern void save_access PROTO_S ( ( ACCESS_LIST * ) ) ;
69
extern int restore_access PROTO_S ( ( IDENTIFIER, ACCESS_LIST * ) ) ;
70
extern ACCESS_LIST crt_access_list ;
71
extern int do_access_checks ;
72
extern DECL_SPEC crt_access ;
73
extern DECL_SPEC prev_access ;
74
extern int have_access_decl ;
75
 
76
 
77
/*
78
    SECONDARY ACCESS MACROS
79
 
80
    These macros are used for converting between primary and secondary
81
    access values.
82
*/
83
 
84
#define shadow_access( A )	( ( ( A ) & dspec_access ) << 2 )
85
#define unshadow_access( A )	( ( ( A ) & dspec_access2 ) >> 2 )
86
 
87
 
88
#endif