Back to index

tetex-bin  3.0
Classes | Defines | Typedefs | Functions
list_routines.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cell_struct
struct  av_cell_struct
struct  in_cell_struct
struct  hash_cell_struct
struct  queue_struct
struct  four_pieces_struct
struct  four_entries_struct

Defines

#define lattr(L)   (L->attribute)
#define lval(L)   (L->value)
#define lb0(L)   (((four_entries *)((L)->contents))->entries[0])
#define lb1(L)   (((four_entries *)((L)->contents))->entries[1])
#define lb2(L)   (((four_entries *)((L)->contents))->entries[2])
#define lb3(L)   (((four_entries *)((L)->contents))->entries[3])

Typedefs

typedef int fix
typedef struct cell_struct cell
typedef celllist
typedef struct av_cell_struct av_cell
typedef av_cellav_list
typedef struct in_cell_struct in_cell
typedef in_cellin_list
typedef struct hash_cell_struct hash_cell
typedef hash_cellhash_list
typedef struct queue_struct queue
typedef struct four_pieces_struct four_pieces
typedef struct four_entries_struct four_entries

Functions

list cons (void *, list)
list list1 (void *)
list list2 (void *, void *)
list append (list, list)
list append1 (list, void *)
av_list av_cons (int, int, av_list)
av_list av_list1 (int, int)
av_list av_list2 (int, int, int, int)
av_list av_append (av_list, av_list)
av_list av_append1 (av_list, int, int)
in_list in_cons (int, in_list, in_list)
in_list in_list1 (int, in_list)
in_list in_list2 (int, in_list, int, in_list)
in_list in_append (in_list, in_list)
in_list in_append1 (in_list, int, in_list)
hash_list hash_cons (int, int, int, int, hash_list)
hash_list hash_list1 (int, int, int, int)
hash_list hash_list2 (int, int, int, int, int, int, int, int)
hash_list hash_append (hash_list, hash_list)
hash_list hash_append1 (hash_list, int, int, int, int)
void init_queue (queue *)
void append_to_queue (queue *, void *)

Class Documentation

struct cell_struct

Definition at line 26 of file list_routines.h.

Collaboration diagram for cell_struct:
Class Members
void * contents
struct cell_struct * ptr
int val
struct av_cell_struct

Definition at line 32 of file list_routines.h.

Collaboration diagram for av_cell_struct:
Class Members
int attribute
struct av_cell_struct * ptr
int value
struct in_cell_struct

Definition at line 39 of file list_routines.h.

Collaboration diagram for in_cell_struct:
Class Members
struct in_cell_struct * actual
int index
struct in_cell_struct * ptr
int value
struct hash_cell_struct

Definition at line 47 of file list_routines.h.

Collaboration diagram for hash_cell_struct:
Class Members
int lig_z
int new_class
struct hash_cell_struct * ptr
int x
int y
struct queue_struct

Definition at line 57 of file list_routines.h.

Collaboration diagram for queue_struct:
Class Members
struct cell_struct * front
struct cell_struct * tail
struct four_pieces_struct

Definition at line 89 of file list_routines.h.

Class Members
unsigned int pieces
struct four_entries_struct

Definition at line 93 of file list_routines.h.

Class Members
int entries

Define Documentation

#define lattr (   L)    (L->attribute)

Definition at line 86 of file list_routines.h.

#define lb0 (   L)    (((four_entries *)((L)->contents))->entries[0])

Definition at line 97 of file list_routines.h.

#define lb1 (   L)    (((four_entries *)((L)->contents))->entries[1])

Definition at line 98 of file list_routines.h.

#define lb2 (   L)    (((four_entries *)((L)->contents))->entries[2])

Definition at line 99 of file list_routines.h.

#define lb3 (   L)    (((four_entries *)((L)->contents))->entries[3])

Definition at line 100 of file list_routines.h.

#define lval (   L)    (L->value)

Definition at line 87 of file list_routines.h.


Typedef Documentation

typedef struct av_cell_struct av_cell
typedef av_cell* av_list

Definition at line 37 of file list_routines.h.

typedef struct cell_struct cell
typedef int fix

Definition at line 24 of file list_routines.h.

typedef struct hash_cell_struct hash_cell
typedef hash_cell* hash_list

Definition at line 55 of file list_routines.h.

typedef struct in_cell_struct in_cell
typedef in_cell* in_list

Definition at line 45 of file list_routines.h.

typedef cell* list

Definition at line 30 of file list_routines.h.

typedef struct queue_struct queue

Function Documentation

list append ( list  ,
list   
)

Definition at line 61 of file list_routines.c.

{
if (K==NULL) return L;
return cons(K->contents, append(K->ptr, L));
}

Here is the call graph for this function:

Here is the caller graph for this function:

list append1 ( list  ,
void  
)

Definition at line 68 of file list_routines.c.

{
return (append(L,list1(x)));
}

Here is the call graph for this function:

void append_to_queue ( queue ,
void  
)

Definition at line 247 of file list_routines.c.

{
    if (q->front == NULL) {
        q->front = list1(content);
        q->tail = q->front;
    } else {
        q->tail->ptr = list1(content);
        q->tail = q->tail->ptr;
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 114 of file list_routines.c.

{
if (K==NULL) return L;
return av_cons(K->attribute, K->value, av_append(K->ptr, L));
}

Here is the call graph for this function:

Here is the caller graph for this function:

av_list av_append1 ( av_list  ,
int  ,
int   
)

Definition at line 121 of file list_routines.c.

{
return (av_append(L,av_list1(attr, val)));
}

Here is the call graph for this function:

av_list av_cons ( int  ,
int  ,
av_list   
)

Definition at line 77 of file list_routines.c.

{
av_list temp;
temp = (av_list) xmalloc(sizeof(av_cell));
temp->attribute = attr;
temp->value = val;
temp->ptr = L;
return temp;
}

Here is the call graph for this function:

Here is the caller graph for this function:

av_list av_list1 ( int  ,
int   
)

Definition at line 88 of file list_routines.c.

{
av_list temp;
temp = (av_list) xmalloc(sizeof(av_cell));
temp->attribute = attr;
temp->value = val;
temp->ptr = NULL;
return temp;
}

Here is the call graph for this function:

Here is the caller graph for this function:

av_list av_list2 ( int  ,
int  ,
int  ,
int   
)

Definition at line 99 of file list_routines.c.

{
av_list temp, temp1;
temp = (av_list) xmalloc(sizeof(av_cell));
temp1 = (av_list) xmalloc(sizeof(av_cell));
temp->attribute = attr;
temp->value = val;
temp->ptr = temp1;
temp1->attribute = attr1;
temp1->value = val1;
temp1->ptr = NULL;
return temp;
}

Here is the call graph for this function:

list cons ( void ,
list   
)

Definition at line 28 of file list_routines.c.

{
list temp;
temp = (list) xmalloc(sizeof(cell));
temp->contents = x;
temp->ptr = L;
return temp;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 227 of file list_routines.c.

{
if (K==NULL) return L;
return hash_cons(K->x, K->y, K->new_class, K->lig_z, hash_append(K->ptr, L));
}

Here is the call graph for this function:

Here is the caller graph for this function:

hash_list hash_append1 ( hash_list  ,
int  ,
int  ,
int  ,
int   
)

Definition at line 234 of file list_routines.c.

{
return (hash_append(L,hash_list1(x, y, new_class, lig_z)));
}

Here is the call graph for this function:

hash_list hash_cons ( int  ,
int  ,
int  ,
int  ,
hash_list   
)

Definition at line 182 of file list_routines.c.

{
hash_list temp;
temp = (hash_list) xmalloc(sizeof(hash_cell));
temp->x = x;
temp->y = y;
temp->new_class = new_class;
temp->lig_z = lig_z;
temp->ptr = L;
return temp;
}

Here is the call graph for this function:

Here is the caller graph for this function:

hash_list hash_list1 ( int  ,
int  ,
int  ,
int   
)

Definition at line 195 of file list_routines.c.

{
hash_list temp;
temp = (hash_list) xmalloc(sizeof(hash_cell));
temp->x = x;
temp->y = y;
temp->new_class = new_class;
temp->lig_z = lig_z;
temp->ptr = NULL;
return temp;
}

Here is the call graph for this function:

Here is the caller graph for this function:

hash_list hash_list2 ( int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int   
)

Definition at line 208 of file list_routines.c.

{
hash_list temp, temp1;
temp = (hash_list) xmalloc(sizeof(hash_cell));
temp1 = (hash_list) xmalloc(sizeof(hash_cell));
temp->x = x;
temp->y = y;
temp->new_class = new_class;
temp->lig_z = lig_z;
temp->ptr = temp1;
temp1->x = x1;
temp1->y = y1;
temp1->new_class = class1;
temp1->lig_z = lig_z1;
temp1->ptr = NULL;
return temp;
}

Here is the call graph for this function:

Definition at line 167 of file list_routines.c.

{
if (K==NULL) return L;
return in_cons(K->value, K->actual, in_append(K->ptr, L));
}

Here is the call graph for this function:

Here is the caller graph for this function:

in_list in_append1 ( in_list  ,
int  ,
in_list   
)

Definition at line 174 of file list_routines.c.

{
return (in_append(L,in_list1(val, N)));
}

Here is the call graph for this function:

in_list in_cons ( int  ,
in_list  ,
in_list   
)

Definition at line 130 of file list_routines.c.

{
in_list temp;
temp = (in_list) xmalloc(sizeof(in_cell));
temp->value = val;
temp->actual = N;
temp->ptr = L;
return temp;
}

Here is the call graph for this function:

Here is the caller graph for this function:

in_list in_list1 ( int  ,
in_list   
)

Definition at line 141 of file list_routines.c.

{
in_list temp;
temp = (in_list) xmalloc(sizeof(in_cell));
temp->value = val;
temp->actual = N;
temp->ptr = NULL;
return temp;
}

Here is the call graph for this function:

Here is the caller graph for this function:

in_list in_list2 ( int  ,
in_list  ,
int  ,
in_list   
)

Definition at line 152 of file list_routines.c.

{
in_list temp, temp1;
temp = (in_list) xmalloc(sizeof(in_cell));
temp1 = (in_list) xmalloc(sizeof(in_cell));
temp->value = val;
temp->ptr = temp1;
temp->actual = N;
temp1->value = val1;
temp->actual = N1;
temp1->ptr = NULL;
return temp;
}

Here is the call graph for this function:

Definition at line 240 of file list_routines.c.

{
    q->front = NULL;
    q->tail = NULL;
}
list list1 ( void )

Definition at line 38 of file list_routines.c.

{
list temp;
temp = (list) xmalloc(sizeof(cell));
temp->contents = x;
temp->ptr = NULL;
return temp;
}

Here is the call graph for this function:

Here is the caller graph for this function:

list list2 ( void ,
void  
)

Definition at line 48 of file list_routines.c.

{
list temp, temp1;
temp = (list) xmalloc(sizeof(cell));
temp1 = (list) xmalloc(sizeof(cell));
temp->contents = x;
temp->ptr = temp1;
temp1->contents = y;
temp1->ptr = NULL;
return temp;
}

Here is the call graph for this function:

Here is the caller graph for this function: