EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Bug in 3.14.1 thru 3.14.6?
From: Wayne Dahl <[email protected]>
To: "'[email protected]'" <[email protected]>
Date: Fri, 27 Aug 2004 14:34:06 -1000
In dbLexRoutines.c is the function

static void dbRecordtypeBody(void)
{
    dbRecordType		*pdbRecordType;
    dbFldDes		*pdbFldDes;
    int			i,j,ilink;
    GPHENTRY		*pgphentry;
    int			no_fields,no_prompt,no_links;
    dbfType		field_type;
    char		*psortFldNameTemp;
    short		psortFldIndTemp;
    char		**papsortFldName;
    short		*sortFldInd;

    if(duplicate) {
	duplicate = FALSE;
	return;
    }
    pdbRecordType= (dbRecordType *)popFirstTemp();
    pdbRecordType->no_fields = no_fields = ellCount(&tempList); 
    pdbRecordType->papFldDes = dbCalloc(no_fields,sizeof(dbFldDes *));
....
}

And when I generate genSubRecord.h I get the function 

static int genSubRecordSizeOffset(dbRecordType *pdbRecordType)
{
    genSubRecord *prec = 0;

  pdbRecordType->papFldDes[0]->size=sizeof(prec->name);
  pdbRecordType->papFldDes[0]->offset=(short)((char *)&prec->name - (char
*)prec);
  ...
  pdbRecordType->papFldDes[308]->size=sizeof(prec->tovu);
  pdbRecordType->papFldDes[308]->offset=(short)((char *)&prec->tovu - (char
*)prec);

  ...
}
When I check the value of  pdbRecordType->no_fields it's 308.  It should be
309 i.e. no_fields+1

Wayne

Navigate by Date:
Prev: Re: genSub records with EPICS 3.14.4 and g++ 3.3 - solaris Andrew Johnson
Next: RE: Bug in 3.14.1 thru 3.14.6? - NOT Wayne Dahl
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: R3.14.6 sequencer compliation error on hpux Kristi Luchini
Next: RE: Bug in 3.14.1 thru 3.14.6? - NOT Wayne Dahl
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·