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/tendra5/src/tools/tld/tdf.c – 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
/*** tdf.c --- Miscellaneous TDF routines.
32
 *
33
 ** Author: Steve Folkes <smf@hermes.mod.uk>
34
 *
35
 *** Commentary:
36
 *
37
 * This file implements various TDF routines used by the TDF linker.
38
 *
39
 *** Change Log:
40
 * $Log: tdf.c,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.3  1995/09/22  08:39:41  smf
45
 * Fixed problems with incomplete structures (to shut "tcc" up).
46
 * Fixed some problems in "name-key.c" (no real problems, but rewritten to
47
 * reduce the warnings that were output by "tcc" and "gcc").
48
 * Fixed bug CR95_354.tld-common-id-problem (library capsules could be loaded
49
 * more than once).
50
 *
51
 * Revision 1.2  1994/12/12  11:47:02  smf
52
 * Performing changes for 'CR94_178.sid+tld-update' - bringing in line with
53
 * OSSG C Coding Standards.
54
 *
55
 * Revision 1.1.1.1  1994/07/25  16:03:40  smf
56
 * Initial import of TDF linker 3.5 non shared files.
57
 *
58
**/
59
 
60
/****************************************************************************/
61
 
62
#include "tdf.h"
63
 
64
#include "solve-cycles.h"
65
 
66
/*--------------------------------------------------------------------------*/
67
 
68
unsigned
69
tdf_int_size PROTO_N ((value))
70
	     PROTO_T (unsigned value)
71
{
72
    unsigned size = 1;
73
 
74
    while (value >>= 3) {
75
	size ++;
76
    }
77
    return (size);
78
}
79
 
80
void
81
write_usage PROTO_N ((ostream, use))
82
	    PROTO_T (OStreamP ostream X
83
		     unsigned use)
84
{
85
    CStringP sep = "";
86
 
87
    write_char (ostream, '{');
88
    if (use & U_DEFD) {
89
	write_cstring (ostream, "DEFD");
90
	sep = ", ";
91
    }
92
    if (use & U_MULT) {
93
	write_cstring (ostream, sep);
94
	write_cstring (ostream, "MULT");
95
	sep = ", ";
96
    }
97
    if (use & U_DECD) {
98
	write_cstring (ostream, sep);
99
	write_cstring (ostream, "DECD");
100
	sep = ", ";
101
    }
102
    if (use & U_USED) {
103
	write_cstring (ostream, sep);
104
	write_cstring (ostream, "USED");
105
    }
106
    write_char (ostream, '}');
107
}
108
 
109
/*
110
 * Local variables(smf):
111
 * eval: (include::add-path-entry "../os-interface" "../library")
112
 * eval: (include::add-path-entry "../generated")
113
 * end:
114
**/