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
/*** unit-entry.h --- Unit set table entry ADT.
32
 *
33
 ** Author: Steve Folkes <smf@hermes.mod.uk>
34
 *
35
 *** Commentary:
36
 *
37
 * See the file "unit-entry.c" for more information.
38
 *
39
 *** Change Log:
40
 * $Log: unit-entry.h,v $
41
 * Revision 1.1.1.1  1998/01/17  15:57:20  release
42
 * First version to be checked into rolling release.
43
 *
44
 * Revision 1.2  1994/12/12  11:47:07  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:40  smf
49
 * Initial import of TDF linker 3.5 non shared files.
50
 *
51
**/
52
 
53
/****************************************************************************/
54
 
55
#ifndef H_UNIT_ENTRY
56
#define H_UNIT_ENTRY
57
 
58
#include "os-interface.h"
59
#include "dalloc.h"
60
#include "dstring.h"
61
#include "map-table.h"
62
#include "shape-table.h"
63
#include "tdf-write.h"
64
 
65
/*--------------------------------------------------------------------------*/
66
 
67
typedef struct UnitT {
68
    struct UnitT	       *next;
69
    MapTableP			map_table;
70
    NStringT			contents;
71
} UnitT, *UnitP;
72
 
73
typedef struct UnitEntryT {
74
    struct UnitEntryT	       *next;
75
    NStringT			key;
76
    unsigned			order;
77
    UnitP			head;
78
    UnitP		       *tail;
79
} UnitEntryT, *UnitEntryP;
80
 
81
typedef struct UnitSetClosureT {
82
    unsigned			num_unit_sets;
83
    ShapeTableP			shapes;
84
} UnitSetClosureT, *UnitSetClosureP;
85
 
86
/*--------------------------------------------------------------------------*/
87
 
88
extern void			unit_set_contents
89
	PROTO_S ((UnitP, NStringP));
90
extern MapTableP		unit_map_table
91
	PROTO_S ((UnitP));
92
 
93
extern UnitEntryP		unit_entry_create
94
	PROTO_S ((NStringP, UnitEntryP, unsigned));
95
extern UnitEntryP		unit_entry_next
96
	PROTO_S ((UnitEntryP));
97
extern NStringP			unit_entry_key
98
	PROTO_S ((UnitEntryP));
99
extern unsigned			unit_entry_order
100
	PROTO_S ((UnitEntryP));
101
extern UnitP			unit_entry_add_unit
102
	PROTO_S ((UnitEntryP, unsigned));
103
 
104
extern void			unit_entry_do_count
105
	PROTO_S ((UnitEntryP, GenericP));
106
extern void			unit_entry_write_unit_set
107
	PROTO_S ((UnitEntryP, UnitEntryP, TDFWriterP));
108
extern void			unit_entry_write_tld_unit
109
	PROTO_S ((UnitEntryP, ShapeTableP, TDFWriterP));
110
extern void			unit_entry_write_units
111
	PROTO_S ((UnitEntryP, ShapeTableP, unsigned, TDFWriterP));
112
 
113
#endif /* !defined (H_UNIT_ENTRY) */
114
 
115
/*
116
 * Local variables(smf):
117
 * eval: (include::add-path-entry "../os-interface" "../library")
118
 * eval: (include::add-path-entry "../generated")
119
 * end:
120
**/