File:  [CSRG BSD Unix] / 43BSDReno / contrib / jove / list.h
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:57 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

/***************************************************************************
 * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne.  JOVE *
 * is provided to you without charge, and with no warranty.  You may give  *
 * away copies of JOVE, including sources, provided that this notice is    *
 * included in all the files.                                              *
 ***************************************************************************/

/* generic singly linked list package */

typedef char	*Element;

typedef struct cons	List;

struct cons {
	Element	*car;
	List	*cdr;
};

#define list_next(lp)	((lp)->cdr)
#define list_data(lp)	((lp)->car)

extern Element
	*list_push proto((List **, Element *)),
	*list_pop proto((List **));

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.