diff options
author | simonb <simonb@NetBSD.org> | 1999-08-21 09:23:44 +0000 |
---|---|---|
committer | simonb <simonb@NetBSD.org> | 1999-08-21 09:23:44 +0000 |
commit | ca104a29f1236b5c4ee454e8c132ed8518df7a27 (patch) | |
tree | 314b1914aaf8b83354a3f37d0e390f6b752d955f /monop/deck.h | |
parent | 9f5f92a0f3b2deed923c1d9c5613fe2dc55e605f (diff) | |
download | bsdgames-darwin-ca104a29f1236b5c4ee454e8c132ed8518df7a27.tar.gz bsdgames-darwin-ca104a29f1236b5c4ee454e8c132ed8518df7a27.tar.zst bsdgames-darwin-ca104a29f1236b5c4ee454e8c132ed8518df7a27.zip |
Instead of writing out a structure that contains pointers as the header
of the card decks file, just write out the number of cards for each
deck. Also use "off_t" for offsets into the file (that are stored after
the number of cards) instead of "long".
/usr/share/games/cards.pck is now MI.
Diffstat (limited to 'monop/deck.h')
-rw-r--r-- | monop/deck.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/monop/deck.h b/monop/deck.h index 5516623b..618fc2a7 100644 --- a/monop/deck.h +++ b/monop/deck.h @@ -1,4 +1,4 @@ -/* $NetBSD: deck.h,v 1.3 1995/03/23 08:34:36 cgd Exp $ */ +/* $NetBSD: deck.h,v 1.4 1999/08/21 09:23:44 simonb Exp $ */ /* * Copyright (c) 1980, 1993 @@ -35,6 +35,8 @@ * @(#)deck.h 8.1 (Berkeley) 5/31/93 */ +#include <sys/types.h> + # define bool char # define CC_D deck[0] @@ -44,7 +46,7 @@ struct dk_st { /* deck description structure */ int num_cards; /* number of cards in deck */ int last_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; |