Using SNC version 1.8.3 (old!) I find that the following SNL code:
evflag domeCmd;
string domeCmd;
float domePos;
when (efTest(efDomeCmd) && (sscanf(domeCmd, "DOME %lf", &domePos) == 1)) {
<stuff>
} state check_cmd
is transformed (via snc) into:
# line 277 "../tcsiiisim.stpp"
if (efTest(efDomeCmd) && (sscanf(domeCmd , "DOME %lf" , TRUE & domePos) == 1))
{
ss_ptr->next_state = 1;
ss_ptr->trans_num = 2;
return TRUE;
}
At which point gcc complains about the third argument to sscanf not
being a pointer. I guess something is triggering the default case in
the expr_exp() procedure [gen_ss_code.c] to produce the unwanted
"TRUE".
Aloha,
Peregrine
- Navigate by Date:
- Prev:
RE: mbbiDirect and mbboDirect changes in r3.13x Eric Bjorklund, NPSM
- Next:
RE: mbbiDirect and mbboDirect changes in r3.13x Ned Arnold
- Index:
1994
1995
1996
<1997>
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
bug report (little endian and IEEE FP) Jeff Hill
- Next:
Re: Odd behavior in snc 1.8.3 Peregrine McGehee
- Index:
1994
1995
1996
<1997>
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|