0a1,2
> //#include <stdio.h>
> //#include <stdlib.h>
2,4c4
< #include <stdio.h>
< #include <stdlib.h>
< #include "list_defs.h"
---
> #include "list.h"
5a6
> /*
21,22c22
< LIST_PTR
< *list_insert(LIST_PTR *l, void *data, int id) {
---
> LIST_PTR* list_insert(LIST_PTR *l, void *data, int id) {
25c25
< 	/* create new list element */
---
> 	// create new list element
35c35
< 	/* if list is NULL, create new list with new element as only element */
---
> 	// if list is NULL, create new list with new element as only element
52c52
< 	/* NEW FIRST ITEM */
---
> 	// NEW FIRST ITEM
61c61
< 	/* NEW LAST ITEM */
---
> 	// NEW LAST ITEM
70,71c70,71
< 	/* NEW MIDDLE ITEM */
< 	/* Use appropriate starting point; current or start */
---
> 	// NEW MIDDLE ITEM
> 	// Use appropriate starting point; current or start
119c119
< 		/* Use appropriate starting point; current or start */
---
> 		// Use appropriate starting point; current or start
152c152
< 			l->current = l->start;			/* reset current if needed */
---
> 			l->current = l->start;			// reset current if needed
155c155
< 			l->current = l->start;			/* prevent current from being trashed */
---
> 			l->current = l->start;			// prevent current from being trashed
157c157
< 		if (l->start->data == data) {			/* first item */
---
> 		if (l->start->data == data) {			// first item
172c172
< 		} else if (l->last->data == data) { 		/* last item */
---
> 		} else if (l->last->data == data) { 		// last item
183c183
< 		} else { 					/* middle item */
---
> 		} else { 					// middle item
190,193c190,193
< 					/* steve dickson's original code with memory error */
< 					/* tmp2 = tmp->next; */
< 					/* free(tmp2); */
< 					/* tmp->next = tmp->next->next; */
---
> 					// steve dickson's original code with memory error
> 					// tmp2 = tmp->next;
> 					// free(tmp2);
> 					// tmp->next = tmp->next->next;
195c195
< 					/* corrected code */
---
> 					// corrected code
198c198
< 					/* tmp->next = NULL */
---
> 					// tmp->next = NULL
252c252
< 		/* ADDED FOR MEMORY LEAK 17/01/97 */
---
> 		// ADDED FOR MEMORY LEAK 17/01/97
256c256
< 		/* END ADDITION */
---
> 		// END ADDITION
263a264
> */
264a266
> 
