Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b3b8b64c
Commit
b3b8b64c
authored
Jan 06, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge home.osdl.org:/home/torvalds/v2.5/kconfig
into home.osdl.org:/home/torvalds/v2.5/linux
parents
67215df9
45db9063
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
18 deletions
+30
-18
scripts/kconfig/conf.c
scripts/kconfig/conf.c
+4
-1
scripts/kconfig/gconf.c
scripts/kconfig/gconf.c
+14
-13
scripts/kconfig/mconf.c
scripts/kconfig/mconf.c
+11
-3
scripts/kconfig/qconf.cc
scripts/kconfig/qconf.cc
+1
-1
No files found.
scripts/kconfig/conf.c
View file @
b3b8b64c
...
@@ -575,6 +575,9 @@ int main(int ac, char **av)
...
@@ -575,6 +575,9 @@ int main(int ac, char **av)
conf_cnt
=
0
;
conf_cnt
=
0
;
check_conf
(
&
rootmenu
);
check_conf
(
&
rootmenu
);
}
while
(
conf_cnt
);
}
while
(
conf_cnt
);
conf_write
(
NULL
);
if
(
conf_write
(
NULL
))
{
fprintf
(
stderr
,
"
\n
*** Error during writing of the kernel configuration.
\n\n
"
);
return
1
;
}
return
0
;
return
0
;
}
}
scripts/kconfig/gconf.c
View file @
b3b8b64c
/* Hey EMACS -*- linux-c -*- */
/* Hey EMACS -*- linux-c -*- */
/*
/*
*
*
* Copyright (C) 2002-2003 Romain Lievin <roms@
lpg.ticalc.org
>
* Copyright (C) 2002-2003 Romain Lievin <roms@
tilp.info
>
* Released under the terms of the GNU GPL v2.0.
* Released under the terms of the GNU GPL v2.0.
*
*
*/
*/
...
@@ -1046,7 +1046,8 @@ on_treeview2_button_press_event(GtkWidget * widget,
...
@@ -1046,7 +1046,8 @@ on_treeview2_button_press_event(GtkWidget * widget,
if
(
path
==
NULL
)
if
(
path
==
NULL
)
return
FALSE
;
return
FALSE
;
gtk_tree_model_get_iter
(
model2
,
&
iter
,
path
);
if
(
!
gtk_tree_model_get_iter
(
model2
,
&
iter
,
path
))
return
FALSE
;
gtk_tree_model_get
(
model2
,
&
iter
,
COL_MENU
,
&
menu
,
-
1
);
gtk_tree_model_get
(
model2
,
&
iter
,
COL_MENU
,
&
menu
,
-
1
);
col
=
column2index
(
column
);
col
=
column2index
(
column
);
...
@@ -1172,7 +1173,7 @@ on_treeview1_button_press_event(GtkWidget * widget,
...
@@ -1172,7 +1173,7 @@ on_treeview1_button_press_event(GtkWidget * widget,
gtk_widget_realize
(
tree2_w
);
gtk_widget_realize
(
tree2_w
);
gtk_tree_view_set_cursor
(
view
,
path
,
NULL
,
FALSE
);
gtk_tree_view_set_cursor
(
view
,
path
,
NULL
,
FALSE
);
gtk_widget_grab_focus
(
GTK_WIDGET
(
tree2_w
)
);
gtk_widget_grab_focus
(
tree2_w
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -1401,7 +1402,6 @@ static void update_tree(struct menu *src, GtkTreeIter * dst)
...
@@ -1401,7 +1402,6 @@ static void update_tree(struct menu *src, GtkTreeIter * dst)
struct
symbol
*
sym
;
struct
symbol
*
sym
;
struct
property
*
prop
;
struct
property
*
prop
;
struct
menu
*
menu1
,
*
menu2
;
struct
menu
*
menu1
,
*
menu2
;
static
GtkTreePath
*
path
=
NULL
;
if
(
src
==
&
rootmenu
)
if
(
src
==
&
rootmenu
)
indent
=
1
;
indent
=
1
;
...
@@ -1526,8 +1526,8 @@ static void display_tree(struct menu *menu)
...
@@ -1526,8 +1526,8 @@ static void display_tree(struct menu *menu)
if (((menu != &rootmenu) && !(menu->flags & MENU_ROOT)) ||
if (((menu != &rootmenu) && !(menu->flags & MENU_ROOT)) ||
(view_mode == FULL_VIEW)
(view_mode == FULL_VIEW)
|| (view_mode == SPLIT_VIEW))*/
|| (view_mode == SPLIT_VIEW))*/
if
((
view_mode
==
SINGLE_VIEW
)
&&
(
menu
->
flags
&
MENU_ROOT
)
if
((
(
view_mode
==
SINGLE_VIEW
)
&&
(
menu
->
flags
&
MENU_ROOT
))
||
(
view_mode
==
FULL_VIEW
)
||
(
view_mode
==
SPLIT_VIEW
))
{
||
(
view_mode
==
FULL_VIEW
)
||
(
view_mode
==
SPLIT_VIEW
))
{
indent
++
;
indent
++
;
display_tree
(
child
);
display_tree
(
child
);
indent
--
;
indent
--
;
...
@@ -1582,7 +1582,7 @@ void fixup_rootmenu(struct menu *menu)
...
@@ -1582,7 +1582,7 @@ void fixup_rootmenu(struct menu *menu)
int
main
(
int
ac
,
char
*
av
[])
int
main
(
int
ac
,
char
*
av
[])
{
{
const
char
*
name
;
const
char
*
name
;
gchar
*
cur_dir
,
*
exe_path
;
char
*
env
;
gchar
*
glade_file
;
gchar
*
glade_file
;
#ifndef LKC_DIRECT_LINK
#ifndef LKC_DIRECT_LINK
...
@@ -1598,12 +1598,13 @@ int main(int ac, char *av[])
...
@@ -1598,12 +1598,13 @@ int main(int ac, char *av[])
//add_pixmap_directory (PACKAGE_SOURCE_DIR "/pixmaps");
//add_pixmap_directory (PACKAGE_SOURCE_DIR "/pixmaps");
/* Determine GUI path */
/* Determine GUI path */
cur_dir
=
g_get_current_dir
();
env
=
getenv
(
SRCTREE
);
exe_path
=
g_strdup
(
av
[
0
]);
if
(
env
)
exe_path
[
0
]
=
'/'
;
glade_file
=
g_strconcat
(
env
,
"/scripts/kconfig/gconf.glade"
,
NULL
);
glade_file
=
g_strconcat
(
cur_dir
,
exe_path
,
".glade"
,
NULL
);
else
if
(
av
[
0
][
0
]
==
'/'
)
g_free
(
cur_dir
);
glade_file
=
g_strconcat
(
av
[
0
],
".glade"
,
NULL
);
g_free
(
exe_path
);
else
glade_file
=
g_strconcat
(
g_get_current_dir
(),
"/"
,
av
[
0
],
".glade"
,
NULL
);
/* Load the interface and connect signals */
/* Load the interface and connect signals */
init_main_window
(
glade_file
);
init_main_window
(
glade_file
);
...
...
scripts/kconfig/mconf.c
View file @
b3b8b64c
...
@@ -785,15 +785,23 @@ int main(int ac, char **av)
...
@@ -785,15 +785,23 @@ int main(int ac, char **av)
}
while
(
stat
<
0
);
}
while
(
stat
<
0
);
if
(
stat
==
0
)
{
if
(
stat
==
0
)
{
conf_write
(
NULL
);
if
(
conf_write
(
NULL
))
{
fprintf
(
stderr
,
"
\n\n
"
"Error during writing of the kernel configuration.
\n
"
"Your kernel configuration changes were NOT saved."
"
\n\n
"
);
return
1
;
}
printf
(
"
\n\n
"
printf
(
"
\n\n
"
"*** End of Linux kernel configuration.
\n
"
"*** End of Linux kernel configuration.
\n
"
"*** Execute 'make' to build the kernel or try 'make help'."
"*** Execute 'make' to build the kernel or try 'make help'."
"
\n\n
"
);
"
\n\n
"
);
}
else
}
else
{
printf
(
"
\n\n
"
fprintf
(
stderr
,
"
\n\n
"
"Your kernel configuration changes were NOT saved."
"Your kernel configuration changes were NOT saved."
"
\n\n
"
);
"
\n\n
"
);
return
1
;
}
return
0
;
return
0
;
}
}
scripts/kconfig/qconf.cc
View file @
b3b8b64c
...
@@ -409,7 +409,7 @@ void ConfigList::updateList(ConfigItem* item)
...
@@ -409,7 +409,7 @@ void ConfigList::updateList(ConfigItem* item)
item
=
new
ConfigItem
(
this
,
0
,
true
);
item
=
new
ConfigItem
(
this
,
0
,
true
);
last
=
item
;
last
=
item
;
}
}
if
((
mode
==
singleMode
||
mode
==
symbolMode
)
&&
if
((
mode
==
singleMode
||
(
mode
==
symbolMode
&&
!
(
rootEntry
->
flags
&
MENU_ROOT
))
)
&&
rootEntry
->
sym
&&
rootEntry
->
prompt
)
{
rootEntry
->
sym
&&
rootEntry
->
prompt
)
{
item
=
last
?
last
->
nextSibling
()
:
firstChild
();
item
=
last
?
last
->
nextSibling
()
:
firstChild
();
if
(
!
item
)
if
(
!
item
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment