* edit.c (edit_reload): Don't initialize edit->macro_i, because

edit_init() takes care of it.
* editwidget.c (edit): Likewise.
This commit is contained in:
Pavel Roskin 2002-12-16 01:27:44 +00:00
parent 5c76f171ac
commit 8148b4973c
3 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2002-12-15 Pavel Roskin <proski@gnu.org>
* edit.c (edit_reload): Don't initialize edit->macro_i, because
edit_init() takes care of it.
* editwidget.c (edit): Likewise.
* edit.h: Don't inclide malloc.h. Use g_malloc() and g_free()
instead. Adjust all dependencies.

View File

@ -635,7 +635,6 @@ edit_reload (WEdit *edit, const char *filename)
int columns = edit->num_widget_columns;
e = g_malloc0 (sizeof (WEdit));
e->widget = edit->widget;
e->macro_i = -1;
if (!edit_init (e, lines, columns, filename, 0)) {
g_free (e);
return 0;

View File

@ -173,7 +173,6 @@ edit (const char *_file, int line)
if (!(wedit = edit_init (NULL, LINES - 2, COLS, _file, line))) {
return 0;
}
wedit->macro_i = -1;
/* Create a new dialog and add it widgets to it */
edit_dlg =