Subversion Repositories tendra.SVN

Rev

Rev 2 | 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
/*** name-table.h --- Name table ADT.
32
 *
33
 ** Author: Steve Folkes <smf@hermes.mod.uk>
34
 *
35
 *** Commentary:
36
 *
37
 * See the file "name-table.c" for more information.
38
 *
39
 *** Change Log:
40
 * $Log: name-table.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:44  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_TABLE
56
#define H_NAME_TABLE
57
 
58
#include "os-interface.h"
59
#include "dalloc.h"
60
#include "dstring.h"
61
#include "name-entry.h"
62
#include "name-key.h"
63
 
64
struct ShapeEntryT;
65
 
66
/*--------------------------------------------------------------------------*/
67
 
68
#define NAME_TABLE_SIZE (31)
69
 
70
/*--------------------------------------------------------------------------*/
71
 
72
typedef struct NameTableT {
73
    NameEntryP			contents [NAME_TABLE_SIZE];
74
} NameTableT, *NameTableP;
75
 
76
/*--------------------------------------------------------------------------*/
77
 
78
extern NameTableP		name_table_create
79
	PROTO_S ((void));
80
extern void			name_table_add_rename
81
	PROTO_S ((NameTableP, NameKeyP, NameKeyP));
82
extern void			name_table_resolve_renames
83
	PROTO_S ((NameTableP, NStringP, BoolT));
84
extern NameEntryP		name_table_add
85
	PROTO_S ((NameTableP, NameKeyP, struct ShapeEntryT *));
86
extern NameEntryP		name_table_get
87
	PROTO_S ((NameTableP, NameKeyP));
88
extern void			name_table_iter
89
	PROTO_S ((NameTableP, void (*) (NameEntryP, GenericP), GenericP));
90
extern void			name_table_deallocate
91
	PROTO_S ((NameTableP));
92
 
93
#endif /* !defined (H_NAME_TABLE) */
94
 
95
/*
96
 * Local variables(smf):
97
 * eval: (include::add-path-entry "../os-interface" "../library")
98
 * eval: (include::add-path-entry "../generated")
99
 * end:
100
**/