1
1

* screen.c [HAVE_X]: Disable unused code.

Этот коммит содержится в:
Pavel Roskin 2001-08-19 17:33:26 +00:00
родитель 4d3cf58a5d
Коммит 1daee3ab8f
2 изменённых файлов: 30 добавлений и 28 удалений

Просмотреть файл

@ -1,5 +1,7 @@
2001-08-19 Pavel Roskin <proski@gnu.org>
* screen.c [HAVE_X]: Disable unused code.
* fs.h: Correctly include <sys/param.h>.
* x.h: Include "global.h". Move all contents ...
* global.h: Here.

Просмотреть файл

@ -2449,6 +2449,34 @@ panel_callback (Dlg_head *h, WPanel *panel, int msg, int par)
return default_proc (h, msg, par);
}
void
file_mark (WPanel *panel, int index, int val)
{
panel->dir.list [index].f.marked = val;
x_panel_select_item (panel, index, val);
}
#ifdef HAVE_X
sortfn *
get_sort_fn (char *name)
{
int i;
/* First, try the long name options, from dir.c */
for (i = 0; i < SORT_TYPES_TOTAL; i++)
if (strcmp (name, sort_orders [i].sort_name) == 0)
return (sortfn *)sort_orders [i].sort_fn;
/* Then try the short name options, from our local table */
for (i = 0; i < ELEMENTS (formats); i++){
if (strcmp (name, formats [i].id) == 0 && formats [i].sort_routine)
return formats [i].sort_routine;
}
return NULL;
}
#else
/* */
/* Panel mouse events support routines */
/* */
@ -2483,34 +2511,6 @@ mark_if_marking (WPanel *panel, Gpm_Event *event)
return 0;
}
void
file_mark (WPanel *panel, int index, int val)
{
panel->dir.list [index].f.marked = val;
x_panel_select_item (panel, index, val);
}
#ifdef HAVE_X
sortfn *
get_sort_fn (char *name)
{
int i;
/* First, try the long name options, from dir.c */
for (i = 0; i < SORT_TYPES_TOTAL; i++)
if (strcmp (name, sort_orders [i].sort_name) == 0)
return (sortfn *)sort_orders [i].sort_fn;
/* Then try the short name options, from our local table */
for (i = 0; i < ELEMENTS (formats); i++){
if (strcmp (name, formats [i].id) == 0 && formats [i].sort_routine)
return formats [i].sort_routine;
}
return NULL;
}
#else
static int
panel_event (Gpm_Event *event, WPanel *panel)
{