File:  [CSRG BSD Unix] / 43BSD / contrib / B / src / bed / queu.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:54 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984. */
/* $Header: /var/lib/cvsd/repos/CSRG/43BSD/contrib/B/src/bed/queu.h,v 1.1.1.1 2018/04/24 16:12:54 root Exp $ */

/*
 * B editor -- Definitions for queues of nodes.
 */

typedef struct queue *queue;

struct queue {
	char	type;
	char	_unused;
	intlet	refcnt;
	intlet	len;
	node	q_data;
	queue	q_link;
};

#define Qnil ((queue) NULL)
#define qcopy(q) ((queue)copy((value)(q)))
#define qrelease(q) release((value)(q))
#define emptyqueue(q) (!(q))

node queuebehead();

unix.superglobalmegacorp.com

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