bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a big bug


From: david
Subject: Re: a big bug
Date: Wed, 08 Aug 2007 17:17:03 +0200
User-agent: Thunderbird 1.5.0.12 (X11/20060911)

Bug in your C code: illegal syntax (throw).


Peng Yadong(彭亚东) wrote:
> SRC: xxx.c
>
> void f()
>
> {
>
>     if(  strncmp(pIn->trans_type,"0",1)==0
>
>         || strncmp(pIn->trans_type,"1",1)==0 )
>
>      throw TDsuException(DSU_MPS_NOPERMIT, "-", "%s:%s", pIn->user_type ,
> pIn->trans_type);
>
>     else if(  strncmp(pIn->trans_type,"2",1)==0
>
>        || strncmp(pIn->trans_type,"3",1)==0
>
>       || strncmp(pIn->trans_type,"4",1)==0 )
>
>     {
>
>     m_bNeedOutList=false;
>
>     }
>
>     else
>
>         throw TDsuException(DSU_MPS_NOPERMIT, "-", "%s:%s", pIn->user_type ,
> pIn->trans_type);
>
> }
>
>  
>
>  
>
>  
>
> $ indent -kr -bap -cli4 -i4 -ts4 -l78 -ip4 -br -bls -nbbo -nlp xxx.c -o xx
>
> indent: xxx.c:6: Error:Unmatched 'else'
>
> $ indent --version
>
> GNU indent 2.2.9
>
>   
>
>  
>
> 彭亚东
>
> 广州从兴电子开发有限公司 计费研发部
>
> 电话:020-8711 6405
>
> address@hidden
>
>  
>
> _______________________________________________
> bug-indent mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-indent
>
>
>   





reply via email to

[Prev in Thread] Current Thread [Next in Thread]