begen(2)

ORIGIN

Cao&Vlsi libraries, BEH package, libBeh106.a

NAME

beh_addbegen , beh_delbegen , beh_rmvbegen , beh_frebegen

SYNOPSIS

struct begen *beh_addbegen (list, name, type, value)
struct begen *list;
char *name;
char *type;
void *value;
struct begen *beh_delbegen (list, pnt, mode)
struct begen *list;
struct begen *pnt;
char mode;
struct begen *beh_rmvbegen (list, name, mode)
struct begen *list;
char *name;
char mode;
void beh_frebegen (list)
struct begen *list;

PARAMETERS

list
    pointer of a list of begen structures

name
    name of the generic to be added to or removed from the list

pnt pointer of the begen structure to be removed from the list

type
    type of the generic

type
    type of the generic (integer, bit, natural, ...)

value
    pointer on the structure representing the value of the genereic

mode
    recursive mode (Y or N)

DESCRIPTION

A begen is a data structure representing a constant value relative to a circuit.

beh_addbegen() adds a begen structure at the top of a list of begen structures. The name registred in the begen structure is produced by namealloc(). The function returns the pointer of the new list. No checks are made by this function.

beh_delbegen() deletes a begen structure (pointed by pnt) from a list of begen structures. The function returns the pointer of the new list. No action is made if the structure pointed by pnt doesn't belong to the list. If mode is set to 'Y' all objects pointed by the begen will also be removed. If mode is set to 'N' and there is any object pointed by the begen a warning message is printed on the standard error output.

beh_rmvbegen() deletes a begen structure (named name) from a list of begen structures. name is supposed to be produced by namealloc(). The function returns the pointer of the new list. No action is made if no structure named name has been found in the list. If mode is set to 'Y' all objects pointed by the begen will also be removed. If mode is set to 'N' and there is any object pointed by the begen a warning message is printed on the standard error output.

beh_frebegen() deletes a list of begen structures (pointed by list). No action is made if list is an empty list (NULL pointer). No checks are made by this function.

EXAMPLE

#include <beh106.h>
struct begen *list;
list = beh_addbegen (list,"surface","natural",600);

SEE ALSO

beh(2), begen(2), namealloc(2)

BUGS

Please e-mail to cao-vlsi@masi.ibp.fr for bug report and suggestions.