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
/*** map-entry.h --- Mapping table entry ADT.
32
 *
33
 ** Author: Steve Folkes <smf@hermes.mod.uk>
34
 *
35
 *** Commentary:
36
 *
37
 * See the file "map-entry.c" for more information.
38
 *
39
 *** Change Log:
40
 * $Log: map-entry.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:29  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:33  smf
49
 * Initial import of TDF linker 3.5 non shared files.
50
 *
51
**/
52
 
53
/****************************************************************************/
54
 
55
#ifndef H_MAP_ENTRY
56
#define H_MAP_ENTRY
57
 
58
#include "os-interface.h"
59
#include "dalloc.h"
60
#include "dstring.h"
61
 
62
/*--------------------------------------------------------------------------*/
63
 
64
typedef struct MapLinkT {
65
    unsigned			internal;
66
    unsigned			external;
67
} MapLinkT, *MapLinkP;
68
 
69
typedef struct MapEntryT {
70
    struct MapEntryT	       *next;
71
    NStringT			key;
72
    unsigned			count;
73
    unsigned			num_links;
74
    MapLinkP			links;
75
} MapEntryT, *MapEntryP;
76
 
77
/*--------------------------------------------------------------------------*/
78
 
79
extern MapEntryP		map_entry_create
80
	PROTO_S ((NStringP, MapEntryP, unsigned));
81
extern MapEntryP		map_entry_next
82
	PROTO_S ((MapEntryP));
83
extern NStringP			map_entry_key
84
	PROTO_S ((MapEntryP));
85
extern void			map_entry_set_num_links
86
	PROTO_S ((MapEntryP, unsigned));
87
extern void			map_entry_set_link
88
	PROTO_S ((MapEntryP, unsigned, unsigned, unsigned));
89
extern unsigned			map_entry_get_count
90
	PROTO_S ((MapEntryP));
91
extern unsigned			map_entry_get_num_links
92
	PROTO_S ((MapEntryP));
93
extern void			map_entry_get_link
94
	PROTO_S ((MapEntryP, unsigned, unsigned *, unsigned *));
95
 
96
extern void			map_entry_check_non_empty
97
	PROTO_S ((MapEntryP, GenericP));
98
 
99
#endif /* !defined (H_MAP_ENTRY) */
100
 
101
/*
102
 * Local variables(smf):
103
 * eval: (include::add-path-entry "../os-interface" "../library")
104
 * eval: (include::add-path-entry "../generated")
105
 * end:
106
**/