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/utilities/sid/rstack.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
/*** rstack.h --- Renaming stack ADT.
32
 *
33
 ** Author: Steve Folkes <smf@hermes.mod.uk>
34
 *
35
 *** Commentary:
36
 *
37
 * See the file "rstack.c" for more information.
38
 *
39
 *** Change Log:
40
 * $Log: rstack.h,v $
41
 * Revision 1.1.1.1  1998/01/17  15:57:46  release
42
 * First version to be checked into rolling release.
43
 *
44
 * Revision 1.2  1994/12/15  09:58:33  smf
45
 * Brought into line with OSSG C Coding Standards Document, as per
46
 * "CR94_178.sid+tld-update".
47
 *
48
 * Revision 1.1.1.1  1994/07/25  16:04:37  smf
49
 * Initial import of SID 1.8 non shared files.
50
 *
51
**/
52
 
53
/****************************************************************************/
54
 
55
#ifndef H_RSTACK
56
#define H_RSTACK
57
 
58
#include "os-interface.h"
59
#include "table.h"
60
#include "types.h"
61
 
62
/*--------------------------------------------------------------------------*/
63
 
64
typedef struct TransStackEntryT {
65
    struct TransStackEntryT    *next;
66
    TypeRTransT			translator;
67
} TransStackEntryT, *TransStackEntryP;
68
 
69
typedef struct RStackT {
70
    TransStackEntryP		head;
71
} RStackT, *RStackP;
72
 
73
typedef struct SaveRStackT {
74
    TransStackEntryP		head;
75
} SaveRStackT, *SaveRStackP;
76
 
77
/*--------------------------------------------------------------------------*/
78
 
79
extern void			rstack_init
80
	PROTO_S ((RStackP));
81
extern void			rstack_push_frame
82
	PROTO_S ((RStackP));
83
extern void			rstack_compute_formal_renaming
84
	PROTO_S ((RStackP, TypeTupleP));
85
extern void			rstack_compute_formal_inlining
86
	PROTO_S ((RStackP, TypeTupleP, TypeTupleP));
87
extern void			rstack_compute_local_renaming
88
	PROTO_S ((RStackP, TypeTupleP, TypeTupleP, TableP));
89
extern void			rstack_add_translation
90
	PROTO_S ((RStackP, struct EntryT *, struct EntryT *, struct EntryT *,
91
		  BoolT));
92
extern void			rstack_save_state
93
	PROTO_S ((RStackP, SaveRStackP));
94
extern struct EntryT	       *rstack_get_translation
95
	PROTO_S ((SaveRStackP, struct EntryT *, struct EntryT **, BoolT *));
96
extern void			rstack_apply_for_non_locals
97
	PROTO_S ((RStackP, SaveRStackP, void (*) (struct EntryT *,
98
						  struct EntryT *, GenericP),
99
		  GenericP));
100
extern void			rstack_pop_frame
101
	PROTO_S ((RStackP));
102
extern void			rstack_destroy
103
	PROTO_S ((RStackP));
104
 
105
#endif /* !defined (H_RSTACK) */
106
 
107
/*
108
 * Local variables(smf):
109
 * eval: (include::add-path-entry "../os-interface" "../library")
110
 * eval: (include::add-path-entry "../generated")
111
 * end:
112
**/