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
/**********************************************************************
32
$Author: release $
33
$Date: 1998/01/17 15:55:45 $
34
$Revision: 1.1.1.1 $
35
$Log: read_sort.c,v $
36
 * Revision 1.1.1.1  1998/01/17  15:55:45  release
37
 * First version to be checked into rolling release.
38
 *
39
 * Revision 1.3  1997/12/04  19:50:03  pwe
40
 * ANDF-DE V1.9
41
 *
42
 * Revision 1.2  1997/08/23  13:30:52  pwe
43
 * no invert order, and initial ANDF-DE
44
 *
45
 * Revision 1.1  1995/04/06  10:43:34  currie
46
 * Initial revision
47
 *
48
***********************************************************************/
49
 
50
 
51
 
52
/* defines read_sort, which calls the decoder routine for the sort
53
   given by sn and delivers the result inserted into the union tokval */
54
 
55
 
56
#include "config.h"
57
#include "common_types.h"
58
#include "readglob.h"
59
#include "basicread.h"
60
#include "sortmacs.h"
61
#include "exp.h"
62
#include "expmacs.h"
63
#include "main_reads.h"
64
#include "externs.h"
65
#include "messages_r.h"
66
 
67
#include "read_sort.h"
68
 
69
tokval read_sort
70
    PROTO_N ( (sn) )
71
    PROTO_T ( int sn )
72
{
73
  tokval v;
74
   switch (sn)
75
    {
76
      case ALIGNMENT_SORT:
77
        v.tk_alignment = d_alignment();
78
        break;
79
      case AL_TAG:
80
        v.tk_al_tag = d_al_tag();
81
        break;
82
      case BITFIELD_VARIETY:
83
        v.tk_bitfield_variety = d_bitfield_variety();
84
        break;
85
      case BOOL:
86
        v.tk_bool = d_bool();
87
        break;
88
      case ERROR_TREATMENT:
89
        v.tk_error_treatment = d_error_treatment();
90
        break;
91
      case EXP_S:
92
        v.tk_exp = d_exp();
93
        break;
94
      case FLOATING_VARIETY:
95
        v.tk_floating_variety = d_floating_variety();
96
        break;
97
      case LABEL:
98
        v.tk_label = d_label();
99
        break;
100
      case NAT:
101
        v.tk_nat = d_nat();
102
        break;
103
      case NTEST:
104
        v.tk_ntest = d_ntest();
105
        break;
106
      case ROUNDING_MODE:
107
        v.tk_rounding_mode = d_rounding_mode();
108
        break;
109
      case SHAPE:
110
        v.tk_shape = d_shape();
111
        break;
112
      case SIGNED_NAT:
113
        v.tk_signed_nat = d_signed_nat();
114
        break;
115
      case TAG:
116
        v.tk_tag = d_tag();
117
        break;
118
      case VARIETY:
119
        v.tk_variety = d_variety();
120
        break;
121
      case TOKEN:
122
        v.tk_token = d_token();
123
        break;
124
      case DIAG_TYPE_SORT:	/* OLD DIAGS */
125
	v.tk_diag_type = d_diag_type();
126
	break;
127
      case DIAG_FILENAME:	/* OLD DIAGS */
128
	v.tk_filename =  d_filename();
129
	break;
130
      case ACCESS_SORT:
131
        v.tk_access =  d_access();
132
        break;
133
       case TRANSFER_MODE_SORT:
134
        v.tk_transfer_mode =  d_transfer_mode();
135
        break;
136
       case PROCPROPS:
137
	v.tk_procprops = d_procprops();
138
	break;
139
       case STRING:
140
	v.tk_string = d_string();
141
	break;
142
       case DG_SORT:		/* NEW DIAGS */
143
	v.tk_dg = d_dg();
144
	break;
145
       case DG_DIM_SORT:	/* NEW DIAGS */
146
	v.tk_dg_dim = d_dg_dim();
147
	break;
148
       case DG_FILENAME_SORT:	/* NEW DIAGS */
149
	v.tk_dg_filename = d_dg_filename();
150
	break;
151
       case DG_IDNAME_SORT:	/* NEW DIAGS */
152
	v.tk_dg_idname = d_dg_idname();
153
	break;
154
       case DG_NAME_SORT:	/* NEW DIAGS */
155
	v.tk_dg_name = d_dg_name();
156
	break;
157
       case DG_TYPE_SORT:	/* NEW DIAGS */
158
	v.tk_dg_type = d_dg_type();
159
	break;
160
     default:{SET(v);  failer(SORT_NAME);};
161
    };
162
  return v;
163
}