Merge branch '4426_cleanup'

* 4426_cleanup: (38 commits)
  Update po/*.po files.
  (edit_find_editor): rename from find_editor.
  Listbox window: rename functions.
  (buttonbar_find): rename from find_buttonbar.
  Menu: rename functions.
  (advanced_chown_cmd): use intermediate variables to make text more readable.
  Use mc_fgetflags() and mc_fsetflags() where needed.
  VFS: mc_fgetflags, mc_fsetflags: new APIs.
  Minor optimization of chown/chmod/chattr operations.
  (operate_single_file): clarify creation of file operation UI.
  (dlg_default_destroy): send MSG_DESTROY to the dialog itself
  Collect all editor options to structure.
  Add EDIT and CONST_EDIT macros.
  usermenu: clarify compilation w/o internal editor.
  src/editor/spell.c: add missed #include.
  Update template for .c files.
  (do_search): remove intermediate variable.
  (do_search): get rid of string duplication.
  Change WDialog::data from void* to union{void*, int}
  Don't create an empty string in WLabel objects.
  ...
This commit is contained in:
Andrew Borodin 2023-03-19 20:40:09 +03:00
commit be3822cafa
245 changed files with 3355 additions and 3232 deletions

View File

@ -284,7 +284,7 @@ S\-<символ> означает, что нужно держать в нажа
Все строки ввода в Midnight Commander по умолчанию поддерживают соглашения Все строки ввода в Midnight Commander по умолчанию поддерживают соглашения
об использовании "горячих" клавиш, принятые в редакторе GNU Emacs. об использовании "горячих" клавиш, принятые в редакторе GNU Emacs.
.PP .PP
Вы можете переопределить клавиатурные привязки "горячих" клавищ к командам, Вы можете переопределить клавиатурные привязки "горячих" клавиш к командам,
как это описано в разделе как это описано в разделе
.\"LINK2" .\"LINK2"
.I переопределение клавиатурных команд .I переопределение клавиатурных команд
@ -1025,7 +1025,7 @@ half name | size:7 | type mode:3
предназначена для ввода регулярного выражения (маски) для выбора файлов. предназначена для ввода регулярного выражения (маски) для выбора файлов.
Если включена опция Если включена опция
.IR "Только файлы" , .IR "Только файлы" ,
то фильтроваться будут только файлы, а все каталоги будут отбражаться то фильтроваться будут только файлы, а все каталоги будут отображаться
независимо от того, соответствуют они фильтру или нет. В противном случае независимо от того, соответствуют они фильтру или нет. В противном случае
фильтроваться будут как файлы, так и каталоги. Если включена опция фильтроваться будут как файлы, так и каталоги. Если включена опция
.IR "Образцы в стиле shell" , .IR "Образцы в стиле shell" ,
@ -1333,7 +1333,7 @@ Midnight Commander за счет добавления в личное меню
.PP .PP
По команде По команде
.I "Отключить панели" .I "Отключить панели"
показывается вывод последней из выполнявшихся команд облочки. Эта команда показывается вывод последней из выполнявшихся команд оболочки. Эта команда
работает только через xterm и на консоли Linux и FreeBSD. "Горячие" клавиши \- работает только через xterm и на консоли Linux и FreeBSD. "Горячие" клавиши \-
.BR C\-o . .BR C\-o .
.PP .PP
@ -1407,7 +1407,7 @@ Midnight Commander за счет добавления в личное меню
.I "Список экранов" .I "Список экранов"
.\"Screen selector" .\"Screen selector"
отображает диалоговое окно со списком одновременно работающих в данный отображает диалоговое окно со списком одновременно работающих в данный
момент встроенноых редакторов, программ просмотра и других модулей MC, момент встроенных редакторов, программ просмотра и других модулей MC,
поддерживающих такой режим работы. поддерживающих такой режим работы.
.PP .PP
После выбора пункта меню После выбора пункта меню
@ -1477,7 +1477,7 @@ Midnight Commander создаёт дерево путем просмотра т
режимами перемещения по дереву. режимами перемещения по дереву.
.TP .TP
В статическом режиме перемещения для выбора каталога (то есть перемещения В статическом режиме перемещения для выбора каталога (то есть перемещения
подсветки на имя другого каталога) используются только коавиши подсветки на имя другого каталога) используются только клавиши
.BR Up/Down . .BR Up/Down .
Показываются все известные программе на данный момент подкаталоги. Показываются все известные программе на данный момент подкаталоги.
.TP .TP
@ -1486,7 +1486,7 @@ Midnight Commander создаёт дерево путем просмотра т
используются для перехода на соседний каталог того же уровня. Для перехода используются для перехода на соседний каталог того же уровня. Для перехода
в родительский каталог используется клавиша в родительский каталог используется клавиша
.BR Left , .BR Left ,
а по коавише а по клавише
.B Right .B Right
происходит переход к потомкам текущего каталога, то есть на один уровень происходит переход к потомкам текущего каталога, то есть на один уровень
ниже. При этом отображаются только вышележащие каталоги (включая ниже. При этом отображаются только вышележащие каталоги (включая
@ -1982,7 +1982,7 @@ mc на экране.
для использования однократного нажатия на клавишу Esc. По умолчанию этот для использования однократного нажатия на клавишу Esc. По умолчанию этот
интервал равен 1 секунде (1000000 микросекунд). Кроме того, этот интервал интервал равен 1 секунде (1000000 микросекунд). Кроме того, этот интервал
может быть установлен через переменную окружения KEYBOARD_KEY_TIMEOUT_US может быть установлен через переменную окружения KEYBOARD_KEY_TIMEOUT_US
(также в микросекундах), которая имеет приоритет над над значеним этой (также в микросекундах), которая имеет приоритет над над значением этой
опции. опции.
.PP .PP
.B Пауза после исполнения .B Пауза после исполнения
@ -2137,7 +2137,7 @@ Commander. Параметры, задаваемые в этом окне, дел
Alt\-, (Alt\-запятая). Alt\-, (Alt\-запятая).
.PP .PP
.IR "Равные размеры" . .IR "Равные размеры" .
По умолчанию панели имеют равные разменры. Эта опция позволяет изменить их. По умолчанию панели имеют равные размеры. Эта опция позволяет изменить их.
.PP .PP
.BR "Консольный вывод" . .BR "Консольный вывод" .
.PP .PP
@ -2232,7 +2232,7 @@ Commander будет использовать для вывода содержи
.PP .PP
.IR "Автосохранение настроек панелей" . .IR "Автосохранение настроек панелей" .
Если опция включена (по умолчанию она выключена), то при выходе из Если опция включена (по умолчанию она выключена), то при выходе из
Midnight Commander'а текущие настройки панелей соханяются в файле Midnight Commander'а текущие настройки панелей сохраняются в файле
~/.config/mc/panels.ini. ~/.config/mc/panels.ini.
.PP .PP
.B Навигация .B Навигация
@ -2305,12 +2305,12 @@ Commander, выделены цветом, определённым ключев
.SH " Подтверждения" .SH " Подтверждения"
Используя это диалоговое окно, вы можете сделать так, чтобы перед Используя это диалоговое окно, вы можете сделать так, чтобы перед
выполнением операций удаления, перезаписи файла, запуска файла на выполнение, выполнением операций удаления, перезаписи файла, запуска файла на выполнение,
перед выходом из программы MC, перед удаленим каталога из каталогов быстрого перед выходом из программы MC, перед удалением каталога из каталогов быстрого
доступа, а также перед очисткой истории выдавался дополнительный запрос доступа, а также перед очисткой истории выдавался дополнительный запрос
на подтверждение. на подтверждение.
.\"NODE " Appearance" .\"NODE " Appearance"
.SH " Оформление" .SH " Оформление"
Используя это диалоговое окно, вы можете выбрать скин и разрещить отрисовку Используя это диалоговое окно, вы можете выбрать скин и разрешить отрисовку
теней у диалоговых окон и выпадающих меню. теней у диалоговых окон и выпадающих меню.
.PP .PP
Для получения более подробной информации о скинах обратитесь к разделу Для получения более подробной информации о скинах обратитесь к разделу
@ -2787,7 +2787,7 @@ subshell, в файле
одну из экранных кнопок): одну из экранных кнопок):
.TP .TP
.B [Отметить всё] .B [Отметить всё]
отмеченные атрибуты (и только они) будут установлены в соотвтествии отмеченные атрибуты (и только они) будут установлены в соответствии
с состоянием кнопок-флажков, причём для всех выбранных (помеченных) файлов. с состоянием кнопок-флажков, причём для всех выбранных (помеченных) файлов.
Если атрибут не был отмечен, его значение для выбранных файлов не изменяется. Если атрибут не был отмечен, его значение для выбранных файлов не изменяется.
.TP .TP
@ -2879,7 +2879,7 @@ chattr \- команде изменения атрибутов файлов и
одну из экранных кнопок): одну из экранных кнопок):
.TP .TP
.B [Отметить всё] .B [Отметить всё]
отмеченные атрибуты (и только они) будут установлены в соотвтествии отмеченные атрибуты (и только они) будут установлены в соответствии
с состоянием кнопок-флажков, причём для всех выбранных (помеченных) файлов. с состоянием кнопок-флажков, причём для всех выбранных (помеченных) файлов.
Если атрибут не был отмечен, его значение для выбранных файлов не изменяется. Если атрибут не был отмечен, его значение для выбранных файлов не изменяется.
.TP .TP
@ -3172,7 +3172,7 @@ mcdiff \- это встроенное средство для сравнения
Редактирование файла в правой панели. Редактирование файла в правой панели.
.TP .TP
.B F5 .B F5
Произвести слияние текушего изменения. Произвести слияние текущего изменения.
.TP .TP
.B F7 .B F7
Вызов диалогового окна для задания шаблона поиска. Вызов диалогового окна для задания шаблона поиска.
@ -3499,11 +3499,11 @@ Midnight Commander поддерживает возможность одновр
экраном. экраном.
.PP .PP
Есть три способа переключения между экранами: Есть три способа переключения между экранами:
переходк к следующему экрану в списке клавиатурной комбинацией переход к следующему экрану в списке клавиатурной комбинацией
.BR Alt\-} , .BR Alt\-} ,
переходк к предыдущему экрану в списке клавиатурной комбинацией переход к предыдущему экрану в списке клавиатурной комбинацией
.BR Alt\-{ , .BR Alt\-{ ,
вызов дилогового окна со списком экранов клавиатурной комбинацией вызов диалогового окна со списком экранов клавиатурной комбинацией
.B Alt\-` .B Alt\-`
или с помощью пункта меню. или с помощью пункта меню.
Все эти комбинации клавиш одинаковы во всех экранах. Все эти комбинации клавиш одинаковы во всех экранах.
@ -3755,7 +3755,7 @@ bash\-совместимая оболочка shell.
.nf .nf
'C' \- использовать сжатие; 'C' \- использовать сжатие;
'r' \- использовать rsh вместо ssh; 'r' \- использовать rsh вместо ssh;
port \- использовать данный порт для поключения к удалённому компьютеру. port \- использовать данный порт для подключения к удалённому компьютеру.
.fi .fi
.PP .PP
Если задан элемент Если задан элемент
@ -3793,7 +3793,7 @@ bash\-совместимая оболочка shell.
этим именем, в противном случае \- под тем именем, с которым вы этим именем, в противном случае \- под тем именем, с которым вы
зарегистрированы в локальной системе. Если задан зарегистрированы в локальной системе. Если задан
.I port .I port
то он будет использован для поключения к удалённому компьютеру. то он будет использован для подключения к удалённому компьютеру.
Если задан элемент Если задан элемент
.IR remote\-dir , .IR remote\-dir ,
то указанный каталог станет текущим после соединения с удалённым компьютером. то указанный каталог станет текущим после соединения с удалённым компьютером.
@ -3853,7 +3853,7 @@ SCSI\-диска, нужно использовать следующее имя:
Внешняя файловая система позволяет очень просто интегрировать новые Внешняя файловая система позволяет очень просто интегрировать новые
файловые контейнера и типы файлов простым написанием скриптов. файловые контейнера и типы файлов простым написанием скриптов.
.PP .PP
Файловая система Extfs подраздляется на две категории: Файловая система Extfs подразделяется на две категории:
.PP .PP
1. Автономные файловые системы, которые не ассоциированы ни с одним из 1. Автономные файловые системы, которые не ассоциированы ни с одним из
типов файлов.они представляют некоторые системные данные как дерево каталогов типов файлов.они представляют некоторые системные данные как дерево каталогов
@ -4170,7 +4170,7 @@ menuhotsel=yellow;black;bold+underline
.\"Skins sections" .\"Skins sections"
.br .br
.\"LINK2" .\"LINK2"
Опеределения цветовых пар Определения цветовых пар
.\"Skins colors" .\"Skins colors"
.br .br
.\"LINK2" .\"LINK2"
@ -4224,7 +4224,7 @@ menuhotsel=yellow;black;bold+underline
курсор на отмеченных данных курсор на отмеченных данных
.TP .TP
.I gauge .I gauge
цвет заполненной части индиктора прогресса цвет заполненной части индикатора прогресса
.TP .TP
.I input .I input
элемент ввода данных элемент ввода данных
@ -4375,7 +4375,7 @@ menuhotsel=yellow;black;bold+underline
.\"NODE " Skins aliases" .\"NODE " Skins aliases"
.SH " Псевдонимы цветов и атрибутов" .SH " Псевдонимы цветов и атрибутов"
Эта необязательная секция содержит опреления псевдонимов цветов (не цветовых пар) Эта необязательная секция содержит определения псевдонимов цветов (не цветовых пар)
и атрибутов. Псевдоним представляет собой части определения параметров скина. и атрибутов. Псевдоним представляет собой части определения параметров скина.
В определение псевдонима может использоваться другой псевдоним, но при этом В определение псевдонима может использоваться другой псевдоним, но при этом
не должны образовываться циклические ссылки. не должны образовываться циклические ссылки.
@ -4480,11 +4480,11 @@ menuhotsel=yellow;black;bold+underline
Регулярное выражение. Если присутствует, параметр 'extensions' игнорируется. Регулярное выражение. Если присутствует, параметр 'extensions' игнорируется.
.TP .TP
.I extensions .I extensions
Список расширений файлов. Раасширения разделяются символом ';'. Список расширений файлов. Расширения разделяются символом ';'.
.TP .TP
.I extensions_case .I extensions_case
(имеет смысл только с параметром 'extensions') делает правило 'extensions' (имеет смысл только с параметром 'extensions') делает правило 'extensions'
чувствительным к регистру букв (true) или не чувтсвительным (false). чувствительным к регистру букв (true) или не чувствительным (false).
.PP .PP
Параметр 'type' (тип файла) может принимать значения: Параметр 'type' (тип файла) может принимать значения:
.nf .nf
@ -4697,11 +4697,11 @@ Midnight Commander позволяет задать некоторые парам
MC надеется, что она имеет собственную функцию открытия файла в том же самом месте, MC надеется, что она имеет собственную функцию открытия файла в том же самом месте,
где он был закрыт в предыдущий раз. Такую функцию имеет, например, редактор "joe" где он был закрыт в предыдущий раз. Такую функцию имеет, например, редактор "joe"
и многие другие. MC не препятствует внешней программе редактирования или просмотра и многие другие. MC не препятствует внешней программе редактирования или просмотра
самостоятельно сохранять и восстановливать позиции в открываемых файлах. самостоятельно сохранять и восстанавливать позиции в открываемых файлах.
.\"NODE "Terminal databases" .\"NODE "Terminal databases"
.SH "Базы терминалов" .SH "Базы терминалов"
Midnight Commander обеспечивает возможность внесения исправлений в Midnight Commander обеспечивает возможность внесения исправлений в
системную базу терминалов, даже если вы не обладаёте правами системную базу терминалов, даже если вы не обладаете правами
суперпользователя. Midnight Commander ищет в системном инициализационном суперпользователя. Midnight Commander ищет в системном инициализационном
файле (файл файле (файл
.B mc.lib .B mc.lib

View File

@ -32,6 +32,7 @@ SRC_mc_utils = \
libmc_la_SOURCES = \ libmc_la_SOURCES = \
$(SUBLIB_includes) \ $(SUBLIB_includes) \
$(SRC_mc_utils) \ $(SRC_mc_utils) \
file-entry.h \
fileloc.h \ fileloc.h \
fs.h \ fs.h \
hook.c hook.h \ hook.c hook.h \

View File

@ -58,8 +58,11 @@ const char *cp_source = NULL;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
@ -78,10 +81,9 @@ new_codepage_desc (const char *id, const char *name)
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
static void static void
free_codepage_desc (gpointer data, gpointer user_data) free_codepage_desc (gpointer data)
{ {
codepage_desc *desc = (codepage_desc *) data; codepage_desc *desc = (codepage_desc *) data;
(void) user_data;
g_free (desc->id); g_free (desc->id);
g_free (desc->name); g_free (desc->name);
@ -216,7 +218,7 @@ load_codepages_list (void)
/* files are not found, add default codepage */ /* files are not found, add default codepage */
fprintf (stderr, "%s\n", _("Warning: cannot load codepages list")); fprintf (stderr, "%s\n", _("Warning: cannot load codepages list"));
codepages = g_ptr_array_new (); codepages = g_ptr_array_new_with_free_func (free_codepage_desc);
g_ptr_array_add (codepages, new_codepage_desc (DEFAULT_CHARSET, _("7-bit ASCII"))); g_ptr_array_add (codepages, new_codepage_desc (DEFAULT_CHARSET, _("7-bit ASCII")));
} }
} }
@ -226,7 +228,6 @@ load_codepages_list (void)
void void
free_codepages_list (void) free_codepages_list (void)
{ {
g_ptr_array_foreach (codepages, free_codepage_desc, NULL);
g_ptr_array_free (codepages, TRUE); g_ptr_array_free (codepages, TRUE);
/* NULL-ize pointer to make unit tests happy */ /* NULL-ize pointer to make unit tests happy */
codepages = NULL; codepages = NULL;

View File

@ -38,24 +38,20 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
static void static void
mc_event_group_destroy_value (gpointer data) mc_event_group_destroy_value (gpointer data)
{ {
GPtrArray *callbacks; g_ptr_array_free ((GPtrArray *) data, TRUE);
callbacks = (GPtrArray *) data;
g_ptr_array_foreach (callbacks, (GFunc) g_free, NULL);
g_ptr_array_free (callbacks, TRUE);
} }
/* --------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
/*** public functions ****************************************************************************/ /*** public functions ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
@ -64,7 +60,6 @@ gboolean
mc_event_add (const gchar * event_group_name, const gchar * event_name, mc_event_add (const gchar * event_group_name, const gchar * event_name,
mc_event_callback_func_t event_callback, gpointer event_init_data, GError ** mcerror) mc_event_callback_func_t event_callback, gpointer event_init_data, GError ** mcerror)
{ {
GTree *event_group; GTree *event_group;
GPtrArray *callbacks; GPtrArray *callbacks;
mc_event_callback_t *cb; mc_event_callback_t *cb;
@ -120,12 +115,8 @@ mc_event_del (const gchar * event_group_name, const gchar * event_name,
return; return;
cb = mc_event_is_callback_in_array (callbacks, event_callback, event_init_data); cb = mc_event_is_callback_in_array (callbacks, event_callback, event_init_data);
if (cb != NULL)
if (cb == NULL)
return;
g_ptr_array_remove (callbacks, (gpointer) cb); g_ptr_array_remove (callbacks, (gpointer) cb);
g_free ((gpointer) cb);
} }
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
@ -194,7 +185,7 @@ mc_event_get_event_by_name (GTree * event_group, const gchar * event_name, gbool
callbacks = (GPtrArray *) g_tree_lookup (event_group, (gconstpointer) event_name); callbacks = (GPtrArray *) g_tree_lookup (event_group, (gconstpointer) event_name);
if (callbacks == NULL && create_new) if (callbacks == NULL && create_new)
{ {
callbacks = g_ptr_array_new (); callbacks = g_ptr_array_new_with_free_func (g_free);
if (callbacks == NULL) if (callbacks == NULL)
{ {
mc_propagate_error (mcerror, 0, _("Unable to create event '%s'!"), event_name); mc_propagate_error (mcerror, 0, _("Unable to create event '%s'!"), event_name);

49
lib/file-entry.h Normal file
View File

@ -0,0 +1,49 @@
/** \file lib/file-entry.h
* \brief Header: file entry definition
*/
#ifndef MC__ILE_ENTRY_H
#define MC__ILE_ENTRY_H
#include <sys/types.h>
#include <sys/stat.h>
#include "lib/global.h" /* include <glib.h> */
/*** typedefs(not structures) and defined constants **********************************************/
/*** enums ***************************************************************************************/
/*** structures declarations (and typedefs of structures)*****************************************/
/* keys are set only during sorting */
typedef struct
{
/* File name */
GString *fname;
/* File attributes */
struct stat st;
/* Key used for comparing names */
char *sort_key;
/* Key used for comparing extensions */
char *second_sort_key;
/* Flags */
struct
{
unsigned int marked:1; /* File marked in pane window */
unsigned int link_to_dir:1; /* If this is a link, does it point to directory? */
unsigned int stale_link:1; /* If this is a symlink and points to Charon's land */
unsigned int dir_size_computed:1; /* Size of directory was computed with dirsizes_cmd */
} f;
} file_entry_t;
/*** global variables defined in .c file *********************************************************/
/*** declarations of public functions ************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** inline functions ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */
#endif /* MC__FILE_ENTRY_H */

View File

@ -2,7 +2,7 @@
#define MC__FILEHIGHLIGHT_H #define MC__FILEHIGHLIGHT_H
#include "lib/mcconfig.h" /* mc_config_t */ #include "lib/mcconfig.h" /* mc_config_t */
#include "lib/util.h" /* file_entry_t */ #include "lib/file-entry.h"
/*** typedefs(not structures) and defined constants **********************************************/ /*** typedefs(not structures) and defined constants **********************************************/

View File

@ -27,7 +27,10 @@
#include <config.h> #include <config.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/util.h" /* MC_PTR_FREE */
#include "lib/filehighlight.h" #include "lib/filehighlight.h"
#include "internal.h" #include "internal.h"
/*** global variables ****************************************************************************/ /*** global variables ****************************************************************************/
@ -38,10 +41,16 @@
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static void /* --------------------------------------------------------------------------------------------- */
mc_fhl_filter_free (void *data) /*** public functions ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */
void
mc_fhl_filter_free (gpointer data)
{ {
mc_fhl_filter_t *filter = (mc_fhl_filter_t *) data; mc_fhl_filter_t *filter = (mc_fhl_filter_t *) data;
@ -58,13 +67,11 @@ mc_fhl_array_free (mc_fhl_t * fhl)
{ {
if (fhl->filters != NULL) if (fhl->filters != NULL)
{ {
g_ptr_array_foreach (fhl->filters, (GFunc) mc_fhl_filter_free, NULL); g_ptr_array_free (fhl->filters, TRUE);
fhl->filters = (GPtrArray *) g_ptr_array_free (fhl->filters, TRUE); fhl->filters = NULL;
} }
} }
/* --------------------------------------------------------------------------------------------- */
/*** public functions ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
mc_fhl_t * mc_fhl_t *

View File

@ -39,10 +39,12 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
/*inline functions */ /*inline functions */
@ -55,12 +57,16 @@ mc_fhl_is_file (const file_entry_t * fe)
return S_ISREG (fe->st.st_mode); return S_ISREG (fe->st.st_mode);
} }
/* --------------------------------------------------------------------------------------------- */
inline static gboolean inline static gboolean
mc_fhl_is_file_exec (const file_entry_t * fe) mc_fhl_is_file_exec (const file_entry_t * fe)
{ {
return is_exe (fe->st.st_mode); return is_exe (fe->st.st_mode);
} }
/* --------------------------------------------------------------------------------------------- */
inline static gboolean inline static gboolean
mc_fhl_is_dir (const file_entry_t * fe) mc_fhl_is_dir (const file_entry_t * fe)
{ {
@ -70,6 +76,8 @@ mc_fhl_is_dir (const file_entry_t * fe)
return S_ISDIR (fe->st.st_mode); return S_ISDIR (fe->st.st_mode);
} }
/* --------------------------------------------------------------------------------------------- */
inline static gboolean inline static gboolean
mc_fhl_is_link (const file_entry_t * fe) mc_fhl_is_link (const file_entry_t * fe)
{ {
@ -79,24 +87,32 @@ mc_fhl_is_link (const file_entry_t * fe)
return S_ISLNK (fe->st.st_mode); return S_ISLNK (fe->st.st_mode);
} }
/* --------------------------------------------------------------------------------------------- */
inline static gboolean inline static gboolean
mc_fhl_is_hlink (const file_entry_t * fe) mc_fhl_is_hlink (const file_entry_t * fe)
{ {
return (fe->st.st_nlink > 1); return (fe->st.st_nlink > 1);
} }
/* --------------------------------------------------------------------------------------------- */
inline static gboolean inline static gboolean
mc_fhl_is_link_to_dir (const file_entry_t * fe) mc_fhl_is_link_to_dir (const file_entry_t * fe)
{ {
return mc_fhl_is_link (fe) && fe->f.link_to_dir; return mc_fhl_is_link (fe) && fe->f.link_to_dir;
} }
/* --------------------------------------------------------------------------------------------- */
inline static gboolean inline static gboolean
mc_fhl_is_stale_link (const file_entry_t * fe) mc_fhl_is_stale_link (const file_entry_t * fe)
{ {
return mc_fhl_is_link (fe) ? fe->f.stale_link : !mc_fhl_is_file (fe); return mc_fhl_is_link (fe) ? fe->f.stale_link : !mc_fhl_is_file (fe);
} }
/* --------------------------------------------------------------------------------------------- */
inline static gboolean inline static gboolean
mc_fhl_is_device_char (const file_entry_t * fe) mc_fhl_is_device_char (const file_entry_t * fe)
{ {
@ -106,6 +122,8 @@ mc_fhl_is_device_char (const file_entry_t * fe)
return S_ISCHR (fe->st.st_mode); return S_ISCHR (fe->st.st_mode);
} }
/* --------------------------------------------------------------------------------------------- */
inline static gboolean inline static gboolean
mc_fhl_is_device_block (const file_entry_t * fe) mc_fhl_is_device_block (const file_entry_t * fe)
{ {
@ -115,6 +133,8 @@ mc_fhl_is_device_block (const file_entry_t * fe)
return S_ISBLK (fe->st.st_mode); return S_ISBLK (fe->st.st_mode);
} }
/* --------------------------------------------------------------------------------------------- */
inline static gboolean inline static gboolean
mc_fhl_is_special_socket (const file_entry_t * fe) mc_fhl_is_special_socket (const file_entry_t * fe)
{ {
@ -124,6 +144,8 @@ mc_fhl_is_special_socket (const file_entry_t * fe)
return S_ISSOCK (fe->st.st_mode); return S_ISSOCK (fe->st.st_mode);
} }
/* --------------------------------------------------------------------------------------------- */
inline static gboolean inline static gboolean
mc_fhl_is_special_fifo (const file_entry_t * fe) mc_fhl_is_special_fifo (const file_entry_t * fe)
{ {
@ -133,6 +155,8 @@ mc_fhl_is_special_fifo (const file_entry_t * fe)
return S_ISFIFO (fe->st.st_mode); return S_ISFIFO (fe->st.st_mode);
} }
/* --------------------------------------------------------------------------------------------- */
inline static gboolean inline static gboolean
mc_fhl_is_special_door (const file_entry_t * fe) mc_fhl_is_special_door (const file_entry_t * fe)
{ {
@ -142,6 +166,8 @@ mc_fhl_is_special_door (const file_entry_t * fe)
return S_ISDOOR (fe->st.st_mode); return S_ISDOOR (fe->st.st_mode);
} }
/* --------------------------------------------------------------------------------------------- */
inline static gboolean inline static gboolean
mc_fhl_is_special (const file_entry_t * fe) mc_fhl_is_special (const file_entry_t * fe)
{ {
@ -246,8 +272,6 @@ mc_fhl_get_color_regexp (const mc_fhl_filter_t * mc_filter, const mc_fhl_t * fhl
return -1; return -1;
} }
/* --------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
/*** public functions ****************************************************************************/ /*** public functions ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -32,6 +32,7 @@
#include "lib/strescape.h" #include "lib/strescape.h"
#include "lib/skin.h" #include "lib/skin.h"
#include "lib/util.h" /* exist_file() */ #include "lib/util.h" /* exist_file() */
#include "lib/filehighlight.h" #include "lib/filehighlight.h"
#include "internal.h" #include "internal.h"
@ -42,8 +43,11 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
@ -51,6 +55,7 @@ static void
mc_fhl_parse_fill_color_info (mc_fhl_filter_t * mc_filter, mc_fhl_t * fhl, const gchar * group_name) mc_fhl_parse_fill_color_info (mc_fhl_filter_t * mc_filter, mc_fhl_t * fhl, const gchar * group_name)
{ {
(void) fhl; (void) fhl;
mc_filter->color_pair_index = mc_skin_color_get ("filehighlight", group_name); mc_filter->color_pair_index = mc_skin_color_get ("filehighlight", group_name);
} }
@ -71,8 +76,9 @@ mc_fhl_parse_get_file_type_id (mc_fhl_t * fhl, const gchar * group_name)
NULL NULL
}; };
int i; int i;
gchar *param_type = mc_config_get_string (fhl->config, group_name, "type", ""); gchar *param_type;
param_type = mc_config_get_string (fhl->config, group_name, "type", "");
if (*param_type == '\0') if (*param_type == '\0')
{ {
g_free (param_type); g_free (param_type);
@ -80,11 +86,11 @@ mc_fhl_parse_get_file_type_id (mc_fhl_t * fhl, const gchar * group_name)
} }
for (i = 0; types[i] != NULL; i++) for (i = 0; types[i] != NULL; i++)
{
if (strcmp (types[i], param_type) == 0) if (strcmp (types[i], param_type) == 0)
break; break;
}
g_free (param_type); g_free (param_type);
if (types[i] == NULL) if (types[i] == NULL)
return FALSE; return FALSE;
@ -94,6 +100,7 @@ mc_fhl_parse_get_file_type_id (mc_fhl_t * fhl, const gchar * group_name)
mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name); mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name);
g_ptr_array_add (fhl->filters, (gpointer) mc_filter); g_ptr_array_add (fhl->filters, (gpointer) mc_filter);
return TRUE; return TRUE;
} }
@ -103,8 +110,9 @@ static gboolean
mc_fhl_parse_get_regexp (mc_fhl_t * fhl, const gchar * group_name) mc_fhl_parse_get_regexp (mc_fhl_t * fhl, const gchar * group_name)
{ {
mc_fhl_filter_t *mc_filter; mc_fhl_filter_t *mc_filter;
gchar *regexp = mc_config_get_string (fhl->config, group_name, "regexp", ""); gchar *regexp;
regexp = mc_config_get_string (fhl->config, group_name, "regexp", "");
if (*regexp == '\0') if (*regexp == '\0')
{ {
g_free (regexp); g_free (regexp);
@ -120,6 +128,7 @@ mc_fhl_parse_get_regexp (mc_fhl_t * fhl, const gchar * group_name)
mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name); mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name);
g_ptr_array_add (fhl->filters, (gpointer) mc_filter); g_ptr_array_add (fhl->filters, (gpointer) mc_filter);
g_free (regexp); g_free (regexp);
return TRUE; return TRUE;
} }
@ -151,6 +160,7 @@ mc_fhl_parse_get_extensions (mc_fhl_t * fhl, const gchar * group_name)
g_string_append (buf, esc_ext); g_string_append (buf, esc_ext);
g_free (esc_ext); g_free (esc_ext);
} }
g_strfreev (exts_orig); g_strfreev (exts_orig);
g_string_prepend (buf, ".*\\.("); g_string_prepend (buf, ".*\\.(");
@ -166,6 +176,7 @@ mc_fhl_parse_get_extensions (mc_fhl_t * fhl, const gchar * group_name)
mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name); mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name);
g_ptr_array_add (fhl->filters, (gpointer) mc_filter); g_ptr_array_add (fhl->filters, (gpointer) mc_filter);
g_string_free (buf, TRUE); g_string_free (buf, TRUE);
return TRUE; return TRUE;
} }
@ -183,6 +194,7 @@ mc_fhl_read_ini_file (mc_fhl_t * fhl, const gchar * filename)
return mc_config_read_file (fhl->config, filename, TRUE, FALSE); return mc_config_read_file (fhl->config, filename, TRUE, FALSE);
fhl->config = mc_config_init (filename, TRUE); fhl->config = mc_config_init (filename, TRUE);
return (fhl->config != NULL); return (fhl->config != NULL);
} }
@ -224,7 +236,7 @@ mc_fhl_parse_ini_file (mc_fhl_t * fhl)
gboolean ok; gboolean ok;
mc_fhl_array_free (fhl); mc_fhl_array_free (fhl);
fhl->filters = g_ptr_array_new (); fhl->filters = g_ptr_array_new_with_free_func (mc_fhl_filter_free);
orig_group_names = mc_config_get_groups (fhl->config, NULL); orig_group_names = mc_config_get_groups (fhl->config, NULL);
ok = (*orig_group_names != NULL); ok = (*orig_group_names != NULL);

