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/syntax.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
/**** syntax.h --- Character classification.
32
 *
33
 ** Author: Steve Folkes <smf@hermes.mod.uk>
34
 *
35
 **** Commentary:
36
 *
37
 ***=== INTRODUCTION =========================================================
38
 *
39
 * This file specifies the interface to a number of syntax table manipulation
40
 * functions.  I ought to be able to use <ctype.h> for this, but I can't
41
 * because it doesn't have routines to get the numeric value for alphabetic
42
 * characters (amongst other omissions).  As I need to do this here, I might
43
 * as well put in support for everything.
44
 *
45
 * It is assumed elsewhere (in association with the input stream facility
46
 * specified in the file "istream.h") that the null and newline characters are
47
 * white space, and have no digit value.
48
 *
49
 ***=== CONSTANTS ============================================================
50
 *
51
 ** Constant:	SYNTAX_NO_VALUE
52
 *
53
 * This value is returned by the ``syntax_value'' function for characters that
54
 * do not have a digit value.
55
 *
56
 ***=== FUNCTIONS ============================================================
57
 *
58
 ** Function:	int			syntax_value
59
 *			PROTO_S ((char c))
60
 ** Exceptions:
61
 *
62
 * This function returns the positive integer digit value that the specified
63
 * character should have, or ``SYNTAX_NO_VALUE'' if it has no value.
64
 *
65
 ** Function:	char			syntax_upcase
66
 *			PROTO_S ((char c))
67
 ** Exceptions:
68
 *
69
 * This function returns the upper case version of the specified character if
70
 * it has one, otherwise it just returns the character.
71
 *
72
 ** Function:	char			syntax_downcase
73
 *			PROTO_S ((char c))
74
 ** Exceptions:
75
 *
76
 * This function returns the lower case version of the specified character if
77
 * it has one, otherwise it just returns the character.
78
 *
79
 ** Function:	BoolT			syntax_is_white_space
80
 *			PROTO_S ((char c))
81
 *
82
 * This function returns true if the specified character is a white space
83
 * character, and false otherwise.
84
 *
85
 ** Function:	BoolT			syntax_is_printable
86
 *			PROTO_S ((char c))
87
 ** Exceptions:
88
 *
89
 * This function returns true if the specified character can be printed, and
90
 * false otherwise.
91
 *
92
 ** Function:	BoolT			syntax_is_letter
93
 *			PROTO_S ((char c))
94
 ** Exceptions:
95
 *
96
 * This function returns true if the specified character is a letter, and
97
 * false otherwise.
98
 *
99
 ** Function:	BoolT			syntax_is_digit
100
 *			PROTO_S ((char c))
101
 ** Exceptions:
102
 *
103
 * This function returns true if the specified character is a decimal digit,
104
 * and false otherwise.
105
 *
106
 **** Change Log:
107
 * $Log: syntax.h,v $
108
 * Revision 1.1.1.1  1998/01/17  15:57:18  release
109
 * First version to be checked into rolling release.
110
 *
111
 * Revision 1.2  1994/12/12  11:45:54  smf
112
 * Performing changes for 'CR94_178.sid+tld-update' - bringing in line with
113
 * OSSG C Coding Standards.
114
 *
115
 * Revision 1.1.1.1  1994/07/25  16:06:13  smf
116
 * Initial import of os-interface shared files.
117
 *
118
**/
119
 
120
/****************************************************************************/
121
 
122
#ifndef H_SYNTAX
123
#define H_SYNTAX
124
 
125
#include "os-interface.h"
126
 
127
/*--------------------------------------------------------------------------*/
128
 
129
#define SYNTAX_NO_VALUE (-1)
130
 
131
/*--------------------------------------------------------------------------*/
132
 
133
extern int			syntax_value
134
	PROTO_S ((char));
135
extern char			syntax_upcase
136
	PROTO_S ((char));
137
extern char			syntax_downcase
138
	PROTO_S ((char));
139
extern BoolT			syntax_is_white_space
140
	PROTO_S ((char));
141
extern BoolT			syntax_is_printable
142
	PROTO_S ((char));
143
extern BoolT			syntax_is_letter
144
	PROTO_S ((char));
145
extern BoolT			syntax_is_digit
146
	PROTO_S ((char));
147
 
148
#endif /* !defined (H_SYNTAX) */