1: /* $Header$ */
   2: 
   3: /*
   4:  * Singly-linked key+string list definitions
   5:  *
   6:  * Author: Peter J. Nicklin
   7:  */
   8: 
   9: /*
  10:  * Singly-linked key+string list macros
  11:  */
  12: #define SLSNUM(slslist) (slslist)->nk
  13: /*
  14:  * Singly-linked key+string list block
  15:  */
  16: typedef struct _slsblk
  17:     {
  18:     char *key;          /* points to key */
  19:     char *string;           /* points to non-key string */
  20:     struct _slsblk *next;       /* ptr to next list block */
  21:     } SLSBLK;
  22: /*
  23:  * Singly-linked key+string list head block
  24:  */
  25: typedef struct _slslisthb
  26:     {
  27:     int nk;             /* number of keys in list */
  28:     int maxkey;         /* length of longest key */
  29:     int maxstr;         /* length of longest non-key string */
  30:     SLSBLK *head;           /* pointer to first list block */
  31:     SLSBLK *curblk;         /* pointer to current block */
  32:     SLSBLK *tail;           /* pointer to last list block */
  33:     } SLSLIST;
  34: /*
  35:  * Functions defined for singly-linked key+string list operations
  36:  */
  37: extern char *slsappend();       /* append key+string */
  38: extern SLSBLK *slsget();        /* get next key+string block */
  39: extern SLSLIST *slsinit();      /* initialize key+string list */
  40: extern char *slsinsert();       /* insert key+string */
  41: extern char *slsprepend();      /* prepend key+string */
  42: extern void slsprint();         /* print key+string list */
  43: extern void slsrewind();        /* rewind key+string list */
  44: extern void slsrm();            /* remove key+string list item */
  45: extern int slssort();           /* sort key+string list */

Defined struct's

_slsblk defined in line 16; used 2 times
  • in line 20(2)
_slslisthb defined in line 25; never used

Defined typedef's

SLSBLK defined in line 21; used 4 times
SLSLIST defined in line 33; used 1 times
  • in line 39

Defined macros

SLSNUM defined in line 12; never used
Last modified: 1985-07-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 592
Valid CSS Valid XHTML 1.0 Strict