View File

@ -51,6 +51,7 @@ typedef struct mc_fhl_filter_struct
/*** declarations of public functions ************************************************************/ /*** declarations of public functions ************************************************************/
void mc_fhl_filter_free (gpointer data);
void mc_fhl_array_free (mc_fhl_t * fhl); void mc_fhl_array_free (mc_fhl_t * fhl);
gboolean mc_fhl_init_from_standard_files (mc_fhl_t * fhl); gboolean mc_fhl_init_from_standard_files (mc_fhl_t * fhl);

View File

@ -51,6 +51,8 @@ typedef struct name_keymap_t
long val; long val;
} name_keymap_t; } name_keymap_t;
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static name_keymap_t command_names[] = { static name_keymap_t command_names[] = {
@ -382,6 +384,7 @@ static name_keymap_t command_names[] = {
static const size_t num_command_names = G_N_ELEMENTS (command_names) - 1; static const size_t num_command_names = G_N_ELEMENTS (command_names) - 1;
/* *INDENT-ON* */ /* *INDENT-ON* */
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -75,8 +75,11 @@ typedef struct
pid_t pid; pid_t pid;
} lock_s; } lock_s;
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
/** \fn static char * lock_build_name (void) /** \fn static char * lock_build_name (void)

View File

@ -49,11 +49,14 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static gboolean logging_initialized = FALSE; static gboolean logging_initialized = FALSE;
static gboolean logging_enabled = FALSE; static gboolean logging_enabled = FALSE;
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -39,6 +39,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -42,6 +42,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static gboolean xdg_vars_initialized = FALSE; static gboolean xdg_vars_initialized = FALSE;

View File

@ -33,6 +33,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -39,9 +39,13 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static GString * static GString *
mc_search__glob_translate_to_regex (const GString * astr) mc_search__glob_translate_to_regex (const GString * astr)

View File

@ -49,9 +49,13 @@ typedef enum
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static GString * static GString *
mc_search__hex_translate_to_regex (const GString * astr, mc_search_hex_parse_error_t * error_ptr, mc_search__hex_translate_to_regex (const GString * astr, mc_search_hex_parse_error_t * error_ptr,
@ -127,7 +131,9 @@ mc_search__hex_translate_to_regex (const GString * astr, mc_search_hex_parse_err
return buff; return buff;
} }
/* --------------------------------------------------------------------------------------------- */
/*** public functions ****************************************************************************/ /*** public functions ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */
void void
mc_search__cond_struct_new_init_hex (const char *charset, mc_search_t * lc_mc_search, mc_search__cond_struct_new_init_hex (const char *charset, mc_search_t * lc_mc_search,

View File

@ -41,11 +41,13 @@
/*** global variables ****************************************************************************/ /*** global variables ****************************************************************************/
/* *INDENT-OFF* */
const char *STR_E_NOTFOUND = N_("Search string not found"); const char *STR_E_NOTFOUND = N_("Search string not found");
const char *STR_E_UNKNOWN_TYPE = N_("Not implemented yet"); const char *STR_E_UNKNOWN_TYPE = N_("Not implemented yet");
const char *STR_E_RPL_NOT_EQ_TO_FOUND = const char *STR_E_RPL_NOT_EQ_TO_FOUND =
N_("Num of replace tokens not equal to num of found tokens"); N_("Num of replace tokens not equal to num of found tokens");
const char *STR_E_RPL_INVALID_TOKEN = N_("Invalid token number %d"); const char *STR_E_RPL_INVALID_TOKEN = N_("Invalid token number %d");
/* *INDENT-ON* */
/*** file scope macro definitions ****************************************************************/ /*** file scope macro definitions ****************************************************************/
@ -53,6 +55,8 @@ const char *STR_E_RPL_INVALID_TOKEN = N_("Invalid token number %d");
typedef gboolean (*case_conv_fn) (const char *ch, char **out, size_t * remain); typedef gboolean (*case_conv_fn) (const char *ch, char **out, size_t * remain);
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -38,6 +38,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -57,10 +57,13 @@ typedef enum
REPLACE_T_LOW_TRANSFORM = 8 REPLACE_T_LOW_TRANSFORM = 8
} replace_transform_type_t; } replace_transform_type_t;
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static gboolean static gboolean
mc_search__regex_str_append_if_special (GString * copy_to, const GString * regex_str, mc_search__regex_str_append_if_special (GString * copy_to, const GString * regex_str,

View File

@ -47,6 +47,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static const mc_search_type_str_t mc_search__list_types[] = { static const mc_search_type_str_t mc_search__list_types[] = {
@ -57,7 +59,9 @@ static const mc_search_type_str_t mc_search__list_types[] = {
{NULL, MC_SEARCH_T_INVALID} {NULL, MC_SEARCH_T_INVALID}
}; };
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static mc_search_cond_t * static mc_search_cond_t *
mc_search__cond_struct_new (mc_search_t * lc_mc_search, const GString * str, const char *charset) mc_search__cond_struct_new (mc_search_t * lc_mc_search, const GString * str, const char *charset)
@ -91,8 +95,10 @@ mc_search__cond_struct_new (mc_search_t * lc_mc_search, const GString * str, con
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
static void static void
mc_search__cond_struct_free (mc_search_cond_t * mc_search_cond) mc_search__cond_struct_free (gpointer data)
{ {
mc_search_cond_t *mc_search_cond = (mc_search_cond_t *) data;
if (mc_search_cond->upper != NULL) if (mc_search_cond->upper != NULL)
g_string_free (mc_search_cond->upper, TRUE); g_string_free (mc_search_cond->upper, TRUE);
@ -112,15 +118,6 @@ mc_search__cond_struct_free (mc_search_cond_t * mc_search_cond)
g_free (mc_search_cond); g_free (mc_search_cond);
} }
/* --------------------------------------------------------------------------------------------- */
static void
mc_search__conditions_free (GPtrArray * array)
{
g_ptr_array_foreach (array, (GFunc) mc_search__cond_struct_free, NULL);
g_ptr_array_free (array, TRUE);
}
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
/*** public functions ****************************************************************************/ /*** public functions ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
@ -187,7 +184,7 @@ mc_search_free (mc_search_t * lc_mc_search)
g_free (lc_mc_search->error_str); g_free (lc_mc_search->error_str);
if (lc_mc_search->prepared.conditions != NULL) if (lc_mc_search->prepared.conditions != NULL)
mc_search__conditions_free (lc_mc_search->prepared.conditions); g_ptr_array_free (lc_mc_search->prepared.conditions, TRUE);
#ifdef SEARCH_TYPE_GLIB #ifdef SEARCH_TYPE_GLIB
if (lc_mc_search->regex_match_info != NULL) if (lc_mc_search->regex_match_info != NULL)
@ -212,7 +209,7 @@ mc_search_prepare (mc_search_t * lc_mc_search)
if (lc_mc_search->prepared.conditions != NULL) if (lc_mc_search->prepared.conditions != NULL)
return lc_mc_search->prepared.result; return lc_mc_search->prepared.result;
ret = g_ptr_array_new (); ret = g_ptr_array_new_with_free_func (mc_search__cond_struct_free);
#ifdef HAVE_CHARSET #ifdef HAVE_CHARSET
if (!lc_mc_search->is_all_charsets) if (!lc_mc_search->is_all_charsets)
g_ptr_array_add (ret, g_ptr_array_add (ret,

View File

@ -46,8 +46,11 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -37,17 +37,19 @@
#include "global.h" #include "global.h"
#include "util.h" #include "util.h"
/*** global variables ****************************************************************************/ /*** global variables ****************************************************************************/
/*** file scope macro definitions ****************************************************************/ /*** file scope macro definitions ****************************************************************/
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static char rp_shell[PATH_MAX]; static char rp_shell[PATH_MAX];
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
/** /**

View File

@ -39,6 +39,8 @@
/*** file scope macro definitions ****************************************************************/ /*** file scope macro definitions ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
typedef struct mc_skin_colors_old_struct typedef struct mc_skin_colors_old_struct
@ -104,7 +106,9 @@ static const mc_skin_colors_old_t old_colors[] = {
static const size_t num_old_colors = G_N_ELEMENTS (old_colors); static const size_t num_old_colors = G_N_ELEMENTS (old_colors);
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static int static int
old_color_comparator (const void *p1, const void *p2) old_color_comparator (const void *p1, const void *p2)

View File

@ -41,9 +41,13 @@ int mc_skin_color__cache[MC_SKIN_COLOR_CACHE_COUNT];
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static mc_skin_color_t * static mc_skin_color_t *
mc_skin_color_get_from_hash (mc_skin_t * mc_skin, const gchar * group, const gchar * key) mc_skin_color_get_from_hash (mc_skin_t * mc_skin, const gchar * group, const gchar * key)

View File

@ -41,6 +41,8 @@ mc_skin_t mc_skin__default;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static gboolean mc_skin_is_init = FALSE; static gboolean mc_skin_is_init = FALSE;

View File

@ -40,10 +40,12 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
static void static void
@ -133,7 +135,7 @@ mc_skin_list (void)
{ {
GPtrArray *list; GPtrArray *list;
list = g_ptr_array_new (); list = g_ptr_array_new_with_free_func (g_free);
mc_skin_get_list_from_dir (mc_config_get_data_path (), list); mc_skin_get_list_from_dir (mc_config_get_data_path (), list);
mc_skin_get_list_from_dir (mc_global.sysconfig_dir, list); mc_skin_get_list_from_dir (mc_global.sysconfig_dir, list);
mc_skin_get_list_from_dir (mc_global.share_data_dir, list); mc_skin_get_list_from_dir (mc_global.share_data_dir, list);

View File

@ -36,9 +36,13 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static int static int
mc_skin_lines_load_frm (mc_skin_t * mc_skin, const char *name) mc_skin_lines_load_frm (mc_skin_t * mc_skin, const char *name)

View File

@ -30,6 +30,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -35,6 +35,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -35,15 +35,21 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static const char ESCAPE_SHELL_CHARS[] = " !#$%()&{}[]`?|<>;*\\\"'"; static const char ESCAPE_SHELL_CHARS[] = " !#$%()&{}[]`?|<>;*\\\"'";
static const char ESCAPE_REGEX_CHARS[] = "^!#$%()&{}[]`?|<>;*+.\\"; static const char ESCAPE_REGEX_CHARS[] = "^!#$%()&{}[]`?|<>;*+.\\";
static const char ESCAPE_GLOB_CHARS[] = "$*\\?"; static const char ESCAPE_GLOB_CHARS[] = "$*\\?";
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------- */
/*** public functions ****************************************************************************/ /*** public functions ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */
char * char *
strutils_escape (const char *src, gsize src_len, const char *escaped_chars, strutils_escape (const char *src, gsize src_len, const char *escaped_chars,
@ -95,6 +101,7 @@ strutils_escape (const char *src, gsize src_len, const char *escaped_chars,
} }
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
char * char *
strutils_unescape (const char *src, gsize src_len, const char *unescaped_chars, strutils_unescape (const char *src, gsize src_len, const char *unescaped_chars,
gboolean unescape_non_printable) gboolean unescape_non_printable)

View File

@ -44,6 +44,8 @@ GIConv str_cnv_not_convert = INVALID_CONV;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* names, that are used for utf-8 */ /* names, that are used for utf-8 */

View File

@ -56,6 +56,8 @@ static inline int char_##func_name(char c) \
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static const char replch = '?'; static const char replch = '?';

View File

@ -41,6 +41,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static const char replch = '?'; static const char replch = '?';

View File

@ -57,6 +57,8 @@ struct term_form
gboolean compose; gboolean compose;
}; };
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static const char replch[] = "\xEF\xBF\xBD"; static const char replch[] = "\xEF\xBF\xBD";

View File

@ -39,6 +39,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -53,6 +53,8 @@ char *user_old_timeformat = NULL; /* time format string for older dates */
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* /*
@ -62,10 +64,12 @@ char *user_old_timeformat = NULL; /* time format string for older dates */
*/ */
static size_t i18n_timelength_cache = MAX_I18NTIMELENGTH + 1; static size_t i18n_timelength_cache = MAX_I18NTIMELENGTH + 1;
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------- */
/*** public functions ****************************************************************************/ /*** public functions ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
/** /**
* Check strftime() results. Some systems (i.e. Solaris) have different * Check strftime() results. Some systems (i.e. Solaris) have different

View File

@ -52,6 +52,8 @@ typedef struct mc_tty_color_table_struct
int value; int value;
} mc_tty_color_table_t; } mc_tty_color_table_t;
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static mc_tty_color_table_t const color_table[] = { static mc_tty_color_table_t const color_table[] = {

View File

@ -48,10 +48,13 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static GHashTable *mc_tty_color_color_pair_attrs = NULL; static GHashTable *mc_tty_color_color_pair_attrs = NULL;
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -48,8 +48,11 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -57,10 +57,13 @@ gboolean use_colors = FALSE;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static GHashTable *mc_tty_color__hashtable = NULL; static GHashTable *mc_tty_color__hashtable = NULL;
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -275,6 +275,8 @@ typedef int (*ph_ov_f) (void *);
typedef int (*ph_pqc_f) (unsigned short, PhCursorInfo_t *); typedef int (*ph_pqc_f) (unsigned short, PhCursorInfo_t *);
#endif #endif
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static key_define_t mc_default_keys[] = { static key_define_t mc_default_keys[] = {

View File

@ -78,15 +78,16 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* ncurses supports cursor positions only within window */ /* ncurses supports cursor positions only within window */
/* We use our own cursor coordinates to support partially visible widgets */ /* We use our own cursor coordinates to support partially visible widgets */
static int mc_curs_row, mc_curs_col; static int mc_curs_row, mc_curs_col;
/*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
static void static void

View File

@ -74,6 +74,8 @@ int reset_hp_softkeys = 0;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* Various saved termios settings that we control here */ /* Various saved termios settings that we control here */

View File

@ -68,10 +68,13 @@ int mc_tty_frm[MC_TTY_FRM_MAX];
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static SIG_ATOMIC_VOLATILE_T got_interrupt = 0; static SIG_ATOMIC_VOLATILE_T got_interrupt = 0;
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -55,10 +55,13 @@ char *rmcup = NULL;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static gboolean rxvt_extensions = FALSE; static gboolean rxvt_extensions = FALSE;
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -57,6 +57,8 @@
typedef int (*mc_XErrorHandler_callback) (Display *, XErrorEvent *); typedef int (*mc_XErrorHandler_callback) (Display *, XErrorEvent *);
typedef int (*mc_XIOErrorHandler_callback) (Display *); typedef int (*mc_XIOErrorHandler_callback) (Display *);
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
#ifdef HAVE_GMODULE #ifdef HAVE_GMODULE
@ -66,6 +68,7 @@ static mc_XErrorHandler_callback (*func_XSetErrorHandler) (mc_XErrorHandler_call
static mc_XIOErrorHandler_callback (*func_XSetIOErrorHandler) (mc_XIOErrorHandler_callback); static mc_XIOErrorHandler_callback (*func_XSetIOErrorHandler) (mc_XIOErrorHandler_callback);
static Bool (*func_XQueryPointer) (Display *, Window, Window *, Window *, static Bool (*func_XQueryPointer) (Display *, Window, Window *, Window *,
int *, int *, int *, int *, unsigned int *); int *, int *, int *, int *, unsigned int *);
static GModule *x11_module; static GModule *x11_module;
#endif #endif
@ -79,6 +82,7 @@ static gboolean lost_connection = FALSE;
static jmp_buf x11_exception; /* FIXME: get a better name */ static jmp_buf x11_exception; /* FIXME: get a better name */
static gboolean longjmp_allowed = FALSE; static gboolean longjmp_allowed = FALSE;
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -72,6 +72,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -122,27 +122,6 @@ typedef struct
/*** structures declarations (and typedefs of structures)*****************************************/ /*** structures declarations (and typedefs of structures)*****************************************/
/* keys are set only during sorting */
typedef struct
{
/* File attributes */
GString *fname;
struct stat st;
/* key used for comparing names */
char *sort_key;
/* key used for comparing extensions */
char *second_sort_key;
/* Flags */
struct
{
unsigned int marked:1; /* File marked in pane window */
unsigned int link_to_dir:1; /* If this is a link, does it point to directory? */
unsigned int stale_link:1; /* If this is a symlink and points to Charon's land */
unsigned int dir_size_computed:1; /* Size of directory was computed with dirsizes_cmd */
} f;
} file_entry_t;
/*** global variables defined in .c file *********************************************************/ /*** global variables defined in .c file *********************************************************/
extern struct sigaction startup_handler; extern struct sigaction startup_handler;

View File

@ -103,6 +103,8 @@ typedef struct
struct sigaction stop; struct sigaction stop;
} my_system_sigactions_t; } my_system_sigactions_t;
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static int_cache uid_cache[UID_CACHE_SIZE]; static int_cache uid_cache[UID_CACHE_SIZE];

View File

@ -98,6 +98,8 @@ struct dirhandle
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -100,6 +100,8 @@ struct vfs_stamping
gint64 time; gint64 time;
}; };
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static GSList *stamps = NULL; static GSList *stamps = NULL;

View File

@ -71,8 +71,11 @@ extern struct vfs_dirent *mc_readdir_result;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
@ -250,6 +253,8 @@ int mc_##name inarg \
MC_NAMEOP (chmod, (const vfs_path_t *vpath, mode_t mode), (vpath, mode)) MC_NAMEOP (chmod, (const vfs_path_t *vpath, mode_t mode), (vpath, mode))
MC_NAMEOP (chown, (const vfs_path_t *vpath, uid_t owner, gid_t group), (vpath, owner, group)) MC_NAMEOP (chown, (const vfs_path_t *vpath, uid_t owner, gid_t group), (vpath, owner, group))
MC_NAMEOP (fgetflags, (const vfs_path_t *vpath, unsigned long *flags), (vpath, flags))
MC_NAMEOP (fsetflags, (const vfs_path_t *vpath, unsigned long flags), (vpath, flags))
MC_NAMEOP (utime, (const vfs_path_t *vpath, mc_timesbuf_t * times), (vpath, times)) MC_NAMEOP (utime, (const vfs_path_t *vpath, mc_timesbuf_t * times), (vpath, times))
MC_NAMEOP (readlink, (const vfs_path_t *vpath, char *buf, size_t bufsiz), (vpath, buf, bufsiz)) MC_NAMEOP (readlink, (const vfs_path_t *vpath, char *buf, size_t bufsiz), (vpath, buf, bufsiz))
MC_NAMEOP (unlink, (const vfs_path_t *vpath), (vpath)) MC_NAMEOP (unlink, (const vfs_path_t *vpath), (vpath))

View File

@ -43,8 +43,11 @@ SIG_ATOMIC_VOLATILE_T got_sigpipe = 0;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -54,6 +54,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static char *columns[MAXCOLS]; /* Points to the string in column n */ static char *columns[MAXCOLS]; /* Points to the string in column n */

View File

@ -54,8 +54,11 @@ extern GPtrArray *vfs__classes_list;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -95,6 +95,8 @@ struct vfs_openfile
void *fsinfo; void *fsinfo;
}; };
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/** They keep track of the current directory */ /** They keep track of the current directory */

