1CHECKLOCONORDER(3) MBK LOGICAL FUNCTIONS CHECKLOCONORDER(3)
2
3
4
6 checkloconorder - checks the consistency of a list of logical connec‐
7 tors
8
10 #include "mlo.h"
11 void checkloconorder(connectors)
12 locon_list ∗connectors;
13
15 connectors Pointer to the head of the connector list that is
16 to be sorted
17
19 checkloconorder checks the list of logical connectors pointed to by
20 ∗connectors for conformity towards mbk(1) consistency rules. Checks
21 are done to warranty :
22
23 order the functions checks that vectorized connectors are
24 ordered and evolve monotonically, with a step of 1.
25
26 name unicity Vector radicals may not appear as single entity.
27
28 name validity No space should appear in the name, but a single
29 one followed by a number in a vector.
30
32 "∗∗∗ mbk error ∗∗∗ radical name already used in a connector"
33 The name is already used in a connector, either vectorized or
34 not, and therefore cannot be used once more. This ensures that
35 f and f 3 will not be used simultaneously.
36 "∗∗∗ mbk error ∗∗∗ the radical name has a spurious vectorized value"
37 The name is seen as a vector in mbk(1), but its index is not a
38 number or some text follows that number.
39 "∗∗∗ mbk error ∗∗∗ the radical name is not vectorized properly"
40 The name is seen as a vector in mbk(1), but its index changes in
41 such a way that it is not monotonically increasing or decreasing
42 with a step of 1.
43
45 #include "mlo.h"
46 void savewithcheck(figname)
47 char ∗figname;
48 {
49 lofig_list ∗figure = getlocon(figname, 'A');
50 checkloconorder(figure->LOCON);
51 savelofig(figure);
52 }
53
55 mbk(1), locon(3), addlocon(3), dellocon(3), checkloconorder(3),
56 qsort(3).
57
58
59
60
61
62
63ASIM/LIP6 October 1, 1997 CHECKLOCONORDER(3)