home *** CD-ROM | disk | FTP | other *** search
/ vis-ftp.cs.umass.edu / vis-ftp.cs.umass.edu.tar / vis-ftp.cs.umass.edu / pub / Software / ASCENDER / ascendMar8.tar / UMass / Triangulate / include / list.s < prev    next >
Text File  |  1995-04-13  |  1KB  |  56 lines

  1. #ifndef incl_list_s
  2. #define incl_list_s
  3. #include "cvar.h"
  4.  
  5.  
  6. /* */
  7. #include "list_defs.h"
  8. /* */
  9.  
  10. FUNCTION_DECL (LISTENTRY *lst_newentry, ());
  11.  
  12. FUNCTION_DECL (static lst_freeentry, (LISTENTRY *anentry));
  13.  
  14. FUNCTION_DECL ( LISTENTRY *lst_insertafter, (
  15.    /* Inserts a piece of data after the indicated position */
  16.    DATA dat,        /* The data to insert */
  17.    LISTENTRY *aposition/* Position to insert the list */
  18.    ));
  19.  
  20. FUNCTION_DECL ( LIST *lst_init, ());
  21.  
  22. FUNCTION_DECL ( void lst_joinafter, (
  23.    LIST *lst,        /* The list to be grafted in */
  24.    LISTENTRY *position    /* Where it should be placed */
  25.    ));
  26.  
  27. FUNCTION_DECL ( LIST *lst_join, (
  28.         LIST *lst1,
  29.         LIST *lst2));
  30.  
  31. FUNCTION_DECL ( void lst_deleteentry, (
  32.         LISTENTRY *entry));
  33.  
  34. FUNCTION_DECL ( DATA lst_delete, (
  35.         DATA dat,
  36.         LIST *lst));
  37.  
  38. FUNCTION_DECL ( DATA lst_pop, (
  39.         LIST *que));
  40.  
  41. FUNCTION_DECL ( DATA lst_dequeue, (
  42.         LIST *que));
  43.  
  44. FUNCTION_DECL ( void lst_free, (
  45.         LIST *alist));
  46.  
  47. FUNCTION_DECL ( int lst_length, (
  48.         LIST *alist));
  49.  
  50. FUNCTION_DECL ( void lst_bubblesort, (
  51.    LIST *alist,                     /* A list to be sorted */
  52.    FUNCTION_DECL (int (*cmp), (DATA, DATA))/* Function for comparing elements */
  53.    ));
  54.  
  55. #endif
  56.