Subversion Repositories tendra.SVN

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 7
Line 1... Line 1...
1
/*
1
/*
2
 * Automatically generated from the files:
2
 * Automatically generated from the files:
3
 *	/u/g/release/Source/src/utilities/make_err/syntax.sid
3
 *	syntax.sid
4
 * and
4
 * and
5
 *	/u/g/release/Source/src/utilities/make_err/syntax.act
5
 *	syntax.act
6
 * by:
6
 * by:
7
 *	sid
7
 *	sid
8
 */
8
 */
9
 
9
 
10
/* BEGINNING OF HEADER */
10
/* BEGINNING OF HEADER */
11
 
11
 
12
 
12
 
13
/*
13
/*
14
    		 Crown Copyright (c) 1997
14
    		 Crown Copyright (c) 1997
15
    
15
 
16
    This TenDRA(r) Computer Program is subject to Copyright
16
    This TenDRA(r) Computer Program is subject to Copyright
17
    owned by the United Kingdom Secretary of State for Defence
17
    owned by the United Kingdom Secretary of State for Defence
18
    acting through the Defence Evaluation and Research Agency
18
    acting through the Defence Evaluation and Research Agency
19
    (DERA).  It is made available to Recipients with a
19
    (DERA).  It is made available to Recipients with a
20
    royalty-free licence for its use, reproduction, transfer
20
    royalty-free licence for its use, reproduction, transfer
21
    to other parties and amendment for any purpose not excluding
21
    to other parties and amendment for any purpose not excluding
22
    product development provided that any such use et cetera
22
    product development provided that any such use et cetera
23
    shall be deemed to be acceptance of the following conditions:-
23
    shall be deemed to be acceptance of the following conditions:-
24
    
24
 
25
        (1) Its Recipients shall ensure that this Notice is
25
        (1) Its Recipients shall ensure that this Notice is
26
        reproduced upon any copies or amended versions of it;
26
        reproduced upon any copies or amended versions of it;
27
    
27
 
28
        (2) Any amended version of it shall be clearly marked to
28
        (2) Any amended version of it shall be clearly marked to
29
        show both the nature of and the organisation responsible
29
        show both the nature of and the organisation responsible
30
        for the relevant amendment or amendments;
30
        for the relevant amendment or amendments;
31
    
31
 
32
        (3) Its onward transfer from a recipient to another
32
        (3) Its onward transfer from a recipient to another
33
        party shall be deemed to be that party's acceptance of
33
        party shall be deemed to be that party's acceptance of
34
        these conditions;
34
        these conditions;
35
    
35
 
36
        (4) DERA gives no warranty or assurance as to its
36
        (4) DERA gives no warranty or assurance as to its
37
        quality or suitability for any purpose and DERA accepts
37
        quality or suitability for any purpose and DERA accepts
38
        no liability whatsoever in relation to any use to which
38
        no liability whatsoever in relation to any use to which
39
        it may be put.
39
        it may be put.
40
*/
40
*/
Line 84... Line 84...
84
    This routine searches the name list p for an identifier matching id.
84
    This routine searches the name list p for an identifier matching id.
85
    The null name is returned if no matching name is found.
85
    The null name is returned if no matching name is found.
86
*/
86
*/
87
 
87
 
88
static NAME find_name
88
static NAME find_name
89
    PROTO_N ( ( p, id ) )
-
 
90
    PROTO_T ( LIST ( NAME ) p X string id )
89
    ( LIST ( NAME ) p, string id )
