* user.h: Don't include edit/edit-widget.h.

* user.c: Include edit/edit-widget.h and edit/edit.h.
This commit is contained in:
Pavel Roskin 2002-11-29 03:03:53 +00:00
parent 18de4488e3
commit e0e20526b2
3 changed files with 12 additions and 5 deletions

View File

@ -1,5 +1,8 @@
2002-11-28 Pavel Roskin <proski@gnu.org>
* user.h: Don't include edit/edit-widget.h.
* user.c: Include edit/edit-widget.h and edit/edit.h.
* slint.c (getch): Return -1, not SLANG_GETKEY_ERROR, otherwise
get_key_code() crashes when calling isalpha().

View File

@ -32,6 +32,9 @@
#include "user.h"
#include "layout.h"
#include "setup.h"
#include "edit/edit.h" /* BLOCK_FILE */
#include "edit/edit-widget.h" /* WEdit */
#include "../vfs/vfs.h"
/* For the simple listbox manager */
@ -170,7 +173,7 @@ strip_ext(char *ss)
}
char *
expand_format (WEdit * edit_widget, char c, int quote)
expand_format (struct WEdit *edit_widget, char c, int quote)
{
WPanel *panel;
char *(*quote_func) (const char *, int);
@ -665,7 +668,8 @@ menu_file_own(char* path)
* If edit_widget is NULL then we are called from the mc menu,
* otherwise we are called from the mcedit menu.
*/
void user_menu_cmd (WEdit *edit_widget)
void
user_menu_cmd (struct WEdit *edit_widget)
{
char *p;
char *data, **entries;

View File

@ -2,10 +2,10 @@
#define __USER_H
#include "panel.h"
#include "edit/edit-widget.h"
void user_menu_cmd (WEdit *edit_widget);
char *expand_format (WEdit *edit_widget, char c, int quote);
struct WEdit;
void user_menu_cmd (struct WEdit *edit_widget);
char *expand_format (struct WEdit *edit_widget, char c, int quote);
int check_format_view (const char *);
int check_format_var (const char *, char **);
int check_format_cd (const char *);