mbkenv.3alc - Man Page

set user preferences

Synopsis

#include "mut.h"
void mbkenv();

Description

The mbkenv function set the user preferences through unix environment variables. if all the variables are not defined, default values are used.

MBK_WORK_LIB

internally char ∗WORK_LIB, sets the working directory for reading and writing, result of a savephfig for example. Its value is "." by default.

MBK_CATA_LIB

internally char ∗∗CATA_LIB, sets the working directories for reading only. This is a set of paths, like the unix PATH variable. It is used in loadlofig for example. Its value is "." by default.

MBK_CATAL_NAME

internally char ∗CATAL_NAME, sets the name of the catalog file, needed to know where to stop a flatten, and so on. Set to "CATAL" by default.

MBK_SEPAR

internally char SEPAR, sets the character used for string concatenation. Used for example in concatname. By default it is ".".

MBK_VDD

internally char *VDD, sets the name to be used as power level recognition pattern by the tools based upon mbk that needs to identify supplies. The default is "vdd".

MBK_VSS

internally char *VSS, sets the name to be used as ground level recognition pattern by the tools based upon mbk that needs to identify supplies. The default is "vss".

MBK_TRACE_MODE

internally char TRACE_MODE, output information in each mbk access function it enters. Used for debugging purposes. By default it is 'N'.

MBK_DEBUG_MODE

internally char DEBUG_MODE, output information in function that makes a check on its values : mostly parsers for debug. It is very verbose, and mostly unusable. No mbk function take care of it. By default it is 'N'.

MBK_FAST_MODE

internally char FAST_MODE. If set to 'Y', no consistency checked are performed on many mbk functions. This can work only on a program that is warrantied to be bugless, else undefined results would occur. By default it is 'N'.

MBK_IN_LO

internally char IN_LO[5]. Defines the logical input format demanded by the user. See MBK_IN_LO(1) for a list of valid formats. By default its value is "al".

MBK_OUT_LO

internally char OUT_LO[5]. Defines the logical input format demanded by the user. See MBK_OUT_LO(1) for a list of valid formats. By default its value is "al".

MBK_IN_PH

internally char IN_PH[5]. Defines the logical input format demanded by the user. See MBK_IN_PH(1) for a list of valid formats. By default its value is "ap".

MBK_OUT_PH

internally char OUT_PH[5]. Defines the logical input format demanded by the user. See MBK_OUT_PH(1) for a list of valid formats. By default its value is "ap".

MBK_SCALE_X

internally long SCALE_X. Defines a scale factor for all coordinates, in order to be able to use files that works with half lambda rules for example. Parsers, drivers and genlib's macros use it extensivly. Its value is ten by default.

MBK_IN_FILTER

internaly IN_FILTER. Filter string for reading compressed Alliance files. It has no value by default, means no filter is used.

MBK_OUT_FILTER

internaly OUT_FILTER. Filter string for writing compressed Alliance files. It has no value by default, means no filter is used.

MBK_FILTER_SFX

internaly FILTER_SFX. Extention of compressed files. It has no value by default, means no filter is used.

Example

#include "mut.h"
#include "mlo.h"
lofig_list ∗load_fig(name)
char ∗name;
{
	mbkenv(); /∗ make sure the good environnement is used ∗/
	return getlofig(name, 'A');
}

See Also

mbk(1), genlib(1), loadlofig(3), loadphfig(3), savelofig(3), savephfig(3), isvdd(3), isvss(3), concatname(3), nameindex(3).

Referenced By

flattenlofig.3alc(3), flattenphfig.3alc(3), isck.3alc(3), isvdd.3alc(3), isvss.3alc(3), loadlofig.3alc(3), loadphfig.3alc(3), loadrdsparam.3alc(3), MBK_FILTER_SFX.1alc(1), MBK_IN_FILTER.1alc(1), namealloc.3alc(3), namefind.3alc(3), rflattenlofig.3alc(3), rflattenphfig.3alc(3), savelofig.3alc(3), savephfig.3alc(3), unflattenlofig.3alc(3).

October 1, 1997 ASIM/LIP6 MBK UTILITY FUNCTIONS