[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
a big bug
From: |
Peng Yadong\(彭亚东\) |
Subject: |
a big bug |
Date: |
Wed, 8 Aug 2007 10:54:57 +0800 |
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
- a big bug,
Peng Yadong\(彭亚东\) <=