~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/kconfig/nconf.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /scripts/kconfig/nconf.h (Version linux-6.12-rc7) and /scripts/kconfig/nconf.h (Version linux-5.6.19)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*                                                  2 /*
  3  * Copyright (C) 2008 Nir Tzachar <nir.tzachar      3  * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com>
  4  *                                                  4  *
  5  * Derived from menuconfig.                         5  * Derived from menuconfig.
  6  */                                                 6  */
  7                                                     7 
  8 #include <ctype.h>                                  8 #include <ctype.h>
  9 #include <errno.h>                                  9 #include <errno.h>
 10 #include <fcntl.h>                                 10 #include <fcntl.h>
 11 #include <limits.h>                                11 #include <limits.h>
 12 #include <stdarg.h>                                12 #include <stdarg.h>
 13 #include <stdlib.h>                                13 #include <stdlib.h>
 14 #include <string.h>                                14 #include <string.h>
 15 #include <unistd.h>                                15 #include <unistd.h>
 16 #include <ncurses.h>                               16 #include <ncurses.h>
 17 #include <menu.h>                                  17 #include <menu.h>
 18 #include <panel.h>                                 18 #include <panel.h>
 19 #include <form.h>                                  19 #include <form.h>
 20                                                    20 
 21 #include <stdio.h>                                 21 #include <stdio.h>
 22 #include <time.h>                                  22 #include <time.h>
 23 #include <sys/time.h>                              23 #include <sys/time.h>
 24                                                    24 
 25 #define max(a, b) ({\                              25 #define max(a, b) ({\
 26                 typeof(a) _a = a;\                 26                 typeof(a) _a = a;\
 27                 typeof(b) _b = b;\                 27                 typeof(b) _b = b;\
 28                 _a > _b ? _a : _b; })              28                 _a > _b ? _a : _b; })
 29                                                    29 
 30 #define min(a, b) ({\                              30 #define min(a, b) ({\
 31                 typeof(a) _a = a;\                 31                 typeof(a) _a = a;\
 32                 typeof(b) _b = b;\                 32                 typeof(b) _b = b;\
 33                 _a < _b ? _a : _b; })              33                 _a < _b ? _a : _b; })
 34                                                    34 
 35 extern int attr_normal;                        !!  35 typedef enum {
 36 extern int attr_main_heading;                  !!  36         NORMAL = 1,
 37 extern int attr_main_menu_box;                 !!  37         MAIN_HEADING,
 38 extern int attr_main_menu_fore;                !!  38         MAIN_MENU_BOX,
 39 extern int attr_main_menu_back;                !!  39         MAIN_MENU_FORE,
 40 extern int attr_main_menu_grey;                !!  40         MAIN_MENU_BACK,
 41 extern int attr_main_menu_heading;             !!  41         MAIN_MENU_GREY,
 42 extern int attr_scrollwin_text;                !!  42         MAIN_MENU_HEADING,
 43 extern int attr_scrollwin_heading;             !!  43         SCROLLWIN_TEXT,
 44 extern int attr_scrollwin_box;                 !!  44         SCROLLWIN_HEADING,
 45 extern int attr_dialog_text;                   !!  45         SCROLLWIN_BOX,
 46 extern int attr_dialog_menu_fore;              !!  46         DIALOG_TEXT,
 47 extern int attr_dialog_menu_back;              !!  47         DIALOG_MENU_FORE,
 48 extern int attr_dialog_box;                    !!  48         DIALOG_MENU_BACK,
 49 extern int attr_input_box;                     !!  49         DIALOG_BOX,
 50 extern int attr_input_heading;                 !!  50         INPUT_BOX,
 51 extern int attr_input_text;                    !!  51         INPUT_HEADING,
 52 extern int attr_input_field;                   !!  52         INPUT_TEXT,
 53 extern int attr_function_text;                 !!  53         INPUT_FIELD,
 54 extern int attr_function_highlight;            !!  54         FUNCTION_TEXT,
                                                   >>  55         FUNCTION_HIGHLIGHT,
                                                   >>  56         ATTR_MAX
                                                   >>  57 } attributes_t;
                                                   >>  58 extern attributes_t attributes[];
 55                                                    59 
 56 typedef enum {                                     60 typedef enum {
 57         F_HELP = 1,                                61         F_HELP = 1,
 58         F_SYMBOL = 2,                              62         F_SYMBOL = 2,
 59         F_INSTS = 3,                               63         F_INSTS = 3,
 60         F_CONF = 4,                                64         F_CONF = 4,
 61         F_BACK = 5,                                65         F_BACK = 5,
 62         F_SAVE = 6,                                66         F_SAVE = 6,
 63         F_LOAD = 7,                                67         F_LOAD = 7,
 64         F_SEARCH = 8,                              68         F_SEARCH = 8,
 65         F_EXIT = 9,                                69         F_EXIT = 9,
 66 } function_key;                                    70 } function_key;
 67                                                    71 
 68 void set_colors(void);                             72 void set_colors(void);
 69                                                    73 
 70 typedef int (*extra_key_cb_fn)(int, size_t, si << 
 71                                                << 
 72 /* this changes the windows attributes !!! */      74 /* this changes the windows attributes !!! */
 73 void print_in_middle(WINDOW *win, int y, int w !!  75 void print_in_middle(WINDOW *win,
                                                   >>  76                 int starty,
                                                   >>  77                 int startx,
                                                   >>  78                 int width,
                                                   >>  79                 const char *string,
                                                   >>  80                 chtype color);
 74 int get_line_length(const char *line);             81 int get_line_length(const char *line);
 75 int get_line_no(const char *text);                 82 int get_line_no(const char *text);
 76 const char *get_line(const char *text, int lin     83 const char *get_line(const char *text, int line_no);
 77 void fill_window(WINDOW *win, const char *text     84 void fill_window(WINDOW *win, const char *text);
 78 int btn_dialog(WINDOW *main_window, const char     85 int btn_dialog(WINDOW *main_window, const char *msg, int btn_num, ...);
 79 int dialog_inputbox(WINDOW *main_window,           86 int dialog_inputbox(WINDOW *main_window,
 80                 const char *title, const char      87                 const char *title, const char *prompt,
 81                 const char *init, char **resul     88                 const char *init, char **resultp, int *result_len);
 82 void refresh_all_windows(WINDOW *main_window);     89 void refresh_all_windows(WINDOW *main_window);
 83 int show_scroll_win_ext(WINDOW *main_window, c << 
 84                         int *vscroll, int *hsc << 
 85                         extra_key_cb_fn extra_ << 
 86 void show_scroll_win(WINDOW *main_window,          90 void show_scroll_win(WINDOW *main_window,
 87                 const char *title,                 91                 const char *title,
 88                 const char *text);                 92                 const char *text);
 89                                                    93 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php