Subversion Repositories tendra.SVN

Rev

Rev 2 | Go to most recent revision | Details | Compare with Previous | 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
/**** non-local.h --- Non local name ADT.
32
 *
33
 ** Author: Steve Folkes <smf@hermes.mod.uk>
34
 *
35
 **** Commentary:
36
 *
37
 * See the file "non-local.c" for more information.
38
 *
39
 **** Change Log:
40
 * $Log: non-local.h,v $
41
 * Revision 1.1.1.1  1998/01/17  15:57:46  release
42
 * First version to be checked into rolling release.
43
 *
44
 * Revision 1.2  1994/12/15  09:58:28  smf
45
 * Brought into line with OSSG C Coding Standards Document, as per
46
 * "CR94_178.sid+tld-update".
47
 *
48
 * Revision 1.1.1.1  1994/07/25  16:04:36  smf
49
 * Initial import of SID 1.8 non shared files.
50
 *
51
**/
52
 
53
/****************************************************************************/
54
 
55
#ifndef H_NON_LOCAL
56
#define H_NON_LOCAL
57
 
58
#include "os-interface.h"
59
#include "dalloc.h"
60
#include "entry.h"
61
#include "ostream.h"
62
 
63
/*--------------------------------------------------------------------------*/
64
 
65
typedef struct NonLocalEntryT {
66
    struct NonLocalEntryT      *next;
67
    EntryP			name;
68
    EntryP			type;
69
    EntryP			initialiser;
70
} NonLocalEntryT, *NonLocalEntryP;
71
 
72
typedef struct NonLocalListT {
73
    NonLocalEntryP		head;
74
    NonLocalEntryP	       *tail;
75
} NonLocalListT, *NonLocalListP;
76
 
77
/*--------------------------------------------------------------------------*/
78
 
79
extern void			non_local_list_init
80
	PROTO_S ((NonLocalListP));
81
extern NonLocalEntryP		non_local_list_add
82
	PROTO_S ((NonLocalListP, EntryP, EntryP));
83
extern BoolT			non_local_list_is_empty
84
	PROTO_S ((NonLocalListP));
85
extern void			non_local_list_iter_for_table
86
	PROTO_S ((NonLocalListP, void (*) (EntryP, GenericP), GenericP));
87
extern void			non_local_list_destroy
88
	PROTO_S ((NonLocalListP));
89
 
90
extern void			write_non_locals
91
	PROTO_S ((OStreamP, NonLocalListP));
92
 
93
extern void			non_local_entry_set_initialiser
94
	PROTO_S ((NonLocalEntryP, EntryP));
95
extern EntryP			non_local_entry_get_initialiser
96
	PROTO_S ((NonLocalEntryP));
97
extern EntryP			non_local_entry_get_type
98
	PROTO_S ((NonLocalEntryP));
99
extern EntryP			non_local_entry_get_name
100
	PROTO_S ((NonLocalEntryP));
101
 
102
#endif /* !defined (H_NON_LOCAL) */
103
 
104
/*
105
 * Local variables(smf):
106
 * eval: (include::add-path-entry "../os-interface" "../library")
107
 * eval: (include::add-path-entry "../generated")
108
 * end:
109
**/