华为C语言编程规范总则

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

-1-1112337495106147198239281029113011-141-2if(!valid_ni(ni)){...//programcode}repssn_ind=ssn_data[index].repssn_index;repssn_ni=ssn_data[index].ni;if(!valid_ni(ni)){...//programcode}repssn_ind=ssn_data[index].repssn_index;repssn_ni=ssn_data[index].ni;GeneratedbyFoxitPDFCreator©FoxitSoftware=NO7_TO_STAT_PERM_COUNT_LEN+STAT_SIZE_PER_FRAM*sizeof(_UL);act_task_table[frame_id*STAT_TASK_CHECK_NUMBER+index].occupied=stat_poi[index].occupied;act_task_table[taskno].duration_true_or_false=SYS_get_sccp_statistic_state(stat_item);report_or_not_flag=((tasknoMAX_ACT_TASK_NUMBER)&&(n7stat_stat_item_valid(stat_item))&&(act_task_table[taskno].result_data!=0));1-4rect.length=0;rect.width=0;rect.length=0;rect.width=0;1-5iffordowhilecaseswitchdefaultiffordowhile{}if(pUserCR==NULL)return;if(pUserCR==NULL){return;}1-6TABTABBCBC8TABBC1-7case1-8C/C++{}iffordowhileswitchcaseGeneratedbyFoxitPDFCreator©FoxitSoftware(...){...//programcode}if(...){...//programcode}voidexample_fun(void){...//programcode}for(...){...//programcode}if(...){...//programcode}voidexample_fun(void){...//programcode}1-98022-1202-2GeneratedbyFoxitPDFCreator©FoxitSoftware*****************************************************************************Copyright:1988-1999,HuaweiTech.Co.,Ltd.Filename:Description:Author:Version:Date:History:*****************************************************************************/2-3//*************************************************Function://Description://Calls://CalledBy://TableAccessed://TableUpdated://Input:////Output://Return://Others://*************************************************/2-42-52-61/*getreplicatesubsystemindexandnetindicator*/repssn_ind=ssn_data[index].repssn_index;GeneratedbyFoxitPDFCreator©FoxitSoftware=ssn_data[index].ni;2repssn_ind=ssn_data[index].repssn_index;repssn_ni=ssn_data[index].ni;/*getreplicatesubsystemindexandnetindicator*//*getreplicatesubsystemindexandnetindicator*/repssn_ind=ssn_data[index].repssn_index;repssn_ni=ssn_data[index].ni;2-7/*activestatistictasknumber*/#defineMAX_ACT_TASK_NUMBER1000#defineMAX_ACT_TASK_NUMBER1000/*activestatistictasknumber*/2-8()///*sccpinterfacewithsccpuserprimitivemessagename*/enumSCCP_USER_PRIMITIVE{N_UNITDATA_IND,/*sccpnotifysccpuserunitdatacome*/N_NOTICE_IND,/*sccpnotifyusertheNo.7networkcannot*//*transmissionthismessage*/N_UNITDATA_REQ,/*sccpuser'sunitdatatransmissionrequest*/};2-9/*TheErrorCodewhenSCCPtranslate*//*GlobalTitlefailure,asfollows*////*0SUCCESS1GTTableerror*//*2GTerrorOthersnouse*////*onlyfunctionSCCPTranslate()in*//*thismodualcanmodifyit,andother*//*modulecanvisititthroughcall*//*thefunctionGetGTTransErrorCode()*///BYTEg_GTTranErrorCode;GeneratedbyFoxitPDFCreator©FoxitSoftware(void){/*codeonecomments*/CodeBlockOne/*codetwocomments*/CodeBlockTwo}voidexample_fun(void){/*codeonecomments*/CodeBlockOne/*codetwocomments*/CodeBlockTwo}2-112-122-13/*ifreceive_flagisTRUE*/if(receive_flag)/*ifmtpreceiveamessagefromlinks*/if(receive_flag)2-14if(...)GeneratedbyFoxitPDFCreator©FoxitSoftware{//programcodewhile(indexMAX_INDEX){//programcode}/*endofwhile(indexMAX_INDEX)*///while}/*endofif(...)*///if2-15/**/2-1633-1temptmp;flagflg;statisticstat;incrementinc;messagemsg;3-23-33-4ijk...ijkijGeneratedbyFoxitPDFCreator©FoxitSoftware(BYTEsls);#define_EXAMPLE_UNIT_TEST_#define_EXAMPLE_ASSERT_TEST_voidset_udt_msg_sls(BYTEsls);3-73-8add/removebegin/endcreate/destroyinsert/deletefirst/lastget/releaseincrement/decrementput/getadd/deletelock/unlockopen/closemin/maxold/newstart/stopnext/previoussource/targetshow/hidesend/receivesource/destinationcut/pasteup/downintmin_sum;intmax_sum;intadd_user(BYTE*user_name);intdelete_user(BYTE*user_name);GeneratedbyFoxitPDFCreator©FoxitSoftware=(high8)|low(1)if((a|b)&&(a&c))(2)if((a|b)(c&d))(3)high8|lowa|b&&a&ca|bc&dhigh8|low=(high8)|low,a|b&&a&c=(a|b)&&(a&c)(1)(2)a|bc&d=a|bc&d(3)4-2if(Trunk[index].trunk_state==0){Trunk[index].trunk_state=1;...//programcode}#defineTRUNK_IDLE0#defineTRUNK_BUSY1if(Trunk[index].trunk_state==TRUNK_IDLE){Trunk[index].trunk_state=TRUNK_BUSY;...//programcode}4-3rect.length=10;char_poi=str;GeneratedbyFoxitPDFCreator©FoxitSoftware=5;rect.length=10;rect.width=5;//char_poi=str;4-4*stat_poi+++=1;*++stat_poi+=1;*stat_poi+=1;stat_poi++;//*stat_poi+++=1;++stat_poi;*stat_poi+=1;//*++stat_poi+=1;55-15-25-3RELATIONSystem_In

1 / 31
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功