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/algol60/src/tools/tld/name-key.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
/*** name-key.h --- External name key ADT.
32
 *
33
 ** Author: Steve Folkes <smf@hermes.mod.uk>
34
 *
35
 *** Commentary:
36
 *
37
 * See the file "name-key.c" for more information.
38
 *
39
 *** Change Log:
40
 * $Log: name-key.h,v $
41
 * Revision 1.1.1.1  1998/01/17  15:57:19  release
42
 * First version to be checked into rolling release.
43
 *
44
 * Revision 1.2  1994/12/12  11:46:40  smf
45
 * Performing changes for 'CR94_178.sid+tld-update' - bringing in line with
46
 * OSSG C Coding Standards.
47
 *
48
 * Revision 1.1.1.1  1994/07/25  16:03:36  smf
49
 * Initial import of TDF linker 3.5 non shared files.
50
 *
51
**/
52
 
53
/****************************************************************************/
54
 
55
#ifndef H_NAME_KEY
56
#define H_NAME_KEY
57
 
58
#include "os-interface.h"
59
#include "cstring.h"
60
#include "dstring.h"
61
#include "ostream.h"
62
 
63
/*--------------------------------------------------------------------------*/
64
 
65
#ifdef FS_NO_ENUM
66
typedef int NameKeyTypeT, *NameKeyTypeP;
67
#define KT_STRING	(0)
68
#define KT_UNIQUE	(1)
69
#else
70
typedef enum {
71
    KT_STRING,
72
    KT_UNIQUE
73
} NameKeyTypeT, *NameKeyTypeP;
74
#endif /* defined (FS_NO_ENUM) */
75
 
76
typedef struct NameUniqueT {
77
    unsigned			length;
78
    NStringP			components;
79
} NameUniqueT, *NameUniqueP;
80
 
81
typedef struct NameKeyT {
82
    NameKeyTypeT		type;
83
    union {
84
	NStringT		string;
85
	NameUniqueT		unique;
86
    } u;
87
} NameKeyT, *NameKeyP;
88
 
89
typedef struct NameKeyListEntryT {
90
    struct NameKeyListEntryT   *next;
91
    NameKeyT			key;
92
} NameKeyListEntryT, *NameKeyListEntryP;
93
 
94
typedef struct NameKeyListT {
95
    NameKeyListEntryP		head;
96
} NameKeyListT, *NameKeyListP;
97
 
98
typedef struct NameKeyPairListEntryT {
99
    struct NameKeyPairListEntryT *next;
100
    NameKeyT			  from;
101
    NameKeyT			  to;
102
} NameKeyPairListEntryT, *NameKeyPairListEntryP;
103
 
104
typedef struct NameKeyPairListT {
105
    NameKeyPairListEntryP		head;
106
} NameKeyPairListT, *NameKeyPairListP;
107
 
108
/*--------------------------------------------------------------------------*/
109
 
110
extern void			name_key_init_string
111
	PROTO_S ((NameKeyP, NStringP));
112
extern void			name_key_init_unique
113
	PROTO_S ((NameKeyP, unsigned));
114
extern BoolT			name_key_parse_cstring
115
	PROTO_S ((NameKeyP, CStringP));
116
extern void			name_key_set_component
117
	PROTO_S ((NameKeyP, unsigned, NStringP));
118
extern NameKeyTypeT		name_key_type
119
	PROTO_S ((NameKeyP));
120
extern NStringP			name_key_string
121
	PROTO_S ((NameKeyP));
122
extern unsigned			name_key_components
123
	PROTO_S ((NameKeyP));
124
extern NStringP			name_key_get_component
125
	PROTO_S ((NameKeyP, unsigned));
126
extern unsigned			name_key_hash_value
127
	PROTO_S ((NameKeyP));
128
extern BoolT			name_key_equal
129
	PROTO_S ((NameKeyP, NameKeyP));
130
extern void			name_key_assign
131
	PROTO_S ((NameKeyP, NameKeyP));
132
extern void			name_key_copy
133
	PROTO_S ((NameKeyP, NameKeyP));
134
extern void			name_key_destroy
135
	PROTO_S ((NameKeyP));
136
 
137
extern void			write_name_key
138
	PROTO_S ((OStreamP, NameKeyP));
139
 
140
extern void			name_key_list_init
141
	PROTO_S ((NameKeyListP));
142
extern void			name_key_list_add
143
	PROTO_S ((NameKeyListP, NameKeyP));
144
extern NameKeyListEntryP	name_key_list_head
145
	PROTO_S ((NameKeyListP));
146
extern NameKeyP			name_key_list_entry_key
147
	PROTO_S ((NameKeyListEntryP));
148
extern NameKeyListEntryP	name_key_list_entry_next
149
	PROTO_S ((NameKeyListEntryP));
150
 
151
extern void			name_key_pair_list_init
152
	PROTO_S ((NameKeyPairListP));
153
extern BoolT			name_key_pair_list_add
154
	PROTO_S ((NameKeyPairListP, NameKeyP, NameKeyP));
155
extern NameKeyPairListEntryP	name_key_pair_list_head
156
	PROTO_S ((NameKeyPairListP));
157
extern NameKeyP			name_key_pair_list_entry_from
158
	PROTO_S ((NameKeyPairListEntryP));
159
extern NameKeyP			name_key_pair_list_entry_to
160
	PROTO_S ((NameKeyPairListEntryP));
161
extern NameKeyPairListEntryP	name_key_pair_list_entry_next
162
	PROTO_S ((NameKeyPairListEntryP));
163
 
164
#endif /* !defined (H_NAME_KEY) */
165
 
166
/*
167
 * Local variables(smf):
168
 * eval: (include::add-path-entry "../os-interface" "../library")
169
 * eval: (include::add-path-entry "../generated")
170
 * end:
171
**/