#ifndef I_LIST
#define I_LIST

typedef struct list_struct *list_ptr;
struct list_struct {
  char *text;
  int type;
  list_ptr older;
  list_ptr newer;
};

typedef struct head_struct *head_ptr;
struct head_struct {
  list_ptr top;
  list_ptr curr;
  list_ptr tail;
  int count, max;
};

extern void set_list_limit(head_ptr list, int limit);
extern void add_list(head_ptr list, char *str, int type);
extern void add_input_list(char *str);
extern void init_input_list(int max);

#endif
