Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
d8fc3200
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d8fc3200
编写于
5月 31, 2011
作者:
A
Arnaud Lacombe
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
kconfig: annotate non-trivial fall-trough
Signed-off-by:
N
Arnaud Lacombe
<
lacombar@gmail.com
>
上级
55922c9d
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
11 addition
and
0 deletion
+11
-0
scripts/kconfig/conf.c
scripts/kconfig/conf.c
+4
-0
scripts/kconfig/confdata.c
scripts/kconfig/confdata.c
+5
-0
scripts/kconfig/gconf.c
scripts/kconfig/gconf.c
+1
-0
scripts/kconfig/mconf.c
scripts/kconfig/mconf.c
+1
-0
未找到文件。
scripts/kconfig/conf.c
浏览文件 @
d8fc3200
...
@@ -106,6 +106,7 @@ static int conf_askvalue(struct symbol *sym, const char *def)
...
@@ -106,6 +106,7 @@ static int conf_askvalue(struct symbol *sym, const char *def)
return
0
;
return
0
;
}
}
check_stdin
();
check_stdin
();
/* fall through */
case
oldaskconfig
:
case
oldaskconfig
:
fflush
(
stdout
);
fflush
(
stdout
);
xfgets
(
line
,
128
,
stdin
);
xfgets
(
line
,
128
,
stdin
);
...
@@ -150,6 +151,7 @@ static int conf_string(struct menu *menu)
...
@@ -150,6 +151,7 @@ static int conf_string(struct menu *menu)
def
=
NULL
;
def
=
NULL
;
break
;
break
;
}
}
/* fall through */
default:
default:
line
[
strlen
(
line
)
-
1
]
=
0
;
line
[
strlen
(
line
)
-
1
]
=
0
;
def
=
line
;
def
=
line
;
...
@@ -304,6 +306,7 @@ static int conf_choice(struct menu *menu)
...
@@ -304,6 +306,7 @@ static int conf_choice(struct menu *menu)
break
;
break
;
}
}
check_stdin
();
check_stdin
();
/* fall through */
case
oldaskconfig
:
case
oldaskconfig
:
fflush
(
stdout
);
fflush
(
stdout
);
xfgets
(
line
,
128
,
stdin
);
xfgets
(
line
,
128
,
stdin
);
...
@@ -369,6 +372,7 @@ static void conf(struct menu *menu)
...
@@ -369,6 +372,7 @@ static void conf(struct menu *menu)
check_conf
(
menu
);
check_conf
(
menu
);
return
;
return
;
}
}
/* fall through */
case
P_COMMENT
:
case
P_COMMENT
:
prompt
=
menu_get_prompt
(
menu
);
prompt
=
menu_get_prompt
(
menu
);
if
(
prompt
)
if
(
prompt
)
...
...
scripts/kconfig/confdata.c
浏览文件 @
d8fc3200
...
@@ -128,6 +128,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p)
...
@@ -128,6 +128,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p)
sym
->
flags
|=
def_flags
;
sym
->
flags
|=
def_flags
;
break
;
break
;
}
}
/* fall through */
case
S_BOOLEAN
:
case
S_BOOLEAN
:
if
(
p
[
0
]
==
'y'
)
{
if
(
p
[
0
]
==
'y'
)
{
sym
->
def
[
def
].
tri
=
yes
;
sym
->
def
[
def
].
tri
=
yes
;
...
@@ -148,6 +149,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p)
...
@@ -148,6 +149,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p)
sym
->
type
=
S_STRING
;
sym
->
type
=
S_STRING
;
goto
done
;
goto
done
;
}
}
/* fall through */
case
S_STRING
:
case
S_STRING
:
if
(
*
p
++
!=
'"'
)
if
(
*
p
++
!=
'"'
)
break
;
break
;
...
@@ -162,6 +164,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p)
...
@@ -162,6 +164,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p)
conf_warning
(
"invalid string found"
);
conf_warning
(
"invalid string found"
);
return
1
;
return
1
;
}
}
/* fall through */
case
S_INT
:
case
S_INT
:
case
S_HEX
:
case
S_HEX
:
done:
done:
...
@@ -237,6 +240,7 @@ int conf_read_simple(const char *name, int def)
...
@@ -237,6 +240,7 @@ int conf_read_simple(const char *name, int def)
case
S_STRING
:
case
S_STRING
:
if
(
sym
->
def
[
def
].
val
)
if
(
sym
->
def
[
def
].
val
)
free
(
sym
->
def
[
def
].
val
);
free
(
sym
->
def
[
def
].
val
);
/* fall through */
default:
default:
sym
->
def
[
def
].
val
=
NULL
;
sym
->
def
[
def
].
val
=
NULL
;
sym
->
def
[
def
].
tri
=
no
;
sym
->
def
[
def
].
tri
=
no
;
...
@@ -363,6 +367,7 @@ int conf_read(const char *name)
...
@@ -363,6 +367,7 @@ int conf_read(const char *name)
break
;
break
;
if
(
!
sym_is_choice
(
sym
))
if
(
!
sym_is_choice
(
sym
))
goto
sym_ok
;
goto
sym_ok
;
/* fall through */
default:
default:
if
(
!
strcmp
(
sym
->
curr
.
val
,
sym
->
def
[
S_DEF_USER
].
val
))
if
(
!
strcmp
(
sym
->
curr
.
val
,
sym
->
def
[
S_DEF_USER
].
val
))
goto
sym_ok
;
goto
sym_ok
;
...
...
scripts/kconfig/gconf.c
浏览文件 @
d8fc3200
...
@@ -1172,6 +1172,7 @@ static gchar **fill_row(struct menu *menu)
...
@@ -1172,6 +1172,7 @@ static gchar **fill_row(struct menu *menu)
row
[
COL_BTNVIS
]
=
GINT_TO_POINTER
(
TRUE
);
row
[
COL_BTNVIS
]
=
GINT_TO_POINTER
(
TRUE
);
if
(
sym_is_choice
(
sym
))
if
(
sym_is_choice
(
sym
))
break
;
break
;
/* fall through */
case
S_TRISTATE
:
case
S_TRISTATE
:
val
=
sym_get_tristate_value
(
sym
);
val
=
sym_get_tristate_value
(
sym
);
switch
(
val
)
{
switch
(
val
)
{
...
...
scripts/kconfig/mconf.c
浏览文件 @
d8fc3200
...
@@ -845,6 +845,7 @@ int main(int ac, char **av)
...
@@ -845,6 +845,7 @@ int main(int ac, char **av)
"
\n\n
"
));
"
\n\n
"
));
return
1
;
return
1
;
}
}
/* fall through */
case
-
1
:
case
-
1
:
printf
(
_
(
"
\n\n
"
printf
(
_
(
"
\n\n
"
"*** End of the configuration.
\n
"
"*** End of the configuration.
\n
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录