+/* $NetBSD: deck.h,v 1.7 2008/02/23 19:49:21 dholland Exp $ */
+
/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * from: @(#)deck.h 5.3 (Berkeley) 6/1/90
- * $Id: deck.h,v 1.2 1993/08/01 18:53:47 mycroft Exp $
+ * @(#)deck.h 8.1 (Berkeley) 5/31/93
*/
-# define bool char
+#include <sys/types.h>
+
+#define bool char
-# define CC_D deck[0]
-# define CH_D deck[1]
+#define CC_D deck[0]
+#define CH_D deck[1]
struct dk_st { /* deck description structure */
int num_cards; /* number of cards in deck */
- int last_card; /* number of last card picked */
+ int top_card; /* number of last card picked */
bool gojf_used; /* set if gojf card out of deck */
- long *offsets; /* offests for start of cards */
+ off_t *offsets; /* offsets for start of cards */
};
typedef struct dk_st DECK;