变量注释规范.txt

来自「Rabbit 32Bit RTOS源代码」· 文本 代码 · 共 52 行

TXT
52
字号
编写日期:2011.10.12

基本类型变量注释规范:

/*********************************************************************
*
* multi line long comment
*
**********************************************************************/
type var_name;

or

/* single line long comment */
type var_name;

or

type var_name;    /* short comment */


结构体注释规范:


/*********************************************************************
*结构体名:struct struct_name  (typedef name)
*描    述:
**********************************************************************/
typedef struct struct_name
{
    /* long comment */
    type member_name;   /* short comment */
    /* long comment */
    type member_name;   /* short comment */

}typedef_name;



/*********************************************************************
*Struct Name: struct struct_name  (typedef name)
*Description:
**********************************************************************/
typedef struct struct_name
{
    /* long comment */
    type member_name;   /* short comment */
    /* long comment */
    type member_name;   /* short comment */

}typedef_name;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?