diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-11-19 13:13:34 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-11-19 13:13:34 -0500 |
commit | b1c5f1c635f4a821f834ed51ccd8a2a1515fffd2 (patch) | |
tree | 7325e59c16a2b90fd6f78ab491f7ef48bfd409b9 /scripts/lxdialog/dialog.h | |
parent | b286e39207237e2f6929959372bf66d9a8d05a82 (diff) |
kconfig: Lindent scripts/lxdialog
The lxdialog code was not easy to read. So as first step the code
was run through Lindent.
Fix-ups will come in next patchset.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/lxdialog/dialog.h')
-rw-r--r-- | scripts/lxdialog/dialog.h | 59 |
1 files changed, 28 insertions, 31 deletions
diff --git a/scripts/lxdialog/dialog.h b/scripts/lxdialog/dialog.h index eb63e1bb63a3..c86801f981fe 100644 --- a/scripts/lxdialog/dialog.h +++ b/scripts/lxdialog/dialog.h | |||
@@ -42,7 +42,7 @@ | |||
42 | #if defined(NCURSES_VERSION) && defined(_NEED_WRAP) && !defined(GCC_PRINTFLIKE) | 42 | #if defined(NCURSES_VERSION) && defined(_NEED_WRAP) && !defined(GCC_PRINTFLIKE) |
43 | #define OLD_NCURSES 1 | 43 | #define OLD_NCURSES 1 |
44 | #undef wbkgdset | 44 | #undef wbkgdset |
45 | #define wbkgdset(w,p) /*nothing*/ | 45 | #define wbkgdset(w,p) /*nothing */ |
46 | #else | 46 | #else |
47 | #define OLD_NCURSES 0 | 47 | #define OLD_NCURSES 0 |
48 | #endif | 48 | #endif |
@@ -56,7 +56,6 @@ | |||
56 | #define MIN(x,y) (x < y ? x : y) | 56 | #define MIN(x,y) (x < y ? x : y) |
57 | #define MAX(x,y) (x > y ? x : y) | 57 | #define MAX(x,y) (x > y ? x : y) |
58 | 58 | ||
59 | |||
60 | #ifndef ACS_ULCORNER | 59 | #ifndef ACS_ULCORNER |
61 | #define ACS_ULCORNER '+' | 60 | #define ACS_ULCORNER '+' |
62 | #endif | 61 | #endif |
@@ -137,35 +136,34 @@ extern const char *backtitle; | |||
137 | /* | 136 | /* |
138 | * Function prototypes | 137 | * Function prototypes |
139 | */ | 138 | */ |
140 | extern void create_rc (const char *filename); | 139 | extern void create_rc(const char *filename); |
141 | extern int parse_rc (void); | 140 | extern int parse_rc(void); |
142 | 141 | ||
143 | 142 | void init_dialog(void); | |
144 | void init_dialog (void); | 143 | void end_dialog(void); |
145 | void end_dialog (void); | 144 | void attr_clear(WINDOW * win, int height, int width, chtype attr); |
146 | void attr_clear (WINDOW * win, int height, int width, chtype attr); | 145 | void dialog_clear(void); |
147 | void dialog_clear (void); | 146 | void color_setup(void); |
148 | void color_setup (void); | 147 | void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x); |
149 | void print_autowrap (WINDOW * win, const char *prompt, int width, int y, int x); | 148 | void print_button(WINDOW * win, const char *label, int y, int x, int selected); |
150 | void print_button (WINDOW * win, const char *label, int y, int x, int selected); | 149 | void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box, |
151 | void draw_box (WINDOW * win, int y, int x, int height, int width, chtype box, | 150 | chtype border); |
152 | chtype border); | 151 | void draw_shadow(WINDOW * win, int y, int x, int height, int width); |
153 | void draw_shadow (WINDOW * win, int y, int x, int height, int width); | 152 | |
154 | 153 | int first_alpha(const char *string, const char *exempt); | |
155 | int first_alpha (const char *string, const char *exempt); | 154 | int dialog_yesno(const char *title, const char *prompt, int height, int width); |
156 | int dialog_yesno (const char *title, const char *prompt, int height, int width); | 155 | int dialog_msgbox(const char *title, const char *prompt, int height, |
157 | int dialog_msgbox (const char *title, const char *prompt, int height, | 156 | int width, int pause); |
158 | int width, int pause); | 157 | int dialog_textbox(const char *title, const char *file, int height, int width); |
159 | int dialog_textbox (const char *title, const char *file, int height, int width); | 158 | int dialog_menu(const char *title, const char *prompt, int height, int width, |
160 | int dialog_menu (const char *title, const char *prompt, int height, int width, | 159 | int menu_height, const char *choice, int item_no, |
161 | int menu_height, const char *choice, int item_no, | 160 | const char *const *items); |
162 | const char * const * items); | 161 | int dialog_checklist(const char *title, const char *prompt, int height, |
163 | int dialog_checklist (const char *title, const char *prompt, int height, | 162 | int width, int list_height, int item_no, |
164 | int width, int list_height, int item_no, | 163 | const char *const *items, int flag); |
165 | const char * const * items, int flag); | ||
166 | extern char dialog_input_result[]; | 164 | extern char dialog_input_result[]; |
167 | int dialog_inputbox (const char *title, const char *prompt, int height, | 165 | int dialog_inputbox(const char *title, const char *prompt, int height, |
168 | int width, const char *init); | 166 | int width, const char *init); |
169 | 167 | ||
170 | /* | 168 | /* |
171 | * This is the base for fictitious keys, which activate | 169 | * This is the base for fictitious keys, which activate |
@@ -178,7 +176,6 @@ int dialog_inputbox (const char *title, const char *prompt, int height, | |||
178 | */ | 176 | */ |
179 | #define M_EVENT (KEY_MAX+1) | 177 | #define M_EVENT (KEY_MAX+1) |
180 | 178 | ||
181 | |||
182 | /* | 179 | /* |
183 | * The `flag' parameter in checklist is used to select between | 180 | * The `flag' parameter in checklist is used to select between |
184 | * radiolist and checklist | 181 | * radiolist and checklist |