最新免费av在线观看,亚洲综合一区成人在线,中文字幕精品无码一区二区三区,中文人妻av高清一区二区,中文字幕乱偷无码av先锋

登錄 免費(fèi)注冊(cè) 首頁(yè) | 行業(yè)黑名單 | 幫助
維庫(kù)電子市場(chǎng)網(wǎng)
技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測(cè)控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng)
驅(qū)動(dòng)編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機(jī) | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計(jì) | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe

小經(jīng)驗(yàn):美化我們的源程序.

作者:wjc3k 欄目:單片機(jī)
小經(jīng)驗(yàn):美化我們的源程序.
最近一不小心進(jìn)了一家公司。感覺(jué)從21世紀(jì)進(jìn)了原始社會(huì)。我在公司的電腦配置如下:K5-133 + 32M EDO + 2GHD +14'+免費(fèi)加班.最不爽的是不能上網(wǎng)。主要要想學(xué)一學(xué)公司的管理方法,為以后的創(chuàng)業(yè)做點(diǎn)準(zhǔn)備。所以先呆一段時(shí)間看看。大家最近一定又轉(zhuǎn)了大把的銀子了吧,恭喜啦。

-----------------------------------------------------
WinAVR中附帶一個(gè)indent.exe是個(gè)美化源程序的小工具。我用了幾下,感覺(jué)很不錯(cuò)。不知各位大蝦是否有用過(guò)?

例如要美化demo.c 成demo1.c,
c:\>indent demo.c -o demo1.c -kr -ts2 -i2 -bl -bli0 -L150

可在UltraEdit的“工具配置”中設(shè)置,
命令列:indent %F -kr -ts2 -i2 -bl -bli0 -L150
工作目錄:%P
菜單項(xiàng)目名稱(chēng): "Indent File"

然后每次只需要選擇對(duì)應(yīng)的菜單項(xiàng)執(zhí)行就可以了.


WinAVR中沒(méi)有帶Indent的用法,這里附上從網(wǎng)上找的一點(diǎn)資料,望笑納,時(shí)間不多,沒(méi)有整理,請(qǐng)見(jiàn)諒,本想抽空做個(gè)WinShell程序出來(lái)的,但最近沒(méi)空,慚愧。

Option Summary
Here is a list of all the options for indent, alphabetized by SHORT option. It is followed by a cross key alphabetized by LONG option.

`-bad'
`--blank-LINEs-after-declarations'
Force blank LINEs after the declarations.
See section Blank LINEs.
`-bap'
`--blank-LINEs-after-procedures'
Force blank LINEs after procedure bodies.
See section Blank LINEs.
`-bbb'
`--blank-LINEs-after-block-comments'
Force blank LINEs after block comments.
See section Blank LINEs.
`-bc'
`--blank-LINEs-after-commas'
Force newLINE after comma in declaration.
See section Declarations.
`-bl'
`--braces-after-if-LINE'
Put braces on LINE after if, etc.
See section Statements.
`-blin'
`--brace-indentn'
Indent braces n spaces.
See section Statements.
`-br'
`--braces-on-if-LINE'
Put braces on LINE with if, etc. and structure declarations
See section Statements.
`-cn'
`--comment-indentationn'
Put comments to the right of code in column n.
See section Comments.
`-cdn'
`--declaration-comment-columnn'
Put comments to the right of the declarations in column n.
See section Comments.
`-cdb'
`--comment-delimiters-on-blank-LINEs'
Put comment delimiters on blank LINEs.
See section Comments.
`-ce'
`--cuddle-else'
Cuddle else and preceeding `}'.
See section Comments.
`-cin'
`--continuation-indentationn'
Continuation indent of n spaces.
See section Statements.
`-clin'
`--case-indentationn'
Case label indent of n spaces.
See section Statements.
`-cpn'
`--else-endif-columnn'
Put comments to the right of `#else' and `#endif' statements in column n.
See section Comments.
`-cs'
`--space-after-cast'
Put a space after a cast operator.
See section Statements.
`-bs'
`--blank-before-sizeof'
Put a space between sizeof and its argument.
See section Statements
`-dn'
`--LINE-comments-indentationn'
Set indentation of comments not to the right of code to n spaces.
See section Comments.
`-din'
`--declaration-indentationn'
Put variables in column n.
See section Declarations.
`-fc1'
`--format-first-column-comments'
Format comments in the first column.
See section Comments.
`-fca'
`--format-all-comments'
Do not disable all formatting of comments.
See section Comments
`-gnu'
`--gnu-style'
Use GNU coding style. This is the default.
See section Common styles.
`-in'
`--indent-leveln'
Set indentation level to n spaces.
See section Indentation.
`-ipn'
`--parameter-indentationn'
Indent parameter types in old-style function definitions by n spaces.
See section Indentation.
`-kr'
`--k-and-r-style'
Use Kernighan & Ritchie coding style.
See section Common styles.
`-ln'
`--LINE-lengthn'
Set maximum LINE length to n.
See section Comments.
`-lcn'
`--comment-LINE-lengthn'
Set maximum LINE length for comment formatting to n.
See section Comments.
`-lp'
`--continue-at-parentheses'
LINE up continued LINEs at parentheses.
See section Indentation.
`-lps'
`--leave-preprocessor-space'
Leave space between `#' and preprocessor directive. See section Indentation.
`-nbad'
`--no-blank-LINEs-after-declarations'
Do not force blank LINEs after declarations.
See section Blank LINEs.
`-nbap'
`--no-blank-LINEs-after-procedures'
Do not force blank LINEs after procedure bodies.
See section Blank LINEs.
`-nbc'
`--no-blank-LINEs-after-commas'
Do not force newLINEs after commas in declarations.
See section Declarations.
`-ncdb'
`--no-comment-delimiters-on-blank-LINEs'
Do not put comment delimiters on blank LINEs.
See section Comments.
`-nce'
`--dont-cuddle-else'
Do not cuddle } and else.
See section Statements.
`-ncs'
`--no-space-after-casts'
Do not put a space after cast operators.
See section Statements.
`-nfc1'
`--dont-format-first-column-comments'
Do not format comments in the first column as normal.
See section Comments.
`-nfca'
`--dont-format-comments'
Do not format any comments.
See section Comments.
`-nip'
`--no-parameter-indentation'
Zero width indentation for parameters.
See section Indentation
`-nlp'
`--dont-LINE-up-parentheses'
Do not LINE up parentheses.
See section Statements.
`-npcs'
`--no-space-after-function-call-NAMEs'
Do not put space after the function in function calls.
See section Statements.
`-npsl'
`--dont-break-procedure-type'
Put the type of a procedure on the same LINE as its NAME.
See section Declarations.
`-nsc'
`--dont-star-comments'
Do not put the `*' character at the left of comments.
See section Comments.
`-nsob'
`--leave-optional-blank-LINEs'
Do not swallow optional blank LINEs.
See section Blank LINEs.
`-nss'
`--dont-space-special-semicolon'
Do not force a space before the semicolon after certain statements. Disables `-ss'.
See section Statements.
`-nv'
`--no-verbosity'
Disable verbose mode. See section Miscellaneous options.
`-orig'
`--original'
Use the original Berkeley coding style.
See section Common styles.
`-npro'
`--ignore-profile'
Do not read `.indent.pro' files.
See section Invoking indent.
`-pcs'
`--space-after-procedure-calls'
Insert a space between the NAME of the procedure being called and the `('.
See section Statements.
`-psl'
`--procNAMEs-start-LINEs'
Put the type of a procedure on the LINE before its NAME.
See section Declarations.
`-sc'
`--start-left-side-of-comments'
Put the `*' character at the left of comments.
See section Comments.
`-sob'
`--swallow-optional-blank-LINEs'
Swallow optional blank LINEs.
See section Blank LINEs.
`-ss'
`--space-special-semicolon'
On one-LINE for and while statments, force a blank before the semicolon.
See section Statements.
`-st'
`--STANDARD-OUTPUT'
Write to STANDARD OUTPUT.
See section Invoking indent.
`-T'
Tell indent the NAME of typeNAMEs.
See section Declarations.
`-tsn'
`--tab-sizen'
Set tab size to n spaces.
See section Indentation.
`-v'
`--verbose'
Enable verbose mode.
See section Miscellaneous options.
`-version'
OUTPUT the version NUMBER of indent.
See section Miscellaneous options.


Statements
The `-br' or `-bl' option specifies how to format braces.

The `-br' option formats statement braces like this:

if (x > 0) {
  x--;
}

The `-bl' option formats them like this:

if (x > 0)
  {
    x--;
  }

These options also affect structure and enumeration declarations. The `-br' option produces structure declarations like the foll
參與討論
昵稱(chēng):
討論內(nèi)容:
 
 
相關(guān)帖子
請(qǐng)問(wèn)ATMEGA8高手:ATMEGA8的EEPROM 好用嗎?
請(qǐng)問(wèn)sts指令
請(qǐng)幫我看看鍵盤(pán)程序的問(wèn)題在哪里。?
在AvrStudio下調(diào)試時(shí),能實(shí)時(shí)刷新端口信息嗎
avr studio 3.55 為什么不能仿真 C?
免費(fèi)注冊(cè)為維庫(kù)電子開(kāi)發(fā)網(wǎng)會(huì)員,參與電子工程師社區(qū)討論,點(diǎn)此進(jìn)入


Copyright © 1998-2006 www.udpf.com.cn 浙ICP證030469號(hào)