View File

@ -169,6 +169,10 @@ typedef struct vfs_class
int (*chmod) (const vfs_path_t * vpath, mode_t mode); int (*chmod) (const vfs_path_t * vpath, mode_t mode);
int (*chown) (const vfs_path_t * vpath, uid_t owner, gid_t group); int (*chown) (const vfs_path_t * vpath, uid_t owner, gid_t group);
int (*fgetflags) (const vfs_path_t * vpath, unsigned long *flags);
int (*fsetflags) (const vfs_path_t * vpath, unsigned long flags);
int (*utime) (const vfs_path_t * vpath, mc_timesbuf_t * times); int (*utime) (const vfs_path_t * vpath, mc_timesbuf_t * times);
int (*readlink) (const vfs_path_t * vpath, char *buf, size_t size); int (*readlink) (const vfs_path_t * vpath, char *buf, size_t size);
@ -318,6 +322,8 @@ int mc_symlink (const vfs_path_t * vpath1, const vfs_path_t * vpath2);
int mc_rename (const vfs_path_t * vpath1, const vfs_path_t * vpath2); int mc_rename (const vfs_path_t * vpath1, const vfs_path_t * vpath2);
int mc_chmod (const vfs_path_t * vpath, mode_t mode); int mc_chmod (const vfs_path_t * vpath, mode_t mode);
int mc_chown (const vfs_path_t * vpath, uid_t owner, gid_t group); int mc_chown (const vfs_path_t * vpath, uid_t owner, gid_t group);
int mc_fgetflags (const vfs_path_t * vpath, unsigned long *flags);
int mc_fsetflags (const vfs_path_t * vpath, unsigned long flags);
int mc_chdir (const vfs_path_t * vpath); int mc_chdir (const vfs_path_t * vpath);
int mc_unlink (const vfs_path_t * vpath); int mc_unlink (const vfs_path_t * vpath);
int mc_ctl (int fd, int ctlop, void *arg); int mc_ctl (int fd, int ctlop, void *arg);

