BOINC コーディング・スタイル |
|
func(
blah, blah, blah, blah, blah,
blah, blah, blah, blah, blah
);
switch (foo) {
case 1:
...
break;
case 2:
...
break;
}
if (foobar) {
...
} else if (blah) {
...
} else {
...
}
if (foo)
return blah; // 違反の例
if (foo) return blah;
#if 0
...
#endif
retval = blah();
if (retval) return retval;
struct FOO {
...
};
そのあとで、以下のように変数を宣言できます。
FOO x;
最終更新時刻 00:47:27, 2006年08月12日(JST)
Copyright © 2008 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.
Copyright © 2008 Komori Hitoshi(je2bwm at jarl.com).
Japanese translation from English web pages on BOINC.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.