/* * Copyright (c) 1987 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that this notice is preserved and that due credit is given * to the University of California at Berkeley. The name of the University * may not be used to endorse or promote products derived from this * software without specific prior written permission. This software * is provided ``as is'' without express or implied warranty. * * @(#)deck.h 5.1 (Berkeley) 01/02/88 */ # define bool char # 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 */ bool gojf_used; /* set if gojf card out of deck */ long *offsets; /* offests for start of cards */ }; typedef struct dk_st DECK;