View File

@ -42,6 +42,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -52,8 +52,11 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
@ -281,7 +284,7 @@ buttonbar_set_label (WButtonBar * bb, int idx, const char *text, const global_ke
/* Find ButtonBar widget in the dialog */ /* Find ButtonBar widget in the dialog */
WButtonBar * WButtonBar *
find_buttonbar (const WDialog * h) buttonbar_find (const WDialog * h)
{ {
return BUTTONBAR (widget_find_by_type (CONST_WIDGET (h), buttonbar_callback)); return BUTTONBAR (widget_find_by_type (CONST_WIDGET (h), buttonbar_callback));
} }

View File

@ -39,7 +39,7 @@ typedef struct WButtonBar
WButtonBar *buttonbar_new (void); WButtonBar *buttonbar_new (void);
void buttonbar_set_label (WButtonBar * bb, int idx, const char *text, void buttonbar_set_label (WButtonBar * bb, int idx, const char *text,
const global_keymap_t * keymap, Widget * receiver); const global_keymap_t * keymap, Widget * receiver);
WButtonBar *find_buttonbar (const WDialog * h); WButtonBar *buttonbar_find (const WDialog * h);
/*** inline functions ****************************************************************************/ /*** inline functions ****************************************************************************/

View File

@ -47,9 +47,13 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static cb_ret_t static cb_ret_t
check_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data) check_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data)

