File:  [CSRG BSD Unix] / 43BSDTahoe / new / jove / table.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

/***************************************************************************
 * 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.                                              *
 ***************************************************************************/

typedef struct word	Word;
typedef struct table	Table;

struct word {
	Word	*wd_next;
	char	*wd_text;
};

struct table {
	Table	*t_next;
	Word	*t_wordlist;
};

extern Table	*make_table();
extern Word	*word_in_table();

#define	table_top(table)	(table->t_wordlist)
#define next_word(w)		(w->wd_next)
#define last_word_p(w)		(w->wd_next == NIL)
#define word_text(w)		(w->wd_text)
#define word_length(w)		(strlen(word_text(w)))

unix.superglobalmegacorp.com

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