1MBKENV(3)                    MBK UTILITY FUNCTIONS                   MBKENV(3)
2
3
4

NAME

6       mbkenv - set user preferences
7

SYNOPSIS

9       #include "mut.h"
10       void mbkenv();
11

DESCRIPTION

13       The  mbkenv  function set the user preferences through unix environment
14       variables. if all the variables are not  defined,  default  values  are
15       used.
16
17       MBK_WORK_LIB                  internally char ∗WORK_LIB, sets the work‐
18                                     ing directory for  reading  and  writing,
19                                     result  of  a  savephfig for example. Its
20                                     value is "." by default.
21
22       MBK_CATA_LIB                  internally  char  ∗∗CATA_LIB,  sets   the
23                                     working  directories  for  reading  only.
24                                     This is a set of  paths,  like  the  unix
25                                     PATH  variable.   It is used in loadlofig
26                                     for example. Its value is "." by default.
27
28       MBK_CATAL_NAME                internally  char  ∗CATAL_NAME,  sets  the
29                                     name  of the catalog file, needed to know
30                                     where to stop a flatten, and so  on.  Set
31                                     to "CATAL" by default.
32
33       MBK_SEPAR                     internally char SEPAR, sets the character
34                                     used for string concatenation.  Used  for
35                                     example  in concatname.  By default it is
36                                     ".".
37
38       MBK_VDD                       internally char *VDD, sets the name to be
39                                     used  as  power level recognition pattern
40                                     by the tools based upon mbk that needs to
41                                     identify supplies.  The default is "vdd".
42
43       MBK_VSS                       internally char *VSS, sets the name to be
44                                     used as ground level recognition  pattern
45                                     by the tools based upon mbk that needs to
46                                     identify supplies.  The default is "vss".
47
48       MBK_TRACE_MODE                internally char TRACE_MODE, output infor‐
49                                     mation  in  each  mbk  access function it
50                                     enters.  Used for debugging purposes.  By
51                                     default it is 'N'.
52
53       MBK_DEBUG_MODE                internally char DEBUG_MODE, output infor‐
54                                     mation in function that makes a check  on
55                                     its values : mostly parsers for debug. It
56                                     is very verbose, and mostly unusable.  No
57                                     mbk function take care of it.  By default
58                                     it is 'N'.
59
60       MBK_FAST_MODE                 internally char FAST_MODE. If set to 'Y',
61                                     no  consistency  checked are performed on
62                                     many mbk functions. This can work only on
63                                     a  program  that is warrantied to be bug‐
64                                     less, else undefined results would occur.
65                                     By default it is 'N'.
66
67       MBK_IN_LO                     internally  char  IN_LO[5].  Defines  the
68                                     logical  input  format  demanded  by  the
69                                     user.  See  MBK_IN_LO(1)  for  a  list of
70                                     valid formats.  By default its  value  is
71                                     "al".
72
73       MBK_OUT_LO                    internally  char  OUT_LO[5].  Defines the
74                                     logical  input  format  demanded  by  the
75                                     user.  See  MBK_OUT_LO(1)  for  a list of
76                                     valid formats.  By default its  value  is
77                                     "al".
78
79       MBK_IN_PH                     internally  char  IN_PH[5].  Defines  the
80                                     logical  input  format  demanded  by  the
81                                     user.  See  MBK_IN_PH(1)  for  a  list of
82                                     valid formats.  By default its  value  is
83                                     "ap".
84
85       MBK_OUT_PH                    internally  char  OUT_PH[5].  Defines the
86                                     logical  input  format  demanded  by  the
87                                     user.  See  MBK_OUT_PH(1)  for  a list of
88                                     valid formats.  By default its  value  is
89                                     "ap".
90
91       MBK_SCALE_X                   internally  long SCALE_X. Defines a scale
92                                     factor for all coordinates, in  order  to
93                                     be able to use files that works with half
94                                     lambda rules for example.  Parsers, driv‐
95                                     ers  and  genlib's  macros  use it exten‐
96                                     sivly.  Its value is ten by default.
97
98       MBK_IN_FILTER                 internaly IN_FILTER.  Filter  string  for
99                                     reading  compressed  Alliance  files.  It
100                                     has no value by default, means no  filter
101                                     is used.
102
103       MBK_OUT_FILTER                internaly  OUT_FILTER.  Filter string for
104                                     writing compressed  Alliance  files.   It
105                                     has  no value by default, means no filter
106                                     is used.
107
108       MBK_FILTER_SFX                internaly FILTER_SFX. Extention  of  com‐
109                                     pressed   files.   It  has  no  value  by
110                                     default, means no filter is used.
111

EXAMPLE

113       #include "mut.h"
114       #include "mlo.h"
115       lofig_list ∗load_fig(name)
116       char ∗name;
117       {
118          mbkenv(); /∗ make sure the good environnement is used ∗/
119          return getlofig(name, 'A');
120       }
121

SEE ALSO

123       mbk(1), genlib(1), loadlofig(3),  loadphfig(3),  savelofig(3),  saveph‐
124       fig(3), isvdd(3), isvss(3), concatname(3), nameindex(3).
125
126
127
128
129
130
131ASIM/LIP6                       October 1, 1997                      MBKENV(3)
Impressum