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/tendra4/src/tools/disp/sort.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
#ifndef SORT_INCLUDED
32
#define SORT_INCLUDED
33
 
34
 
35
/*
36
    AUXILIARY TDF SORT DECODING ROUTINES
37
 
38
    Each TDF sort has an associated decoding routine.  Most of the
39
    routines are straightforward, and so have been automatically
40
    generated directly from the TDF specification.  This module deals
41
    with the few tricky cases.
42
*/
43
 
44
extern object *de_token_aux PROTO_S ( ( sortname, char * ) ) ;
45
extern void de_tdfstring_format PROTO_S ( ( void ) ) ;
46
extern void de_make_label PROTO_S ( ( long ) ) ;
47
void de_case_fn PROTO_S ( ( char *, char *, char * ) ) ;
48
void de_mk_proc_fn PROTO_S ( ( char *, char *, char *, char * ) ) ;
49
void de_solve_fn PROTO_S ( ( char *, char *, char *, char *, int ) ) ;
50
extern int warn_undeclared ;
51
 
52
#define de_case( X )		de_case_fn ( X, "bx", "ss" )
53
#define de_labelled( X )	de_solve_fn ( X, "l", "x", "x", 1 )
54
#define de_sequence( X )	format ( VERT_BRACKETS, "sequence", "+[x]" )
55
#define de_make_proc( X )	de_mk_proc_fn ( X, "S", "S?[u]t", "?[t?[u]]x" )
56
#define de_make_string( X )	de_tdfstring_format () ;
57
 
58
#define de_make_nat( X )\
59
	char *num = tdf_int_str () ;\
60
	out_signed ( num, 0 )
61
 
62
#define de_make_signed_nat( X )\
63
	long neg = tdf_bool () ;\
64
	char *num = tdf_int_str () ;\
65
	out_signed ( num, ( int ) neg )
66
 
67
 
68
#endif