View File

@ -46,6 +46,8 @@ WDialog *filemanager = NULL;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* List of dialogs: filemanagers, editors, viewers */ /* List of dialogs: filemanagers, editors, viewers */
@ -55,6 +57,7 @@ static GList *mc_current = NULL;
/* Is there any dialogs that we have to run after returning to the manager from another dialog */ /* Is there any dialogs that we have to run after returning to the manager from another dialog */
static gboolean dialog_switch_pending = FALSE; static gboolean dialog_switch_pending = FALSE;
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
@ -229,7 +232,7 @@ dialog_switch_list (void)
lines = MIN ((size_t) (LINES * 2 / 3), dlg_num); lines = MIN ((size_t) (LINES * 2 / 3), dlg_num);
cols = COLS * 2 / 3; cols = COLS * 2 / 3;
listbox = create_listbox_window (lines, cols, _("Screens"), "[Screen selector]"); listbox = listbox_window_new (lines, cols, _("Screens"), "[Screen selector]");
for (h = mc_dialogs; h != NULL; h = g_list_next (h)) for (h = mc_dialogs; h != NULL; h = g_list_next (h))
{ {
@ -246,7 +249,7 @@ dialog_switch_list (void)
g_free (title); g_free (title);
} }
selected = run_listbox_with_data (listbox, mc_current); selected = listbox_run_with_data (listbox, mc_current);
if (selected != NULL) if (selected != NULL)
dialog_switch_goto (selected); dialog_switch_goto (selected);
} }

View File

@ -75,6 +75,8 @@ const global_keymap_t *dialog_map = NULL;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
@ -334,6 +336,7 @@ dlg_default_destroy (Widget * w)
/* if some widgets have history, save all histories at one moment here */ /* if some widgets have history, save all histories at one moment here */
dlg_save_history (h); dlg_save_history (h);
group_default_callback (w, NULL, MSG_DESTROY, 0, NULL); group_default_callback (w, NULL, MSG_DESTROY, 0, NULL);
send_message (w, NULL, MSG_DESTROY, 0, NULL);
mc_event_group_del (h->event_group); mc_event_group_del (h->event_group);
g_free (h->event_group); g_free (h->event_group);
g_free (h); g_free (h);
@ -427,7 +430,7 @@ dlg_create (gboolean modal, int y1, int x1, int lines, int cols, widget_pos_flag
new_d->colors = colors; new_d->colors = colors;
new_d->help_ctx = help_ctx; new_d->help_ctx = help_ctx;
new_d->compact = compact; new_d->compact = compact;
new_d->data = NULL; new_d->data.p = NULL;
if (modal) if (modal)
{ {

View File

@ -69,10 +69,16 @@ struct WDialog
int ret_value; /* Result of dlg_run() */ int ret_value; /* Result of dlg_run() */
/* Internal variables */ /* Internal variables */
void *data; /* Data can be passed to dialog */
char *event_group; /* Name of event group for this dialog */ char *event_group; /* Name of event group for this dialog */
Widget *bg; /* WFrame or WBackground */ Widget *bg; /* WFrame or WBackground */
/* Data can be passed to dialog */
union
{
void *p;
int i;
} data;
dlg_shortcut_str get_shortcut; /* Shortcut string */ dlg_shortcut_str get_shortcut; /* Shortcut string */
dlg_title_str get_title; /* useless for modal dialogs */ dlg_title_str get_title; /* useless for modal dialogs */
}; };

View File

@ -45,6 +45,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -50,9 +50,13 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static cb_ret_t static cb_ret_t
gauge_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data) gauge_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data)

View File

@ -60,6 +60,8 @@ typedef struct
gboolean enable; gboolean enable;
} widget_state_info_t; } widget_state_info_t;
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -48,9 +48,13 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static cb_ret_t static cb_ret_t
groupbox_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data) groupbox_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data)

View File

@ -61,9 +61,13 @@ typedef struct
size_t max_width; size_t max_width;
} history_dlg_data; } history_dlg_data;
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static cb_ret_t static cb_ret_t
history_dlg_reposition (WDialog * dlg_head) history_dlg_reposition (WDialog * dlg_head)
@ -73,10 +77,10 @@ history_dlg_reposition (WDialog * dlg_head)
WRect r; WRect r;
/* guard checks */ /* guard checks */
if ((dlg_head == NULL) || (dlg_head->data == NULL)) if (dlg_head == NULL || dlg_head->data.p == NULL)
return MSG_NOT_HANDLED; return MSG_NOT_HANDLED;
data = (history_dlg_data *) dlg_head->data; data = (history_dlg_data *) dlg_head->data.p;
y = data->y; y = data->y;
he = data->count + 2; he = data->count + 2;
@ -227,7 +231,7 @@ history_show (history_descriptor_t * hd)
query_dlg = query_dlg =
dlg_create (TRUE, 0, 0, 4, 4, WPOS_KEEP_DEFAULT, TRUE, dialog_colors, history_dlg_callback, dlg_create (TRUE, 0, 0, 4, 4, WPOS_KEEP_DEFAULT, TRUE, dialog_colors, history_dlg_callback,
NULL, "[History-query]", _("History")); NULL, "[History-query]", _("History"));
query_dlg->data = &hist_data; query_dlg->data.p = &hist_data;
/* this call makes list stick to all sides of dialog, effectively make /* this call makes list stick to all sides of dialog, effectively make
it be resized with dialog */ it be resized with dialog */

View File

