menu.c (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) | menu.c (b75b0a819af9f78fc395b189cddd40f590194d20) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 4 */ 5 6#include <ctype.h> 7#include <stdarg.h> 8#include <stdlib.h> --- 205 unchanged lines hidden (view full) --- 214void menu_add_option_modules(void) 215{ 216 if (modules_sym) 217 zconf_error("symbol '%s' redefines option 'modules' already defined by symbol '%s'", 218 current_entry->sym->name, modules_sym->name); 219 modules_sym = current_entry->sym; 220} 221 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 4 */ 5 6#include <ctype.h> 7#include <stdarg.h> 8#include <stdlib.h> --- 205 unchanged lines hidden (view full) --- 214void menu_add_option_modules(void) 215{ 216 if (modules_sym) 217 zconf_error("symbol '%s' redefines option 'modules' already defined by symbol '%s'", 218 current_entry->sym->name, modules_sym->name); 219 modules_sym = current_entry->sym; 220} 221 |
222void menu_add_option_defconfig_list(void) 223{ 224 if (!sym_defconfig_list) 225 sym_defconfig_list = current_entry->sym; 226 else if (sym_defconfig_list != current_entry->sym) 227 zconf_error("trying to redefine defconfig symbol"); 228 sym_defconfig_list->flags |= SYMBOL_NO_WRITE; 229} 230 | |
231void menu_add_option_allnoconfig_y(void) 232{ 233 current_entry->sym->flags |= SYMBOL_ALLNOCONFIG_Y; 234} 235 236static int menu_validate_number(struct symbol *sym, struct symbol *sym2) 237{ 238 return sym2->type == S_INT || sym2->type == S_HEX || --- 661 unchanged lines hidden --- | 222void menu_add_option_allnoconfig_y(void) 223{ 224 current_entry->sym->flags |= SYMBOL_ALLNOCONFIG_Y; 225} 226 227static int menu_validate_number(struct symbol *sym, struct symbol *sym2) 228{ 229 return sym2->type == S_INT || sym2->type == S_HEX || --- 661 unchanged lines hidden --- |