亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? style-guide.txt

?? 手機嵌入式Linux下可用的busybox源碼
?? TXT
?? 第 1 頁 / 共 2 頁
字號:
Busybox Style Guide===================This document describes the coding style conventions used in Busybox. If youadd a new file to Busybox or are editing an existing file, please format yourcode according to this style. If you are the maintainer of a file that doesnot follow these guidelines, please -- at your own convenience -- modify thefile(s) you maintain to bring them into conformance with this style guide.Please note that this is a low priority task.To help you format the whitespace of your programs, an ".indent.pro" file isincluded in the main Busybox source directory that contains option flags toformat code as per this style guide. This way you can run GNU indent on yourfiles by typing 'indent myfile.c myfile.h' and it will magically apply all theright formatting rules to your file. Please _do_not_ run this on all the filesin the directory, just your own.Declaration Order-----------------Here is the order in which code should be laid out in a file: - commented program name and one-line description - commented author name and email address(es) - commented GPL boilerplate - commented longer description / notes for the program (if needed) - #includes of .h files with angle brackets (<>) around them - #includes of .h files with quotes ("") around them - #defines (if any, note the section below titled "Avoid the Preprocessor") - const and global variables - function declarations (if necessary) - function implementationsWhitespace and Formatting-------------------------This is everybody's favorite flame topic so let's get it out of the way rightup front.Tabs vs. Spaces in Line Indentation~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~The preference in Busybox is to indent lines with tabs. Do not indent lineswith spaces and do not indents lines using a mixture of tabs and spaces. (Theindentation style in the Apache and Postfix source does this sort of thing:\s\s\s\sif (expr) {\n\tstmt; --ick.) The only exception to this rule ismulti-line comments that use an asterisk at the beginning of each line, i.e.:	/t/*	/t * This is a block comment.	/t * Note that it has multiple lines	/t * and that the beginning of each line has a tab plus a space	/t * except for the opening '/*' line where the slash	/t * is used instead of a space.	/t */Furthermore, The preference is that tabs be set to display at four spaceswide, but the beauty of using only tabs (and not spaces) at the beginning oflines is that you can set your editor to display tabs at *whatever* number ofspaces is desired and the code will still look fine.Operator Spacing~~~~~~~~~~~~~~~~Put spaces between terms and operators. Example:	Don't do this:		for(i=0;i<num_items;i++){	Do this instead:		for (i = 0; i < num_items; i++) {	While it extends the line a bit longer, the spaced version is more	readable. An allowable exception to this rule is the situation where	excluding the spacing makes it more obvious that we are dealing with a	single term (even if it is a compound term) such as:		if (str[idx] == '/' && str[idx-1] != '\\')	or		if ((argc-1) - (optind+1) > 0)Bracket Spacing~~~~~~~~~~~~~~~If an opening bracket starts a function, it should be on thenext line with no spacing before it. However, if a bracket follows an openingcontrol block, it should be on the same line with a single space (not a tab)between it and the opening control block statement. Examples:	Don't do this:		while (!done)		{		do		{	Don't do this either:		while (!done){		do{	And for heaven's sake, don't do this:		while (!done)		  {		do		  {	Do this instead:		while (!done) {		do {Spacing around Parentheses~~~~~~~~~~~~~~~~~~~~~~~~~~Put a space between C keywords and left parens, but not between function namesand the left paren that starts it's parameter list (whether it is beingdeclared or called). Examples:	Don't do this:		while(foo) {		for(i = 0; i < n; i++) {	Do this instead:		while (foo) {		for (i = 0; i < n; i++) {	But do functions like this:		static int my_func(int foo, char bar)		...		baz = my_func(1, 2);Also, don't put a space between the left paren and the first term, nor betweenthe last arg and the right paren.	Don't do this:		if ( x < 1 )		strcmp( thisstr, thatstr )	Do this instead:		if (x < 1)		strcmp(thisstr, thatstr)Cuddled Elses~~~~~~~~~~~~~Also, please "cuddle" your else statements by putting the else keyword on thesame line after the right bracket that closes an 'if' statement.	Don't do this:	if (foo) {		stmt;	}	else {		stmt;	}	Do this instead:	if (foo) {		stmt;	} else {		stmt;	}The exception to this rule is if you want to include a comment before the elseblock. Example:	if (foo) {		stmts...	}	/* otherwise, we're just kidding ourselves, so re-frob the input */	else {		other_stmts...	}Variable and Function Names---------------------------Use the K&R style with names in all lower-case and underscores occasionallyused to separate words (e.g., "variable_name" and "numchars" are bothacceptable). Using underscores makes variable and function names more readablebecause it looks like whitespace; using lower-case is easy on the eyes.	Frowned upon:		hitList		TotalChars		szFileName		pf_Nfol_TriState	Preferred:		hit_list		total_chars		file_name		sensible_nameExceptions: - Enums, macros, and constant variables are occasionally written in all   upper-case with words optionally seperatedy by underscores (i.e. FIFOTYPE,   ISBLKDEV()). - Nobody is going to get mad at you for using 'pvar' as the name of a   variable that is a pointer to 'var'.Converting to K&R~~~~~~~~~~~~~~~~~The Busybox codebase is very much a mixture of code gathered from a variety ofsources. This explains why the current codebase contains such a hodge-podge ofdifferent naming styles (Java, Pascal, K&R, just-plain-weird, etc.). The K&Rguideline explained above should therefore be used on new files that are addedto the repository. Furthermore, the maintainer of an existing file that usesalternate naming conventions should, at his own convenience, convert thosenames over to K&R style. Converting variable names is a very low prioritytask.If you want to do a search-and-replace of a single variable name in differentfiles, you can do the following in the busybox directory:	$ perl -pi -e 's/\bOldVar\b/new_var/g' *.[ch]If you want to convert all the non-K&R vars in your file all at once, followthese steps: - In the busybox directory type 'scripts/mk2knr.pl files-to-convert'. This   does not do the actual conversion, rather, it generates a script called   'convertme.pl' that shows what will be converted, giving you a chance to   review the changes beforehand. - Review the 'convertme.pl' script that gets generated in the busybox   directory and remove / edit any of the substitutions in there. Please   especially check for false positives (strings that should not be   converted). - Type './convertme.pl same-files-as-before' to perform the actual   conversion. - Compile and see if everything still works. Please be aware of changes that have cascading effects into other files. Forexample, if you're changing the name of something in, say utility.c, youshould probably run 'scripts/mk2knr.pl utility.c' at first, but when you runthe 'convertme.pl' script you should run it on _all_ files like so:'./convertme.pl *.[ch]'.Avoid The Preprocessor----------------------At best, the preprocessor is a necessary evil, helping us account for platformand architecture differences. Using the preprocessor unnecessarily is justplain evil.The Folly of #define~~~~~~~~~~~~~~~~~~~~Use 'const <type> var' for declaring constants.	Don't do this:		#define var 80	Do this instead, when the variable is in a header file and will be used in	several source files: 		const int var = 80; 	Or do this when the variable is used only in a single source file:		static const int var = 80; Declaring variables as '[static] const' gives variables an actual type andmakes the compiler do type checking for you; the preprocessor does _no_ typechecking whatsoever, making it much more error prone. Declaring variables with'[static] const' also makes debugging programs much easier since the value ofthe variable can be easily queried and displayed.The Folly of Macros~~~~~~~~~~~~~~~~~~~Use 'static inline' instead of a macro.	Don't do this:		#define mini_func(param1, param2) (param1 << param2)	Do this instead:		static inline int mini_func(int param1, param2)		{			return (param1 << param2);		}Static inline functions are greatly preferred over macros. They provide typesafety, have no length limitations, no formatting limitations, have an actualreturn value, and under gcc they are as cheap as macros. Besides, really longmacros with backslashes at the end of each line are ugly as sin.The Folly of #ifdef~~~~~~~~~~~~~~~~~~~Code cluttered with ifdefs is difficult to read and maintain. Don't do it.Instead, put your ifdefs at the top of your .c file (or in a header), andconditionally define 'static inline' functions, (or *maybe* macros), which areused in the code.  	Don't do this:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美国av一区二区| 欧美三级中文字幕| 欧美日韩综合色| 久久久久久毛片| 日本午夜精品视频在线观看| 成人综合婷婷国产精品久久| 日韩一区二区麻豆国产| 亚洲综合男人的天堂| 成人一区二区视频| 久久综合九色综合97_久久久| 亚洲国产精品久久人人爱| 91在线视频播放地址| 久久久国产一区二区三区四区小说| 日韩精品电影一区亚洲| 欧美性猛交一区二区三区精品| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 久久精品噜噜噜成人88aⅴ| 91精品福利视频| 亚洲欧洲99久久| 丁香激情综合国产| 亚洲国产精品av| 国产精品66部| 久久网这里都是精品| 另类小说一区二区三区| 在线播放国产精品二区一二区四区| 一区二区三区在线免费| 91麻豆国产自产在线观看| 国产精品美女久久久久久久久久久 | 成人动漫视频在线| 久久美女艺术照精彩视频福利播放| 麻豆极品一区二区三区| 日韩欧美一区二区久久婷婷| 免费在线视频一区| 日韩一级片网站| 韩国三级在线一区| 久久精品日产第一区二区三区高清版| 韩国精品免费视频| 26uuu欧美| 国产sm精品调教视频网站| 欧美高清在线一区| 色哟哟欧美精品| 香蕉乱码成人久久天堂爱免费| 欧美日韩在线直播| 免费观看日韩电影| 久久综合久久综合久久综合| 国产一级精品在线| 国产精品成人免费精品自在线观看| 成人黄色免费短视频| 亚洲人成网站影音先锋播放| 99re这里只有精品首页| 亚洲主播在线播放| 欧美大白屁股肥臀xxxxxx| 老司机精品视频导航| 久久精品亚洲乱码伦伦中文| 91视频在线看| 日韩黄色一级片| 国产三级欧美三级日产三级99| av亚洲精华国产精华精华| 亚洲在线一区二区三区| 精品人在线二区三区| bt7086福利一区国产| 亚洲第一在线综合网站| 久久综合精品国产一区二区三区 | 中文字幕亚洲在| 8v天堂国产在线一区二区| 国产精一区二区三区| 亚洲欧美另类久久久精品| 91精品国产综合久久久蜜臀图片 | 中文字幕中文字幕在线一区 | 在线不卡a资源高清| 国产精品12区| 丝袜诱惑亚洲看片| 中文字幕第一区第二区| 91精品国产综合久久福利| 成人夜色视频网站在线观看| 午夜精品久久久久久久99樱桃| 久久综合九色综合97_久久久| 色婷婷综合激情| 国产成人免费视频网站高清观看视频| 一区二区成人在线| 久久久久国产精品麻豆ai换脸| 欧美午夜一区二区三区免费大片| 国产一本一道久久香蕉| 五月天精品一区二区三区| 最新热久久免费视频| 中文字幕亚洲视频| 久久福利资源站| 综合av第一页| 3d动漫精品啪啪1区2区免费 | 欧美午夜片在线看| 激情综合色综合久久| 亚洲精品欧美综合四区| 国产午夜一区二区三区| 欧美一区二区啪啪| 一本久道中文字幕精品亚洲嫩| 老司机精品视频一区二区三区| 亚洲欧美另类综合偷拍| 国产日韩欧美不卡在线| 日韩午夜激情视频| 欧美日韩午夜在线| 色综合久久天天| 成人久久久精品乱码一区二区三区| 日韩电影在线免费| 亚洲sss视频在线视频| 亚洲乱码日产精品bd| 国产精品电影一区二区| 国产精品美女久久久久高潮| 国产午夜精品一区二区三区视频| 欧美va亚洲va香蕉在线| 91麻豆精品国产无毒不卡在线观看| 91麻豆高清视频| av在线播放成人| 99久久精品情趣| 色婷婷久久久久swag精品| 92精品国产成人观看免费| 99精品欧美一区二区三区小说 | 经典一区二区三区| 精品亚洲成a人| 韩国欧美国产一区| 国产精品一区二区在线观看网站| 国产精品综合久久| 成人av网址在线| 91美女福利视频| 欧美私人免费视频| 91精品国产福利| 久久精品亚洲一区二区三区浴池| 精品成人私密视频| 国产精品三级av在线播放| 成人免费一区二区三区视频 | 亚洲精品欧美激情| 日日摸夜夜添夜夜添亚洲女人| 日本vs亚洲vs韩国一区三区二区| 美脚の诱脚舐め脚责91| 久国产精品韩国三级视频| 国产美女在线精品| 91蝌蚪porny成人天涯| 欧美性大战久久久久久久| 欧美日韩免费电影| 日韩视频免费观看高清完整版| 精品国产乱码久久久久久牛牛| 精品国产麻豆免费人成网站| 中文av一区二区| 亚洲一级不卡视频| 国产一区二区在线观看视频| www.欧美.com| 欧美少妇bbb| 久久久久久久久岛国免费| 亚洲精品福利视频网站| 免费成人你懂的| av不卡免费电影| 日韩欧美一区二区免费| 国产精品久久久久影院| 日韩精彩视频在线观看| 成人开心网精品视频| 91精品一区二区三区在线观看| 国产日产欧美一区| 日韩中文字幕一区二区三区| 成人精品视频一区| 日韩欧美一级在线播放| 一区二区高清在线| 国产成人免费视| 欧美一级片在线观看| 亚洲素人一区二区| 国模一区二区三区白浆| 欧美日韩精品一区二区三区蜜桃| 久久久99久久精品欧美| 五月婷婷激情综合网| 成人性生交大片免费看中文网站| 欧美一区日本一区韩国一区| 亚洲欧美色图小说| 国产成人午夜99999| 91精品中文字幕一区二区三区 | 国产欧美精品日韩区二区麻豆天美 | 日韩高清电影一区| 99re在线精品| 国产目拍亚洲精品99久久精品| 性做久久久久久久久| 99国产精品久| 国产欧美日本一区二区三区| 精品一区二区日韩| 欧美精品18+| 亚洲国产日韩a在线播放性色| 国内精品国产成人| 日韩欧美你懂的| 日韩成人精品视频| 欧美三级日本三级少妇99| 亚洲精选一二三| 99re成人精品视频| 国产欧美中文在线| 国产精品99久久久久久有的能看| 欧美日韩一区二区三区免费看| 亚洲精品国产a久久久久久 | 国产成人丝袜美腿| 2019国产精品| 国产久卡久卡久卡久卡视频精品| 欧美成人国产一区二区| 久久99精品国产麻豆婷婷 | 中文字幕在线不卡视频| 粉嫩欧美一区二区三区高清影视| 久久久亚洲国产美女国产盗摄|