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
/
ascender.tar.Z
/
ascender.tar
/
Triangulate
/
include
/
list.s
< prev
next >
Wrap
Text File
|
1995-04-13
|
1KB
|
56 lines
#ifndef incl_list_s
#define incl_list_s
#include "cvar.h"
/* */
#include "list_defs.h"
/* */
FUNCTION_DECL (LISTENTRY *lst_newentry, ());
FUNCTION_DECL (static lst_freeentry, (LISTENTRY *anentry));
FUNCTION_DECL ( LISTENTRY *lst_insertafter, (
/* Inserts a piece of data after the indicated position */
DATA dat, /* The data to insert */
LISTENTRY *aposition/* Position to insert the list */
));
FUNCTION_DECL ( LIST *lst_init, ());
FUNCTION_DECL ( void lst_joinafter, (
LIST *lst, /* The list to be grafted in */
LISTENTRY *position /* Where it should be placed */
));
FUNCTION_DECL ( LIST *lst_join, (
LIST *lst1,
LIST *lst2));
FUNCTION_DECL ( void lst_deleteentry, (
LISTENTRY *entry));
FUNCTION_DECL ( DATA lst_delete, (
DATA dat,
LIST *lst));
FUNCTION_DECL ( DATA lst_pop, (
LIST *que));
FUNCTION_DECL ( DATA lst_dequeue, (
LIST *que));
FUNCTION_DECL ( void lst_free, (
LIST *alist));
FUNCTION_DECL ( int lst_length, (
LIST *alist));
FUNCTION_DECL ( void lst_bubblesort, (
LIST *alist, /* A list to be sorted */
FUNCTION_DECL (int (*cmp), (DATA, DATA))/* Function for comparing elements */
));
#endif