@ -50,6 +50,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -75,12 +75,15 @@ input_colors_t input_colors;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* Input widgets have a global kill ring */ /* Input widgets have a global kill ring */
/* Pointer to killed data */ /* Pointer to killed data */
static char *kill_buffer = NULL; static char *kill_buffer = NULL;
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -87,6 +87,11 @@ typedef struct
input_complete_t flags; input_complete_t flags;
} try_complete_automation_state_t; } try_complete_automation_state_t;
/*** forward declarations (file scope functions) *************************************************/
char **try_complete (char *text, int *lc_start, int *lc_end, input_complete_t flags);
void complete_engine_fill_completions (WInput * in);
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static char **hosts = NULL; static char **hosts = NULL;
@ -99,12 +104,10 @@ static int min_end;
static int start = 0; static int start = 0;
static int end = 0; static int end = 0;
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
char **try_complete (char *text, int *lc_start, int *lc_end, input_complete_t flags);
void complete_engine_fill_completions (WInput * in);
#ifdef DO_COMPLETION_DEBUG #ifdef DO_COMPLETION_DEBUG
/** /**
* Useful to print/debug completion flags * Useful to print/debug completion flags

View File

@ -52,9 +52,13 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static cb_ret_t static cb_ret_t
label_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data) label_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data)

View File

@ -56,7 +56,7 @@
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
Listbox * Listbox *
create_listbox_window_centered (int center_y, int center_x, int lines, int cols, listbox_window_centered_new (int center_y, int center_x, int lines, int cols,
const char *title, const char *help) const char *title, const char *help)
{ {
const int space = 4; const int space = 4;
@ -117,16 +117,16 @@ create_listbox_window_centered (int center_y, int center_x, int lines, int cols,
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
Listbox * Listbox *
create_listbox_window (int lines, int cols, const char *title, const char *help) listbox_window_new (int lines, int cols, const char *title, const char *help)
{ {
return create_listbox_window_centered (-1, -1, lines, cols, title, help); return listbox_window_centered_new (-1, -1, lines, cols, title, help);
} }
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
/** Returns the number of the item selected */ /** Returns the number of the item selected */
int int
run_listbox (Listbox * l) listbox_run (Listbox * l)
{ {
int val = -1; int val = -1;
@ -140,14 +140,14 @@ run_listbox (Listbox * l)
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
/** /**
* A variant of run_listbox() which is more convenient to use when we * A variant of listbox_run() which is more convenient to use when we
* need to select arbitrary 'data'. * need to select arbitrary 'data'.
* *
* @param select the item to select initially, by its 'data'. Optional. * @param select the item to select initially, by its 'data'. Optional.
* @return the 'data' of the item selected, or NULL if none selected. * @return the 'data' of the item selected, or NULL if none selected.
*/ */
void * void *
run_listbox_with_data (Listbox * l, const void *select) listbox_run_with_data (Listbox * l, const void *select)
{ {
void *val = NULL; void *val = NULL;

View File

@ -25,11 +25,11 @@ typedef struct
/*** declarations of public functions ************************************************************/ /*** declarations of public functions ************************************************************/
/* Listbox utility functions */ /* Listbox utility functions */
Listbox *create_listbox_window_centered (int center_y, int center_x, int lines, int cols, Listbox *listbox_window_centered_new (int center_y, int center_x, int lines, int cols,
const char *title, const char *help); const char *title, const char *help);
Listbox *create_listbox_window (int lines, int cols, const char *title, const char *help); Listbox *listbox_window_new (int lines, int cols, const char *title, const char *help);
int run_listbox (Listbox * l); int listbox_run (Listbox * l);
void *run_listbox_with_data (Listbox * l, const void *select); void *listbox_run_with_data (Listbox * l, const void *select);
/*** inline functions ****************************************************************************/ /*** inline functions ****************************************************************************/

View File

@ -55,9 +55,13 @@ const global_keymap_t *listbox_map = NULL;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static int static int
listbox_entry_cmp (const void *a, const void *b, void *user_data) listbox_entry_cmp (const void *a, const void *b, void *user_data)

View File

@ -73,8 +73,11 @@ struct menu_t
char *help_node; char *help_node;
}; };
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
@ -638,7 +641,7 @@ menubar_refresh (WMenuBar * menubar)
static inline void static inline void
menubar_free_menu (WMenuBar * menubar) menubar_free_menu (WMenuBar * menubar)
{ {
g_clear_list (&menubar->menu, (GDestroyNotify) destroy_menu); g_clear_list (&menubar->menu, (GDestroyNotify) menu_free);
} }
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
@ -880,7 +883,7 @@ menubar_mouse_callback (Widget * w, mouse_msg_t msg, mouse_event_t * event)
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
menu_entry_t * menu_entry_t *
menu_entry_create (const char *name, long command) menu_entry_new (const char *name, long command)
{ {
menu_entry_t *entry; menu_entry_t *entry;
@ -909,7 +912,7 @@ menu_entry_free (menu_entry_t * entry)
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
menu_t * menu_t *
create_menu (const char *name, GList * entries, const char *help_node) menu_new (const char *name, GList * entries, const char *help_node)
{ {
menu_t *menu; menu_t *menu;
@ -937,7 +940,7 @@ menu_set_name (menu_t * menu, const char *name)
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
void void
destroy_menu (menu_t * menu) menu_free (menu_t * menu)
{ {
hotkey_free (menu->text); hotkey_free (menu->text);
g_list_free_full (menu->entries, (GDestroyNotify) menu_entry_free); g_list_free_full (menu->entries, (GDestroyNotify) menu_entry_free);
@ -1050,7 +1053,7 @@ menubar_arrange (WMenuBar * menubar)
/** Find MenuBar widget in the dialog */ /** Find MenuBar widget in the dialog */
WMenuBar * WMenuBar *
find_menubar (const WDialog * h) menubar_find (const WDialog * h)
{ {
return MENUBAR (widget_find_by_type (CONST_WIDGET (h), menubar_callback)); return MENUBAR (widget_find_by_type (CONST_WIDGET (h), menubar_callback));
} }

View File

@ -13,7 +13,7 @@
#define MENUBAR(x) ((WMenuBar *)(x)) #define MENUBAR(x) ((WMenuBar *)(x))
#define menu_separator_create() NULL #define menu_separator_new() NULL
/*** enums ***************************************************************************************/ /*** enums ***************************************************************************************/
@ -42,19 +42,19 @@ extern const global_keymap_t *menu_map;
/*** declarations of public functions ************************************************************/ /*** declarations of public functions ************************************************************/
menu_entry_t *menu_entry_create (const char *name, long command); menu_entry_t *menu_entry_new (const char *name, long command);
void menu_entry_free (menu_entry_t * me); void menu_entry_free (menu_entry_t * me);
menu_t *create_menu (const char *name, GList * entries, const char *help_node); menu_t *menu_new (const char *name, GList * entries, const char *help_node);
void menu_set_name (menu_t * menu, const char *name); void menu_set_name (menu_t * menu, const char *name);
void destroy_menu (menu_t * menu); void menu_free (menu_t * menu);
WMenuBar *menubar_new (GList * menu); WMenuBar *menubar_new (GList * menu);
void menubar_set_menu (WMenuBar * menubar, GList * menu); void menubar_set_menu (WMenuBar * menubar, GList * menu);
void menubar_add_menu (WMenuBar * menubar, menu_t * menu); void menubar_add_menu (WMenuBar * menubar, menu_t * menu);
void menubar_arrange (WMenuBar * menubar); void menubar_arrange (WMenuBar * menubar);
WMenuBar *find_menubar (const WDialog * h); WMenuBar *menubar_find (const WDialog * h);
void menubar_activate (WMenuBar * menubar, gboolean dropped, int which); void menubar_activate (WMenuBar * menubar, gboolean dropped, int which);

View File

@ -40,6 +40,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -59,6 +59,8 @@ typedef struct
quick_widget_t *quick_widget; quick_widget_t *quick_widget;
} quick_widget_item_t; } quick_widget_item_t;
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -49,6 +49,8 @@ const global_keymap_t *radio_map = NULL;
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -51,6 +51,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* maximum value of used widget ID */ /* maximum value of used widget ID */

View File

@ -50,6 +50,8 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
static WDialog *last_query_dlg; static WDialog *last_query_dlg;
@ -712,7 +714,7 @@ simple_status_msg_init_cb (status_msg_t * sm)
wd_width = MAX (wd->rect.cols, b_width + 6); wd_width = MAX (wd->rect.cols, b_width + 6);
y = 2; y = 2;
ssm->label = label_new (y++, 3, ""); ssm->label = label_new (y++, 3, NULL);
group_add_widget_autopos (wg, ssm->label, WPOS_KEEP_TOP | WPOS_CENTER_HORZ, NULL); group_add_widget_autopos (wg, ssm->label, WPOS_KEEP_TOP | WPOS_CENTER_HORZ, NULL);
group_add_widget (wg, hline_new (y++, -1, -1)); group_add_widget (wg, hline_new (y++, -1, -1));
b = WIDGET (button_new (y++, 3, B_CANCEL, NORMAL_BUTTON, b_name, NULL)); b = WIDGET (button_new (y++, 3, B_CANCEL, NORMAL_BUTTON, b_name, NULL));

View File

@ -3,11 +3,12 @@ dnl
dnl posix_allocate() function detection dnl posix_allocate() function detection
dnl dnl
AC_DEFUN([gl_POSIX_FALLOCATE], [ AC_DEFUN([POSIX_FALLOCATE], [
dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it. dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it.
AC_LINK_IFELSE([AC_LANG_PROGRAM([[ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#define _XOPEN_SOURCE 600 #define _XOPEN_SOURCE 600
#include <stdlib.h> #include <stdlib.h>
#include <fcntl.h>
#if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7) #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7)
possibly broken posix_fallocate possibly broken posix_fallocate
#endif #endif
@ -115,7 +116,7 @@ AC_DEFUN([mc_GET_FS_INFO], [
fi fi
gl_FSTYPENAME gl_FSTYPENAME
gl_POSIX_FALLOCATE POSIX_FALLOCATE
mc_cu_PREREQ_STAT_PROG mc_cu_PREREQ_STAT_PROG
]) ])

View File

@ -45,8 +45,11 @@
/*** file scope type declarations ****************************************************************/ /*** file scope type declarations ****************************************************************/
/*** forward declarations (file scope functions) *************************************************/
/*** file scope variables ************************************************************************/ /*** file scope variables ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/*** file scope functions ************************************************************************/ /*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Midnight Commander\n" "Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n" "Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
"POT-Creation-Date: 2023-01-29 11:16+0300\n" "POT-Creation-Date: 2023-03-19 20:39+0300\n"
"PO-Revision-Date: 2010-12-29 10:19+0000\n" "PO-Revision-Date: 2010-12-29 10:19+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Afrikaans (http://www.transifex.com/mc/mc/language/af/)\n" "Language-Team: Afrikaans (http://www.transifex.com/mc/mc/language/af/)\n"
@ -2156,9 +2156,6 @@ msgid ""
"%s" "%s"
msgstr "" msgstr ""
msgid "Cannot change attributes on non-local filesystems"
msgstr ""
#, c-format #, c-format
msgid "" msgid ""
"Cannot get flags of \"%s\"\n" "Cannot get flags of \"%s\"\n"
@ -3313,9 +3310,6 @@ msgstr ""
msgid "Links: %d" msgid "Links: %d"
msgstr "" msgstr ""
msgid "Attributes: not supported"
msgstr ""
#, c-format #, c-format
msgid "Attributes: %s" msgid "Attributes: %s"
msgstr "" msgstr ""
@ -4216,18 +4210,18 @@ msgstr ""
msgid "sftp: Listing done." msgid "sftp: Listing done."
msgstr "" msgstr ""
#, c-format
msgid ""
"Cannot open tar archive\n"
"%s"
msgstr ""
msgid "Inconsistent tar archive" msgid "Inconsistent tar archive"
msgstr "" msgstr ""
msgid "Unexpected EOF on archive file" msgid "Unexpected EOF on archive file"
msgstr "" msgstr ""
#, c-format
msgid ""
"Cannot open tar archive\n"
"%s"
msgstr ""
#, c-format #, c-format
msgid "" msgid ""
"%s\n" "%s\n"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Midnight Commander\n" "Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n" "Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
"POT-Creation-Date: 2023-01-29 11:16+0300\n" "POT-Creation-Date: 2023-03-19 20:39+0300\n"
"PO-Revision-Date: 2010-12-29 10:19+0000\n" "PO-Revision-Date: 2010-12-29 10:19+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Arabic (http://www.transifex.com/mc/mc/language/ar/)\n" "Language-Team: Arabic (http://www.transifex.com/mc/mc/language/ar/)\n"
@ -2157,9 +2157,6 @@ msgid ""
"%s" "%s"
msgstr "" msgstr ""
msgid "Cannot change attributes on non-local filesystems"
msgstr ""
#, c-format #, c-format
msgid "" msgid ""
"Cannot get flags of \"%s\"\n" "Cannot get flags of \"%s\"\n"
@ -3326,9 +3323,6 @@ msgstr ""
msgid "Links: %d" msgid "Links: %d"
msgstr "" msgstr ""
msgid "Attributes: not supported"
msgstr ""
#, c-format #, c-format
msgid "Attributes: %s" msgid "Attributes: %s"
msgstr "" msgstr ""
@ -4233,18 +4227,18 @@ msgstr ""
msgid "sftp: Listing done." msgid "sftp: Listing done."
msgstr "" msgstr ""
#, c-format
msgid ""
"Cannot open tar archive\n"
"%s"
msgstr ""
msgid "Inconsistent tar archive" msgid "Inconsistent tar archive"
msgstr "" msgstr ""
msgid "Unexpected EOF on archive file" msgid "Unexpected EOF on archive file"
msgstr "" msgstr ""
#, c-format
msgid ""
"Cannot open tar archive\n"
"%s"
msgstr ""
#, c-format #, c-format
msgid "" msgid ""
"%s\n" "%s\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Midnight Commander\n" "Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n" "Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
"POT-Creation-Date: 2023-01-29 11:16+0300\n" "POT-Creation-Date: 2023-03-19 20:39+0300\n"
"PO-Revision-Date: 2010-12-29 10:19+0000\n" "PO-Revision-Date: 2010-12-29 10:19+0000\n"
"Last-Translator: Slava Zanko <slavazanko@gmail.com>, 2011\n" "Last-Translator: Slava Zanko <slavazanko@gmail.com>, 2011\n"
"Language-Team: Azerbaijani (http://www.transifex.com/mc/mc/language/az/)\n" "Language-Team: Azerbaijani (http://www.transifex.com/mc/mc/language/az/)\n"
@ -2159,9 +2159,6 @@ msgid ""
"%s" "%s"
msgstr "" msgstr ""
msgid "Cannot change attributes on non-local filesystems"
msgstr ""
#, c-format #, c-format
msgid "" msgid ""
"Cannot get flags of \"%s\"\n" "Cannot get flags of \"%s\"\n"
@ -3316,9 +3313,6 @@ msgstr ""
msgid "Links: %d" msgid "Links: %d"
msgstr "" msgstr ""
msgid "Attributes: not supported"
msgstr ""
#, c-format #, c-format
msgid "Attributes: %s" msgid "Attributes: %s"
msgstr "" msgstr ""
@ -4254,6 +4248,12 @@ msgstr ""
msgid "sftp: Listing done." msgid "sftp: Listing done."
msgstr "" msgstr ""
msgid "Inconsistent tar archive"
msgstr "Tar arxivi düzgün deyildir"
msgid "Unexpected EOF on archive file"
msgstr "Arxiv faylında gözlənilməz EOF yaxalandı"
#, c-format #, c-format
msgid "" msgid ""
"Cannot open tar archive\n" "Cannot open tar archive\n"
@ -4262,12 +4262,6 @@ msgstr ""
"%s\n" "%s\n"
"tar arxivini aça bilmədim" "tar arxivini aça bilmədim"
msgid "Inconsistent tar archive"
msgstr "Tar arxivi düzgün deyildir"
msgid "Unexpected EOF on archive file"
msgstr "Arxiv faylında gözlənilməz EOF yaxalandı"
#, c-format #, c-format
msgid "" msgid ""
"%s\n" "%s\n"

View File

@ -14,7 +14,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Midnight Commander\n" "Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n" "Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
"POT-Creation-Date: 2023-01-29 11:16+0300\n" "POT-Creation-Date: 2023-03-19 20:39+0300\n"
"PO-Revision-Date: 2010-12-29 10:19+0000\n" "PO-Revision-Date: 2010-12-29 10:19+0000\n"
"Last-Translator: Pavel Suravezhkin, 2022\n" "Last-Translator: Pavel Suravezhkin, 2022\n"
"Language-Team: Belarusian (http://www.transifex.com/mc/mc/language/be/)\n" "Language-Team: Belarusian (http://www.transifex.com/mc/mc/language/be/)\n"
@ -2273,9 +2273,6 @@ msgstr ""
"Немагчыма chattr \"%s\"\n" "Немагчыма chattr \"%s\"\n"
"%s" "%s"
msgid "Cannot change attributes on non-local filesystems"
msgstr "Немагчыма змяніць атрыбуты ў нелакальных файлавых сістэмах"
#, c-format #, c-format
msgid "" msgid ""
"Cannot get flags of \"%s\"\n" "Cannot get flags of \"%s\"\n"
@ -3523,9 +3520,6 @@ msgstr "Уладальнік: %s/%s"
msgid "Links: %d" msgid "Links: %d"
msgstr "Спасылкі: %d" msgstr "Спасылкі: %d"
msgid "Attributes: not supported"
msgstr "Атрыбуты: не падтрымліваецца"
#, c-format #, c-format
msgid "Attributes: %s" msgid "Attributes: %s"
msgstr "Атрыбуты: %s" msgstr "Атрыбуты: %s"
@ -4508,6 +4502,12 @@ msgstr "sftp: чытаецца спіс (спыніць — «Ctrl-G»)… %s"
msgid "sftp: Listing done." msgid "sftp: Listing done."
msgstr "sftp: спіс прачытаны." msgstr "sftp: спіс прачытаны."
msgid "Inconsistent tar archive"
msgstr "Несумяшчальны архіў tar"
msgid "Unexpected EOF on archive file"
msgstr "Нечаканы канец файла архіва"
#, c-format #, c-format
msgid "" msgid ""
"Cannot open tar archive\n" "Cannot open tar archive\n"
@ -4516,12 +4516,6 @@ msgstr ""
"Немагчыма адкрыць архіў tar\n" "Немагчыма адкрыць архіў tar\n"
"%s" "%s"
msgid "Inconsistent tar archive"
msgstr "Несумяшчальны архіў tar"
msgid "Unexpected EOF on archive file"
msgstr "Нечаканы канец файла архіва"
#, c-format #, c-format
msgid "" msgid ""
"%s\n" "%s\n"
@ -4722,6 +4716,12 @@ msgstr "Працягваць ад пачатку?"
msgid "Cannot fetch a local copy of /ftp://some.host/editme.txt" msgid "Cannot fetch a local copy of /ftp://some.host/editme.txt"
msgstr "Немагчыма атрымаць лакальную копію /ftp://some.host/editme.txt" msgstr "Немагчыма атрымаць лакальную копію /ftp://some.host/editme.txt"
#~ msgid "Cannot change attributes on non-local filesystems"
#~ msgstr "Немагчыма змяніць атрыбуты ў нелакальных файлавых сістэмах"
#~ msgid "Attributes: not supported"
#~ msgstr "Атрыбуты: не падтрымліваецца"
#, c-format #, c-format
#~ msgid " %s%s file error" #~ msgid " %s%s file error"
#~ msgstr " Памылка ў файле %s%s" #~ msgstr " Памылка ў файле %s%s"

View File

@ -13,7 +13,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Midnight Commander\n" "Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n" "Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
"POT-Creation-Date: 2023-01-29 11:16+0300\n" "POT-Creation-Date: 2023-03-19 20:39+0300\n"
"PO-Revision-Date: 2010-12-29 10:19+0000\n" "PO-Revision-Date: 2010-12-29 10:19+0000\n"
"Last-Translator: Alexander Shopov <ash@kambanaria.org>, 2022\n" "Last-Translator: Alexander Shopov <ash@kambanaria.org>, 2022\n"
"Language-Team: Bulgarian (http://www.transifex.com/mc/mc/language/bg/)\n" "Language-Team: Bulgarian (http://www.transifex.com/mc/mc/language/bg/)\n"
@ -2272,9 +2272,6 @@ msgstr ""
"Неуспешно изпълнение на chattr „%s“\n" "Неуспешно изпълнение на chattr „%s“\n"
"%s" "%s"
msgid "Cannot change attributes on non-local filesystems"
msgstr "Не може да се сменят атрибути на отдалечени ФС"
#, c-format #, c-format
msgid "" msgid ""
"Cannot get flags of \"%s\"\n" "Cannot get flags of \"%s\"\n"
@ -3518,9 +3515,6 @@ msgstr "Притежател: %s/%s"
msgid "Links: %d" msgid "Links: %d"
msgstr "Връзки: %d" msgstr "Връзки: %d"
msgid "Attributes: not supported"
msgstr "Атрибути: не се поддържат"
#, c-format #, c-format
msgid "Attributes: %s" msgid "Attributes: %s"
msgstr "Атрибути: %s" msgstr "Атрибути: %s"
@ -4502,6 +4496,12 @@ msgstr "sftp: (прекъсване с Ctrl-G) Извеждане… %s"
msgid "sftp: Listing done." msgid "sftp: Listing done."
msgstr "sftp: Извеждането приключи." msgstr "sftp: Извеждането приключи."
msgid "Inconsistent tar archive"
msgstr "сгрешен архив tar"
msgid "Unexpected EOF on archive file"
msgstr "Неочакван край на архива"
#, c-format #, c-format
msgid "" msgid ""
"Cannot open tar archive\n" "Cannot open tar archive\n"
@ -4510,12 +4510,6 @@ msgstr ""
"Не може да се отвори архивът tar\n" "Не може да се отвори архивът tar\n"
"%s" "%s"
msgid "Inconsistent tar archive"
msgstr "сгрешен архив tar"
msgid "Unexpected EOF on archive file"
msgstr "Неочакван край на архива"
#, c-format #, c-format
msgid "" msgid ""
"%s\n" "%s\n"
@ -4716,6 +4710,12 @@ msgstr "Да се продължи ли от началото?"
msgid "Cannot fetch a local copy of /ftp://some.host/editme.txt" msgid "Cannot fetch a local copy of /ftp://some.host/editme.txt"
msgstr "Не може да се изтегли локално копие на „/ftp://some.host/editme.txt“" msgstr "Не може да се изтегли локално копие на „/ftp://some.host/editme.txt“"
#~ msgid "Cannot change attributes on non-local filesystems"
#~ msgstr "Не може да се сменят атрибути на отдалечени ФС"
#~ msgid "Attributes: not supported"
#~ msgstr "Атрибути: не се поддържат"
#, c-format #, c-format
#~ msgid " %s%s file error" #~ msgid " %s%s file error"
#~ msgstr " %s%s файлова грешка" #~ msgstr " %s%s файлова грешка"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Midnight Commander\n" "Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n" "Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
"POT-Creation-Date: 2023-01-29 11:16+0300\n" "POT-Creation-Date: 2023-03-19 20:39+0300\n"
"PO-Revision-Date: 2010-12-29 10:19+0000\n" "PO-Revision-Date: 2010-12-29 10:19+0000\n"
"Last-Translator: Irriep Nala Novram <allannkorh@yahoo.fr>, 2017-2018\n" "Last-Translator: Irriep Nala Novram <allannkorh@yahoo.fr>, 2017-2018\n"
"Language-Team: Breton (http://www.transifex.com/mc/mc/language/br/)\n" "Language-Team: Breton (http://www.transifex.com/mc/mc/language/br/)\n"
@ -2161,9 +2161,6 @@ msgid ""
"%s" "%s"
msgstr "" msgstr ""
msgid "Cannot change attributes on non-local filesystems"
msgstr ""
#, c-format #, c-format
msgid "" msgid ""
"Cannot get flags of \"%s\"\n" "Cannot get flags of \"%s\"\n"
@ -3327,9 +3324,6 @@ msgstr ""
msgid "Links: %d" msgid "Links: %d"
msgstr "" msgstr ""
msgid "Attributes: not supported"
msgstr ""
#, c-format #, c-format
msgid "Attributes: %s" msgid "Attributes: %s"
msgstr "" msgstr ""
@ -4233,18 +4227,18 @@ msgstr ""
msgid "sftp: Listing done." msgid "sftp: Listing done."
msgstr "" msgstr ""
#, c-format
msgid ""
"Cannot open tar archive\n"
"%s"
msgstr ""
msgid "Inconsistent tar archive" msgid "Inconsistent tar archive"
msgstr "" msgstr ""
msgid "Unexpected EOF on archive file" msgid "Unexpected EOF on archive file"
msgstr "" msgstr ""
#, c-format
msgid ""
"Cannot open tar archive\n"
"%s"
msgstr ""
#, c-format #, c-format
msgid "" msgid ""
"%s\n" "%s\n"

View File

@ -16,7 +16,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Midnight Commander\n" "Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n" "Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
"POT-Creation-Date: 2023-01-29 11:16+0300\n" "POT-Creation-Date: 2023-03-19 20:39+0300\n"
"PO-Revision-Date: 2010-12-29 10:19+0000\n" "PO-Revision-Date: 2010-12-29 10:19+0000\n"
"Last-Translator: Antoni Bella Pérez <antonibella5@yahoo.com>, 2017-2022\n" "Last-Translator: Antoni Bella Pérez <antonibella5@yahoo.com>, 2017-2022\n"
"Language-Team: Catalan (http://www.transifex.com/mc/mc/language/ca/)\n" "Language-Team: Catalan (http://www.transifex.com/mc/mc/language/ca/)\n"
@ -2283,9 +2283,6 @@ msgstr ""
"No s'ha pogut fer chattr «%s»\n" "No s'ha pogut fer chattr «%s»\n"
"%s" "%s"
msgid "Cannot change attributes on non-local filesystems"
msgstr "No es poden canviar els atributs en sistemes de fitxers no locals"
#, c-format #, c-format
msgid "" msgid ""
"Cannot get flags of \"%s\"\n" "Cannot get flags of \"%s\"\n"
@ -3529,9 +3526,6 @@ msgstr "Propietari: %s/%s"
msgid "Links: %d" msgid "Links: %d"
msgstr "Enllaços: %d" msgstr "Enllaços: %d"
msgid "Attributes: not supported"
msgstr "Atributs: no admesos"
#, c-format #, c-format
msgid "Attributes: %s" msgid "Attributes: %s"
msgstr "Atributs: %s" msgstr "Atributs: %s"
@ -4523,6 +4517,12 @@ msgstr "sftp: (Ctrl-G per a cancel·lar) s'està llistant... %s"
msgid "sftp: Listing done." msgid "sftp: Listing done."
msgstr "sftp: el llistat s'ha completat." msgstr "sftp: el llistat s'ha completat."
msgid "Inconsistent tar archive"
msgstr "L'arxiu TAR no és coherent"
msgid "Unexpected EOF on archive file"
msgstr "Fi de fitxer inesperat al fitxer d'arxiu"
#, c-format #, c-format
msgid "" msgid ""
"Cannot open tar archive\n" "Cannot open tar archive\n"
@ -4531,12 +4531,6 @@ msgstr ""
"No s'ha pogut obrir l'arxiu TAR\n" "No s'ha pogut obrir l'arxiu TAR\n"
"%s" "%s"
msgid "Inconsistent tar archive"
msgstr "L'arxiu TAR no és coherent"
msgid "Unexpected EOF on archive file"
msgstr "Fi de fitxer inesperat al fitxer d'arxiu"
#, c-format #, c-format
msgid "" msgid ""
"%s\n" "%s\n"
@ -4739,6 +4733,12 @@ msgid "Cannot fetch a local copy of /ftp://some.host/editme.txt"
msgstr "" msgstr ""
"No s'ha pogut obtenir una còpia local de /ftp://algun.amfitrió/editam.txt" "No s'ha pogut obtenir una còpia local de /ftp://algun.amfitrió/editam.txt"
#~ msgid "Cannot change attributes on non-local filesystems"
#~ msgstr "No es poden canviar els atributs en sistemes de fitxers no locals"
#~ msgid "Attributes: not supported"
#~ msgstr "Atributs: no admesos"
#, c-format #, c-format
#~ msgid " %s%s file error" #~ msgid " %s%s file error"
#~ msgstr " error en el fitxer %s%s" #~ msgstr " error en el fitxer %s%s"

View File

@ -14,7 +14,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Midnight Commander\n" "Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n" "Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
"POT-Creation-Date: 2023-01-29 11:16+0300\n" "POT-Creation-Date: 2023-03-19 20:39+0300\n"
"PO-Revision-Date: 2010-12-29 10:19+0000\n" "PO-Revision-Date: 2010-12-29 10:19+0000\n"
"Last-Translator: Pavel Borecki <pavel.borecki@gmail.com>, 2017-2022\n" "Last-Translator: Pavel Borecki <pavel.borecki@gmail.com>, 2017-2022\n"
"Language-Team: Czech (http://www.transifex.com/mc/mc/language/cs/)\n" "Language-Team: Czech (http://www.transifex.com/mc/mc/language/cs/)\n"
@ -2272,9 +2272,6 @@ msgstr ""
"Není možné chattr „%s“\n" "Není možné chattr „%s“\n"
"%s" "%s"
msgid "Cannot change attributes on non-local filesystems"
msgstr "Není možné měnit atributy souborových systémů, které nejsou lokální"
#, c-format #, c-format
msgid "" msgid ""
"Cannot get flags of \"%s\"\n" "Cannot get flags of \"%s\"\n"
@ -3533,9 +3530,6 @@ msgstr "Vlastník: %s/%s"
msgid "Links: %d" msgid "Links: %d"
msgstr "Odkazy: %d" msgstr "Odkazy: %d"
msgid "Attributes: not supported"
msgstr "Atributy: nepodporováno"
#, c-format #, c-format
msgid "Attributes: %s" msgid "Attributes: %s"
msgstr "Atributy: %s" msgstr "Atributy: %s"
@ -4522,6 +4516,12 @@ msgstr "sftp: (přerušení CTRL+G) vypisování… %s"
msgid "sftp: Listing done." msgid "sftp: Listing done."
msgstr "sftp: Vypsání dokončeno." msgstr "sftp: Vypsání dokončeno."
msgid "Inconsistent tar archive"
msgstr "Nekonzistentní archiv .tar"
msgid "Unexpected EOF on archive file"
msgstr "Archivní soubor neočekávaně končí"
#, c-format #, c-format
msgid "" msgid ""
"Cannot open tar archive\n" "Cannot open tar archive\n"
@ -4530,12 +4530,6 @@ msgstr ""
".tar archiv se nedaří otevřít\n" ".tar archiv se nedaří otevřít\n"
"%s" "%s"
msgid "Inconsistent tar archive"
msgstr "Nekonzistentní archiv .tar"
msgid "Unexpected EOF on archive file"
msgstr "Archivní soubor neočekávaně končí"
#, c-format #, c-format
msgid "" msgid ""
"%s\n" "%s\n"
@ -4736,6 +4730,12 @@ msgstr "Pokračovat od začátku?"
msgid "Cannot fetch a local copy of /ftp://some.host/editme.txt" msgid "Cannot fetch a local copy of /ftp://some.host/editme.txt"
msgstr "Nedaří získat místní kopii souboru /ftp://some.host/editme.txt" msgstr "Nedaří získat místní kopii souboru /ftp://some.host/editme.txt"
#~ msgid "Cannot change attributes on non-local filesystems"
#~ msgstr "Není možné měnit atributy souborových systémů, které nejsou lokální"
#~ msgid "Attributes: not supported"
#~ msgstr "Atributy: nepodporováno"
#, c-format #, c-format
#~ msgid " %s%s file error" #~ msgid " %s%s file error"
#~ msgstr " %s%s chyba souboru" #~ msgstr " %s%s chyba souboru"

View File

@ -13,7 +13,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Midnight Commander\n" "Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n" "Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
"POT-Creation-Date: 2023-01-29 11:16+0300\n" "POT-Creation-Date: 2023-03-19 20:39+0300\n"
"PO-Revision-Date: 2010-12-29 10:19+0000\n" "PO-Revision-Date: 2010-12-29 10:19+0000\n"
"Last-Translator: scootergrisen, 2018-2020\n" "Last-Translator: scootergrisen, 2018-2020\n"
"Language-Team: Danish (http://www.transifex.com/mc/mc/language/da/)\n" "Language-Team: Danish (http://www.transifex.com/mc/mc/language/da/)\n"
@ -2267,9 +2267,6 @@ msgstr ""
"Kan ikke chattr \"%s\"\n" "Kan ikke chattr \"%s\"\n"
"%s" "%s"
msgid "Cannot change attributes on non-local filesystems"
msgstr "Kan ikke ændre attributter på filsystemer som ikke er lokale"
#, c-format #, c-format
msgid "" msgid ""
"Cannot get flags of \"%s\"\n" "Cannot get flags of \"%s\"\n"
@ -3513,9 +3510,6 @@ msgstr "Ejer: %s/%s"
msgid "Links: %d" msgid "Links: %d"
msgstr "Henvisninger: %d" msgstr "Henvisninger: %d"
msgid "Attributes: not supported"
msgstr "Attributter: understøttes ikke"
#, c-format #, c-format
msgid "Attributes: %s" msgid "Attributes: %s"
msgstr "Attributter: %s" msgstr "Attributter: %s"
@ -4469,6 +4463,12 @@ msgstr "sftp: (Ctrl-G break) Liste... %s"
msgid "sftp: Listing done." msgid "sftp: Listing done."
msgstr "sftp: Liste færdig." msgstr "sftp: Liste færdig."
msgid "Inconsistent tar archive"
msgstr "Inkonsistent tar-arkiv"
msgid "Unexpected EOF on archive file"
msgstr "Uventet EOF i arkivfilen"
#, c-format #, c-format
msgid "" msgid ""
"Cannot open tar archive\n" "Cannot open tar archive\n"
@ -4477,12 +4477,6 @@ msgstr ""
"Kunne ikke åbne tar-arkiv\n" "Kunne ikke åbne tar-arkiv\n"
"%s" "%s"
msgid "Inconsistent tar archive"
msgstr "Inkonsistent tar-arkiv"
msgid "Unexpected EOF on archive file"
msgstr "Uventet EOF i arkivfilen"
#, c-format #, c-format
msgid "" msgid ""
"%s\n" "%s\n"
@ -4683,6 +4677,12 @@ msgstr "Fortsæt fra begyndelsen?"
msgid "Cannot fetch a local copy of /ftp://some.host/editme.txt" msgid "Cannot fetch a local copy of /ftp://some.host/editme.txt"
msgstr "Kan ikke hente en lokal kopi af /ftp://en.vært/editme.txt" msgstr "Kan ikke hente en lokal kopi af /ftp://en.vært/editme.txt"
#~ msgid "Cannot change attributes on non-local filesystems"
#~ msgstr "Kan ikke ændre attributter på filsystemer som ikke er lokale"
#~ msgid "Attributes: not supported"
#~ msgstr "Attributter: understøttes ikke"
#, c-format #, c-format
#~ msgid " %s%s file error" #~ msgid " %s%s file error"
#~ msgstr " %s%s-filfejl" #~ msgstr " %s%s-filfejl"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Midnight Commander\n" "Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n" "Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
"POT-Creation-Date: 2023-01-29 11:16+0300\n" "POT-Creation-Date: 2023-03-19 20:39+0300\n"
"PO-Revision-Date: 2010-12-29 10:19+0000\n" "PO-Revision-Date: 2010-12-29 10:19+0000\n"
"Last-Translator: Ettore Atalan <atalanttore@googlemail.com>, 2015-2022\n" "Last-Translator: Ettore Atalan <atalanttore@googlemail.com>, 2015-2022\n"
"Language-Team: German (http://www.transifex.com/mc/mc/language/de/)\n" "Language-Team: German (http://www.transifex.com/mc/mc/language/de/)\n"
@ -2282,9 +2282,6 @@ msgstr ""
"Kann chattr für\"%s\" nicht durchführen\n" "Kann chattr für\"%s\" nicht durchführen\n"
"%s" "%s"
msgid "Cannot change attributes on non-local filesystems"
msgstr "Kann Attribute auf nicht-lokalen Dateisystemen nicht ändern"
#, c-format #, c-format
msgid "" msgid ""
"Cannot get flags of \"%s\"\n" "Cannot get flags of \"%s\"\n"
@ -3528,9 +3525,6 @@ msgstr "Eigentümer: %s/%s"
msgid "Links: %d" msgid "Links: %d"
msgstr "Links: %d" msgstr "Links: %d"
msgid "Attributes: not supported"
msgstr "Attribute: nicht unterstützt"
#, c-format #, c-format
msgid "Attributes: %s" msgid "Attributes: %s"
msgstr "Attribute: %s" msgstr "Attribute: %s"
@ -4504,6 +4498,12 @@ msgstr "sftp: Auflisten... %s (Strg+G zum Unterbrechen)"
msgid "sftp: Listing done." msgid "sftp: Listing done."
msgstr "sftp: Auflisten beendet." msgstr "sftp: Auflisten beendet."
msgid "Inconsistent tar archive"
msgstr "Inkonsistentes tar-Archiv"
msgid "Unexpected EOF on archive file"
msgstr "Unerwartetes Dateiende in Archivdatei"
#, c-format #, c-format
msgid "" msgid ""
"Cannot open tar archive\n" "Cannot open tar archive\n"
@ -4512,12 +4512,6 @@ msgstr ""
"Kann tar-Archiv nicht öffnen\n" "Kann tar-Archiv nicht öffnen\n"
"%s" "%s"
msgid "Inconsistent tar archive"
msgstr "Inkonsistentes tar-Archiv"
msgid "Unexpected EOF on archive file"
msgstr "Unerwartetes Dateiende in Archivdatei"
#, c-format #, c-format
msgid "" msgid ""
"%s\n" "%s\n"
@ -4718,6 +4712,12 @@ msgstr "Am Anfang fortsetzen?"
msgid "Cannot fetch a local copy of /ftp://some.host/editme.txt" msgid "Cannot fetch a local copy of /ftp://some.host/editme.txt"
msgstr "Kann lokale Kopie von /ftp://some.host/editme.txt nicht erstellen" msgstr "Kann lokale Kopie von /ftp://some.host/editme.txt nicht erstellen"
#~ msgid "Cannot change attributes on non-local filesystems"
#~ msgstr "Kann Attribute auf nicht-lokalen Dateisystemen nicht ändern"
#~ msgid "Attributes: not supported"
#~ msgstr "Attribute: nicht unterstützt"
#, c-format #, c-format
#~ msgid " %s%s file error" #~ msgid " %s%s file error"
#~ msgstr " Fehler in der Datei %s%s " #~ msgstr " Fehler in der Datei %s%s "

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Midnight Commander\n" "Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n" "Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
"POT-Creation-Date: 2023-01-29 11:16+0300\n" "POT-Creation-Date: 2023-03-19 20:39+0300\n"
"PO-Revision-Date: 2015-02-26 09:48+0000\n" "PO-Revision-Date: 2015-02-26 09:48+0000\n"
"Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n" "Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n"
"Language-Team: German (Switzerland) (http://www.transifex.com/projects/p/mc/" "Language-Team: German (Switzerland) (http://www.transifex.com/projects/p/mc/"
@ -2157,9 +2157,6 @@ msgid ""
"%s" "%s"
msgstr "" msgstr ""
msgid "Cannot change attributes on non-local filesystems"
msgstr ""
#, c-format #, c-format
msgid "" msgid ""
"Cannot get flags of \"%s\"\n" "Cannot get flags of \"%s\"\n"
@ -3314,9 +3311,6 @@ msgstr ""
msgid "Links: %d" msgid "Links: %d"
msgstr "" msgstr ""
msgid "Attributes: not supported"
msgstr ""
#, c-format #, c-format
msgid "Attributes: %s" msgid "Attributes: %s"
msgstr "" msgstr ""
@ -4217,18 +4211,18 @@ msgstr ""
msgid "sftp: Listing done." msgid "sftp: Listing done."
msgstr "" msgstr ""
#, c-format
msgid ""
"Cannot open tar archive\n"
"%s"
msgstr ""
msgid "Inconsistent tar archive" msgid "Inconsistent tar archive"
msgstr "" msgstr ""
msgid "Unexpected EOF on archive file" msgid "Unexpected EOF on archive file"
msgstr "" msgstr ""
#, c-format
msgid ""
"Cannot open tar archive\n"
"%s"
msgstr ""
#, c-format #, c-format
msgid "" msgid ""
"%s\n" "%s\n"

View File

@ -12,7 +12,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Midnight Commander\n" "Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n" "Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
"POT-Creation-Date: 2023-01-29 11:16+0300\n" "POT-Creation-Date: 2023-03-19 20:39+0300\n"
"PO-Revision-Date: 2010-12-29 10:19+0000\n" "PO-Revision-Date: 2010-12-29 10:19+0000\n"
"Last-Translator: Efstathios Iosifidis <iefstathios@gmail.com>, 2015\n" "Last-Translator: Efstathios Iosifidis <iefstathios@gmail.com>, 2015\n"
"Language-Team: Greek (http://www.transifex.com/mc/mc/language/el/)\n" "Language-Team: Greek (http://www.transifex.com/mc/mc/language/el/)\n"
@ -2189,9 +2189,6 @@ msgid ""
"%s" "%s"
msgstr "" msgstr ""
msgid "Cannot change attributes on non-local filesystems"
msgstr ""
#, c-format #, c-format
msgid "" msgid ""
"Cannot get flags of \"%s\"\n" "Cannot get flags of \"%s\"\n"
@ -3396,9 +3393,6 @@ msgstr ""
msgid "Links: %d" msgid "Links: %d"
msgstr "Σύνδεσμοι: %d" msgstr "Σύνδεσμοι: %d"
msgid "Attributes: not supported"
msgstr ""
#, c-format #, c-format
msgid "Attributes: %s" msgid "Attributes: %s"
msgstr "" msgstr ""
@ -4330,6 +4324,12 @@ msgstr ""
msgid "sftp: Listing done." msgid "sftp: Listing done."
msgstr "" msgstr ""
msgid "Inconsistent tar archive"
msgstr "Χαλασμένη αρχειοθήκη tar"
msgid "Unexpected EOF on archive file"
msgstr "Απρόσμενο EOF στην αρχειοθήκη"
#, c-format #, c-format
msgid "" msgid ""
"Cannot open tar archive\n" "Cannot open tar archive\n"
@ -4338,12 +4338,6 @@ msgstr ""
"Άνοιγμα αρχειοθήκης tar ανεπιτυχές\n" "Άνοιγμα αρχειοθήκης tar ανεπιτυχές\n"
"%s" "%s"
msgid "Inconsistent tar archive"
msgstr "Χαλασμένη αρχειοθήκη tar"
msgid "Unexpected EOF on archive file"
msgstr "Απρόσμενο EOF στην αρχειοθήκη"
#, c-format #, c-format
msgid "" msgid ""
"%s\n" "%s\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Midnight Commander\n" "Project-Id-Version: Midnight Commander\n"
"Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n" "Report-Msgid-Bugs-To: https://www.midnight-commander.org/\n"
"POT-Creation-Date: 2023-01-29 11:16+0300\n" "POT-Creation-Date: 2023-03-19 20:39+0300\n"
"PO-Revision-Date: 2010-12-29 10:19+0000\n" "PO-Revision-Date: 2010-12-29 10:19+0000\n"
"Last-Translator: Andi Chandler <andi@gowling.com>, 2016-2017,2020,2022\n" "Last-Translator: Andi Chandler <andi@gowling.com>, 2016-2017,2020,2022\n"
"Language-Team: English (United Kingdom) (http://www.transifex.com/mc/mc/" "Language-Team: English (United Kingdom) (http://www.transifex.com/mc/mc/"
@ -2175,9 +2175,6 @@ msgid ""
"%s" "%s"
msgstr "" msgstr ""
msgid "Cannot change attributes on non-local filesystems"
msgstr ""
#, c-format #, c-format
msgid "" msgid ""
"Cannot get flags of \"%s\"\n" "Cannot get flags of \"%s\"\n"
@ -3332,9 +3329,6 @@ msgstr ""
msgid "Links: %d" msgid "Links: %d"
msgstr "" msgstr ""
msgid "Attributes: not supported"
msgstr ""
#, c-format #, c-format
msgid "Attributes: %s" msgid "Attributes: %s"
msgstr "" msgstr ""
@ -4235,18 +4229,18 @@ msgstr ""
msgid "sftp: Listing done." msgid "sftp: Listing done."
msgstr "" msgstr ""
#, c-format
msgid ""
"Cannot open tar archive\n"
"%s"
msgstr ""
msgid "Inconsistent tar archive" msgid "Inconsistent tar archive"
msgstr "" msgstr ""
msgid "Unexpected EOF on archive file" msgid "Unexpected EOF on archive file"
msgstr "" msgstr ""
#, c-format
msgid ""
"Cannot open tar archive\n"
"%s"
msgstr ""
#, c-format #, c-format
msgid "" msgid ""
"%s\n" "%s\n"

Some files were not shown because too many files have changed in this diff Show More