91
{
90
{
92
    while ( !IS_NULL_list ( p ) ) {
91
    while ( !IS_NULL_list ( p ) ) {
93
	NAME a = DEREF_name ( HEAD_list ( p ) ) ;
92
	NAME a = DEREF_name ( HEAD_list ( p ) ) ;
94
	string nm = DEREF_string ( name_id ( a ) ) ;
93
	string nm = DEREF_string ( name_id ( a ) ) ;
95
	if ( streq ( nm, id ) ) return ( a ) ;
94
	if ( streq ( nm, id ) ) return ( a ) ;
Line 105... Line 104...
105
    This routine searches the parameter list p for an identifier matching
104
    This routine searches the parameter list p for an identifier matching
106
    id.  The null parameter is returned if no matching parameter is found.
105
    id.  The null parameter is returned if no matching parameter is found.
107
*/
106
*/
108
 
107
 
109
static PARAM find_param
108
static PARAM find_param
110
    PROTO_N ( ( p, id ) )
-
 
111
    PROTO_T ( LIST ( PARAM ) p X string id )
109
    ( LIST ( PARAM ) p, string id )
112
{
110
{
113
    while ( !IS_NULL_list ( p ) ) {
111
    while ( !IS_NULL_list ( p ) ) {
114
	PARAM a = DEREF_param ( HEAD_list ( p ) ) ;
112
	PARAM a = DEREF_param ( HEAD_list ( p ) ) ;
115
	string nm = DEREF_string ( param_name ( a ) ) ;
113
	string nm = DEREF_string ( param_name ( a ) ) ;
116
	if ( streq ( nm, id ) ) return ( a ) ;
114
	if ( streq ( nm, id ) ) return ( a ) ;
Line 137... Line 135...
137
 
135
 
138
 
136
 
139
 
137
 
140
/* BEGINNING OF FUNCTION DECLARATIONS */
138
/* BEGINNING OF FUNCTION DECLARATIONS */
141
 
139
 
142
static void ZRparam_Hlist PROTO_S ((LIST_PARAM *));
140
static void ZRparam_Hlist(LIST_PARAM *);
143
static void ZRname_Hlist PROTO_S ((LIST_NAME *, LIST_NAME *, LIST_NAME *));
141
static void ZRname_Hlist(LIST_NAME *, LIST_NAME *, LIST_NAME *);
144
static void ZRname_Hseq PROTO_S ((LIST_NAME *, LIST_NAME *, LIST_NAME *));
142
static void ZRname_Hseq(LIST_NAME *, LIST_NAME *, LIST_NAME *);
145
static void ZRprops_Hlist PROTO_S ((LIST_PROPERTY *));
143
static void ZRprops_Hlist(LIST_PROPERTY *);
146
static void ZRmap_Hlist PROTO_S ((LIST_PARAM, LIST_MAP *));
144
static void ZRmap_Hlist(LIST_PARAM, LIST_MAP *);
147
static void ZRentry PROTO_S ((ENTRY *));
145
static void ZRentry(ENTRY *);
148
extern void read_errors PROTO_S ((void));
146
extern void read_errors(void);
149
static void ZRmessage_Hlist PROTO_S ((LIST_PARAM, LIST_MESSAGE *));
147
static void ZRmessage_Hlist(LIST_PARAM, LIST_MESSAGE *);
150
static void ZRsignature PROTO_S ((LIST_PARAM *));
148
static void ZRsignature(LIST_PARAM *);
151
static void ZRentries_Hlist PROTO_S ((LIST_ENTRY *));
149
static void ZRentries_Hlist(LIST_ENTRY *);
152
 
150
 
153
/* BEGINNING OF STATIC VARIABLES */
151
/* BEGINNING OF STATIC VARIABLES */
154
 
152
 
155
 
153
 
156
/* BEGINNING OF FUNCTION DEFINITIONS */
154
/* BEGINNING OF FUNCTION DEFINITIONS */
157
 
155
 
158
static void
156
static void
159
ZRparam_Hlist PROTO_N ((ZOp))
-
 
160
  PROTO_T (LIST_PARAM *ZOp)
157
ZRparam_Hlist(LIST_PARAM *ZOp)
161
{
158
{
162
    LIST_PARAM ZIp;
159
    LIST_PARAM ZIp;
163
 
160
 
164
    if ((CURRENT_TERMINAL) == 26) {
161
    if ((CURRENT_TERMINAL) == 26) {
165
	return;
162
	return;
Line 253... Line 250...
253
  ZL0:;
250
  ZL0:;
254
    *ZOp = ZIp;
251
    *ZOp = ZIp;
255
}
252
}
256
 
253
 
257
static void
254
static void
258
ZRname_Hlist PROTO_N ((ZOp, ZOq, ZOr))
-
 
259
  PROTO_T (LIST_NAME *ZOp X LIST_NAME *ZOq X LIST_NAME *ZOr)
255
ZRname_Hlist(LIST_NAME *ZOp, LIST_NAME *ZOq, LIST_NAME *ZOr)
260
{
256
{
261
    LIST_NAME ZIp;
257
    LIST_NAME ZIp;
262
    LIST_NAME ZIq;
258
    LIST_NAME ZIq;
263
    LIST_NAME ZIr;
259
    LIST_NAME ZIr;
264
 
260
 
Line 300... Line 296...
300
    *ZOq = ZIq;
296
    *ZOq = ZIq;
301
    *ZOr = ZIr;
297
    *ZOr = ZIr;
302
}
298
}
303
 
299
 
304
static void
300
static void
305
ZRname_Hseq PROTO_N ((ZOp, ZOq, ZOr))
-
 
306
  PROTO_T (LIST_NAME *ZOp X LIST_NAME *ZOq X LIST_NAME *ZOr)
301
ZRname_Hseq(LIST_NAME *ZOp, LIST_NAME *ZOq, LIST_NAME *ZOr)
307
{
302
{
308
    LIST_NAME ZIp;
303
    LIST_NAME ZIp;
309
    LIST_NAME ZIq;
304
    LIST_NAME ZIq;
310
    LIST_NAME ZIr;
305
    LIST_NAME ZIr;
311
 
306
 
Line 459... Line 454...
459
    *ZOq = ZIq;
454
    *ZOq = ZIq;
460
    *ZOr = ZIr;
455
    *ZOr = ZIr;
461
}
456
}
462
 
457
 
463
static void
458
static void
464
ZRprops_Hlist PROTO_N ((ZOp))
-
 
465
  PROTO_T (LIST_PROPERTY *ZOp)
459
ZRprops_Hlist(LIST_PROPERTY *ZOp)
466
{
460
{
467
    LIST_PROPERTY ZIp;
461
    LIST_PROPERTY ZIp;
468
 
462
 
469
    if ((CURRENT_TERMINAL) == 26) {
463
    if ((CURRENT_TERMINAL) == 26) {
470
	return;
464
	return;
Line 528... Line 522...
528
  ZL0:;
522
  ZL0:;
529
    *ZOp = ZIp;
523
    *ZOp = ZIp;
530
}
524
}
531
 
525
 
532
static void
526
static void
533
ZRmap_Hlist PROTO_N ((ZIs, ZOp))
-
 
534
  PROTO_T (LIST_PARAM ZIs X LIST_MAP *ZOp)
527
ZRmap_Hlist(LIST_PARAM ZIs, LIST_MAP *ZOp)
535
{
528
{
536
    LIST_MAP ZIp;
529
    LIST_MAP ZIp;
537
 
530
 
538
    switch (CURRENT_TERMINAL) {
531
    switch (CURRENT_TERMINAL) {
539
      case 5:
532
      case 5:
Line 635... Line 628...
635
  ZL0:;
628
  ZL0:;
636
    *ZOp = ZIp;
629
    *ZOp = ZIp;
637
}
630
}
638
 
631
 
639
static void
632
static void
640
ZRentry PROTO_N ((ZOe))
-
 
641
  PROTO_T (ENTRY *ZOe)
633
ZRentry(ENTRY *ZOe)
642
{
634
{
643
    ENTRY ZIe;
635
    ENTRY ZIe;
644
 
636
 
645
    if ((CURRENT_TERMINAL) == 26) {
637
    if ((CURRENT_TERMINAL) == 26) {
646
	return;
638
	return;
Line 885... Line 877...
885
  ZL0:;
877
  ZL0:;
886
    *ZOe = ZIe;
878
    *ZOe = ZIe;
887
}
879
}
888
 
880
 
889
void
881
void
890
read_errors PROTO_Z ()
882
read_errors(void)
891
{
883
{
892
    if ((CURRENT_TERMINAL) == 26) {
884
    if ((CURRENT_TERMINAL) == 26) {
893
	return;
885
	return;
894
    }
886
    }
895
    {
887
    {
Line 1388... Line 1380...
1388
	}
1380
	}
1389
    }
1381
    }
1390
}
1382
}
1391
 
1383
 
1392
static void
1384
static void
1393
ZRmessage_Hlist PROTO_N ((ZIs, ZOp))
-
 
1394
  PROTO_T (LIST_PARAM ZIs X LIST_MESSAGE *ZOp)
1385
ZRmessage_Hlist(LIST_PARAM ZIs, LIST_MESSAGE *ZOp)
1395
{
1386
{
1396
    LIST_MESSAGE ZIp;
1387
    LIST_MESSAGE ZIp;
1397
 
1388
 
1398
    switch (CURRENT_TERMINAL) {
1389
    switch (CURRENT_TERMINAL) {
1399
      case 0:
1390
      case 0:
Line 1479... Line 1470...
1479
  ZL0:;
1470
  ZL0:;
1480
    *ZOp = ZIp;
1471
    *ZOp = ZIp;
1481
}
1472
}
1482
 
1473
 
1483
static void
1474
static void
1484
ZRsignature PROTO_N ((ZOp))
-
 
1485
  PROTO_T (LIST_PARAM *ZOp)
1475
ZRsignature(LIST_PARAM *ZOp)
1486
{
1476
{
1487
    LIST_PARAM ZIp;
1477
    LIST_PARAM ZIp;
1488
 
1478
 
1489
    switch (CURRENT_TERMINAL) {
1479
    switch (CURRENT_TERMINAL) {
1490
      case 0:
1480
      case 0:
Line 1514... Line 1504...
1514
  ZL0:;
1504
  ZL0:;
1515
    *ZOp = ZIp;
1505
    *ZOp = ZIp;
1516
}
1506
}
1517
 
1507
 
1518
static void
1508
static void
1519
ZRentries_Hlist PROTO_N ((ZOp))
1509
ZRentries_Hlist(LIST_ENTRY *ZOp)
1520
  PROTO_T (LIST_ENTRY *ZOp)
-
 
1521
{
1510
{
1522
    LIST_ENTRY ZIp;
1511
    LIST_ENTRY ZIp;
1523
 
1512
 
1524
    switch (CURRENT_TERMINAL) {
1513
    switch (CURRENT_TERMINAL) {
1525
      case 0:
1514
      case 0: