DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T a

⟦7e2fc417e⟧ TextFile

    Length: 638 (0x27e)
    Types: TextFile
    Names: »advavl.h«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Advsys/advavl.h« 

TextFile

/* avl.h - avl tree definitions */
/*
	Copyright (c) 1986, by David Michael Betz
	All rights reserved
*/

typedef struct tree {
    struct tnode *tr_root;	/* root node */
    int tr_cnt;			/* count of entries */
} TREE;

typedef struct tnode {
    int tn_b;			/* balance flag */
    struct tnode *tn_llink;	/* left subtree */
    struct tnode *tn_rlink;	/* right subtree */
    char *tn_key;		/* word */
    int tn_word;		/* word number */
} TNODE;

#define LLINK(n)	((n)->tn_llink)
#define RLINK(n)	((n)->tn_rlink)
#define KEY(n)		((n)->tn_key)
#define WORD(n)		((n)->tn_word)
#define B(n)		((n)->tn_b)
#define tentries(t)	((t)->tr_cnt)