1GUESSEXTDIR(3) MBK LOGICAL UTILITY FUNCTIONS GUESSEXTDIR(3)
2
3
4
6 guessextdir - guess external connectors directions from internal con‐
7 nectors directions
8
10 #include "mlo.h"
11 int guessextdir(ptfig)
12 lofig_list ∗ptfig;
13
15 ptfig Pointer to a lofig_list
16
18 The guessextdir function guesses external connectors directions from
19 internal connectors' ones. The translation table below indicates the
20 resulting direction for two internals connectors.
21 IN OUT INOUT UNKNOWN TRISTATE TRANSCV
22 IN IN INOUT INOUT IN TRANSCV TRANSCV
23 OUT INOUT OUT+ INOUT+ OUT OUT+ TRANSCV+
24 INOUT INOUT INOUT+ INOUT+ INOUT INOUT+ INOUT+
25 UNKNOWN IN OUT INOUT UNKNOWN TRISTATE TRANSCV
26 TRISTATE TRANSCV OUT+ INOUT+ TRISTATE TRISTATE TRANSCV
27 TRANSCV TRANSCV TRANSCV+ INOUT+ TRANSCV TRANSCV TRANSCV
28
30 guessextdir returns 1 on success, 0 if there is an error in the trans‐
31 lation.
32
34 The values followed by a + character in the translation table indicate
35 an error.
36
38 #include "mut.h"
39 #include "mlo.h"
40 lofig_list ∗ getgoodlofig(figname, mode)
41 char ∗figname;
42 char mode;
43 {
44 lofig_list ∗ptfig;
45 ptfig = getlofig(figname, mode);
46 restorealldir(ptfig);
47 guessextdir(ptfig);
48 return ptfig;
49 }
50
52 mbk(1), lofig(3), locon(3), getlofig(3), restorealldir(3).
53
54
55
56
57
58
59ASIM/LIP6 October 1, 1997 GUESSEXTDIR(3)