Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#   		 Crown Copyright (c) 1997
2
#   
3
#   This TenDRA(r) Computer Program is subject to Copyright
4
#   owned by the United Kingdom Secretary of State for Defence
5
#   acting through the Defence Evaluation and Research Agency
6
#   (DERA).  It is made available to Recipients with a
7
#   royalty-free licence for its use, reproduction, transfer
8
#   to other parties and amendment for any purpose not excluding
9
#   product development provided that any such use et cetera
10
#   shall be deemed to be acceptance of the following conditions:-
11
#   
12
#       (1) Its Recipients shall ensure that this Notice is
13
#       reproduced upon any copies or amended versions of it;
14
#   
15
#       (2) Any amended version of it shall be clearly marked to
16
#       show both the nature of and the organisation responsible
17
#       for the relevant amendment or amendments;
18
#   
19
#       (3) Its onward transfer from a recipient to another
20
#       party shall be deemed to be that party's acceptance of
21
#       these conditions;
22
#   
23
#       (4) DERA gives no warranty or assurance as to its
24
#       quality or suitability for any purpose and DERA accepts
25
#       no liability whatsoever in relation to any use to which
26
#       it may be put.
27
#
28
+USE "x5/t", "X11/Intrinsic.h" ;
29
 
30
+TYPEDEF unsigned char *XctString ;
31
+TYPE ( int ) XctFlags ;
32
 
33
+CONST XctFlags XctSingleSetSegments ;
34
+CONST XctFlags XctProvideExtensions ;
35
+CONST XctFlags XctAcceptC0Extensions ;
36
+CONST XctFlags XctAcceptC1Extensions ;
37
+CONST XctFlags XctHideDirection ;
38
+CONST XctFlags XctFreeString ;
39
+CONST XctFlags XctShiftMultiGRToGL ;
40
 
41
+ENUM XctResult := {
42
    XctSegment,
43
    XctC0Segment,
44
    XctGLSegment,
45
    XctC1Segment,
46
    XctGRSegment,
47
    XctExtendedSegment,
48
    XctExtension,
49
    XctHorizontal,
50
    XctEndOfText,
51
    XctError
52
} ;
53
 
54
+ENUM XctHDirection := {
55
    XctUnspecified,
56
    XctLeftToRight,
57
    XctRightToLeft
58
} ;
59
 
60
# RCA : follow implementation
61
 
62
/* The Spec implies that XctData is a struct, not a ptr struct */
63
 
64
+FIELD struct _XctRec {
65
    XctString item ;
66
    int item_length ;
67
    int char_size ;
68
    char *encoding ;
69
    XctHDirection horizontal ;
70
    int horz_depth ;
71
    char *GL ;
72
    char *GL_encoding ;
73
    int GL_set_size ;
74
    int GL_char_size ;
75
    char *GR ;
76
    char *GR_encoding ;
77
    int GR_set_size ;
78
    int GR_char_size ;
79
    char *GLGR_encoding ;
80
} ;
81
 
82
+TYPEDEF struct _XctRec *XctData ;
83
 
84
+FUNC XctData XctCreate ( XctString, int, XctFlags ) ;
85
+FUNC void XctReset ( XctData ) ;
86
+FUNC XctResult XctNextItem ( XctData ) ;
87
+FUNC void XctFree ( XctData ) ;