/**********************************************************************/
/*                                                                    */
/* Copyright (c) 2003 by Sun Microsystems, Inc.                       */
/* All rights reserved.                                               */
/*                                                                    */
/**********************************************************************/

      /*    ACCTREC - ACCOUNT FILE RECORD */
static struct {
       char acctdo[5];
       char snamedo[18];
       char fnamedo[12];
       char mido;
       char ttldo[4];
       char teldo[10];
       char addr1do[24];
       char addr2do[24];
       char addr3do[24];
       char auth1do[32];
       char auth2do[32];
       char auth3do[32];
       char auth4do[32];
       char cardsdo;
       char imodo[2];
       char idaydo[2];
       char iyrdo[2];
       char rsndo;
       char ccodedo;
       char apprdo[3];
       char scode1do;
       char scode2do;
       char scode3do;
       char statdo[2];
       char limitdo[8];
       struct { 
              char bal[8];
              char bmo[2];
              char bday[2];
              char byr[2];
              char bamt[8];
              char pmo[2];
              char pday[2];
              char pyr[2];
              char pamt[8];
              }    pay_hist[3];
       } new_acctrec;
#define NEW_ACCTREC  new_acctrec
#define NEW_ACCTDO   new_acctrec.acctdo
#define NEW_SNAMEDO  new_acctrec.snamedo
#define NEW_FNAMEDO  new_acctrec.fnamedo
#define NEW_MIDO     new_acctrec.mido
#define NEW_TTLDO    new_acctrec.ttldo
#define NEW_TELDO    new_acctrec.teldo
#define NEW_ADDR1DO  new_acctrec.addr1do
#define NEW_ADDR2DO  new_acctrec.addr2do
#define NEW_ADDR3DO  new_acctrec.addr3do
#define NEW_AUTH1DO  new_acctrec.auth1do
#define NEW_AUTH2DO  new_acctrec.auth2do
#define NEW_AUTH3DO  new_acctrec.auth3do
#define NEW_AUTH4DO  new_acctrec.auth4do
#define NEW_CARDSDO  new_acctrec.cardsdo
#define NEW_IMODO    new_acctrec.imodo
#define NEW_IDAYDO   new_acctrec.idaydo
#define NEW_IYRDO    new_acctrec.iyrdo
#define NEW_RSNDO    new_acctrec.rsndo
#define NEW_CCODEDO  new_acctrec.ccodedo
#define NEW_APPRDO   new_acctrec.apprdo
#define NEW_SCODE1DO new_acctrec.scode1do
#define NEW_SCODE2DO new_acctrec.scode2do
#define NEW_SCODE3DO new_acctrec.scode3do
#define NEW_STATDO   new_acctrec.statdo
#define NEW_LIMITDO  new_acctrec.limitdo

#define NEW_PAY_HIST(xx) new_acctrec.pay_hist[xx]
#define NEW_BAL(xx)     new_acctrec.pay_hist[xx].bal
#define NEW_BMO(xx)     new_acctrec.pay_hist[xx].bmo
#define NEW_BDAY(xx)    new_acctrec.pay_hist[xx].bday
#define NEW_BYR(xx)     new_acctrec.pay_hist[xx].byr
#define NEW_BAMT(xx)    new_acctrec.pay_hist[xx].bamt
#define NEW_PMO(xx)     new_acctrec.pay_hist[xx].pmo
#define NEW_PDAY(xx)    new_acctrec.pay_hist[xx].pday
#define NEW_PYR(xx)     new_acctrec.pay_hist[xx].pyr
#define NEW_PAMT(xx)    new_acctrec.pay_hist[xx].pamt
