diff options
author | Peter Kjellerstedt | 2005-04-19 09:55:06 +0000 |
---|---|---|
committer | Peter Kjellerstedt | 2005-04-19 09:55:06 +0000 |
commit | bae38db8e42b2d09b920d9430d18ee41bdcc0b17 (patch) | |
tree | 3e1ebb993c7c1979858d58dfd5a923e60a67ec5d /scripts/config/menu.c | |
parent | 2bf88a891fb9359951bab83b74296ce036a50ae0 (diff) | |
download | busybox-bae38db8e42b2d09b920d9430d18ee41bdcc0b17.zip busybox-bae38db8e42b2d09b920d9430d18ee41bdcc0b17.tar.gz |
Updated to match trunk/uClibc/extra/config as of r10132, and thus
Linux 2.6.11.
Diffstat (limited to 'scripts/config/menu.c')
-rw-r--r-- | scripts/config/menu.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/scripts/config/menu.c b/scripts/config/menu.c index 6425296..0c13156 100644 --- a/scripts/config/menu.c +++ b/scripts/config/menu.c @@ -10,7 +10,6 @@ #include "lkc.h" struct menu rootmenu; -struct menu *current_menu, *current_entry; static struct menu **last_entry_ptr; struct file *file_list; @@ -389,43 +388,3 @@ struct menu *menu_get_parent_menu(struct menu *menu) return menu; } -struct file *file_lookup(const char *name) -{ - struct file *file; - - for (file = file_list; file; file = file->next) { - if (!strcmp(name, file->name)) - return file; - } - - file = malloc(sizeof(*file)); - memset(file, 0, sizeof(*file)); - file->name = strdup(name); - file->next = file_list; - file_list = file; - return file; -} - -int file_write_dep(const char *name) -{ - struct file *file; - FILE *out; - - if (!name) - name = ".config.cmd"; - out = fopen(".config.tmp", "w"); - if (!out) - return 1; - fprintf(out, "deps_config := \\\n"); - for (file = file_list; file; file = file->next) { - if (file->next) - fprintf(out, "\t%s \\\n", file->name); - else - fprintf(out, "\t%s\n", file->name); - } - fprintf(out, "\n.config include/config.h: $(deps_config)\n\n$(deps_config):\n"); - fclose(out); - rename(".config.tmp", name); - return 0; -} - |