🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53583

what does this error mean?

#53583
From: Gray Watson
Date: Wed, 30 Oct 1991 15:47
85 lines
5042 bytes
../squib_st.h:740: warning: multiple types in one declaration

Here's the (okay ugly) struct code that generated the error.

thanks much for any info,
gray

-------------------------------------------------------------------------------
 internet mail: gray@antaire.com        (really gray%antaire.com@med.pitt.edu)
 us mail: antaire corp. / 414 s. craig st.  suite 262 / pittsburgh, pa  15213
-------------------------------------------------------------------------------

/* This is the voucher or order history structure.  AIt stores the
 * details about an order. */
struct voucher {
  char           entered_by[5];    /* who entered it */
  char           profit_center[4]; /* what is the profit center */
  char           order_num[9];     /* the order number */
  date_t         order_date;       /* when was it placed */
  spec_menu_t    order_type;       /* order,invoice,credit memo,debit memo */
  char           po_num[PO_NUM_SIZE];       /* purchase urder number */
  spec_codes_t   terms;            /* the terms code */
  spec_meaning_t meaning;          /* the terms meaning */
  spec_codes_t   sales_tax;        /* the sales tax code */
  spec_meaning_t sales_tax_meaning;/* the sales tax meaning */
  spec_codes_t   local_tax;        /* local tax code */
  spec_meaning_t local_tax_meaning;/* local tax meaning */
  char           discount[5];      /* discount percent ????? */
  spec_codes_t   ship_via;         /* ship via code */
  spec_meaning_t ship_via_meaning; /* ship via meaning */
  date_t         ship_date;        /* when should we ship it */
  spec_menu_t    freight;          /* charge freight Y/N */
  char           cust_num[CUST_NUM_SIZE];     /* who placed the order */
  char           cust_name[31];    /* the above's name */
  int            cust_type;        /* customer type code */
  struct {
    /* This structure holds the different addresses for a customer.
     * Presently, array index [0] is the default billing address and
     * array position [1] is the default shipping address. */
    char     line1[31];
    char     line2[31];
    char     line3[31];
    char     line4[31];
    char     line5[31];
    char     line6[31];
  } address_info[2/*NUM_OF_ADDRESSES*/];

  date_t         entry_date;       /* when order was entered on the computer*/
  date_t         shipped_date;     /* when was the order shipped */
  date_t         invoiced_date;    /* when was it invoiced */
  char           freight_pro_num[FREIGHT_P_SIZE];/* get this from the shipper*/
  char           county[COUNTY_SIZE];       /* county */
  char           total_ordered[7]; /* the totals for the number ordered */
  char           total_shipped[7]; /* the total number shipped */
  char           total_back[7];    /* the total number back ordered */
  char           total_sales[7];   /* total extended price */
  char           misc_charges[7];  /* any misc. charges */
  char           sales_tax_charge[7]; /* taxes sales and local */
  char           freight_charge[7];/* how much is the freight charge */
  char           order_total[7];   /* Grand total for the order */
  char           packed_by[4];     /* who packed the order */
  money_t        terms_disc;       /* discount percent */
  int            term_time;        /* length of time for discount to be valid*/
    
  int            next_pos;        /*this holds the index position where
				   *the next voucher placed by the same
				   *customer can be found in the file*/
  int            prev_pos;        /*this holds the index position where
				   *the previous can be found in the file*/
  struct voucher *previous;       /*this point to the previous order
				   *placed by the same customer.*/
  struct voucher *next_voucher;   /*this points to the next.*/
  struct items   *first_item;     /*points to first item ordered under
  				   *this voucher*/
  int            curr_pos;        /*where this voucher is in binaray file */ 
  int            f_item_pos;      /* where is its first line item */
  int            l_item_pos;      /* where is its last line item */
  money_t        balance;         /* how much needs to be paid off */
  money_t        amount;
  int            backup_pos;
  int            f_payment;       /* pointer to the first payment made */
  int            l_payment;       /* pointer to last payment */
  money_t        cr_tot;
  money_t        dr_tot;
};
Technical Details
Message-ID: <9110301547.AA16362@antaire.com>
Path: arc1-ca.pugleaf.net!gmdzi!zeus.ieee.org!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!antaire.COM!gray

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,958b415e860dda0,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1991-11-03 08:26:54 PST
Path: arc1-ca.pugleaf.net!gmdzi!zeus.ieee.org!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!antaire.COM!gray
From: gray@antaire.COM (Gray Watson)
Newsgroups: gnu.gcc.help
Subject: what does this error mean?
Message-ID: <9110301547.AA16362@antaire.com>
Date: 30 Oct 91 15:47:02 GMT
Sender: gnulists@ai.mit.edu
Reply-To: gray@antaire.com
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 85