mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Merge branch '4270_cleanup'
* 4270_cleanup: (28 commits) Update po/*.po files. (mc_setup_by_args): reduce variable scope into #ifdef to fix coverity finding. (translate_file): refactoring. (get_random_hint): refactoring. Fix coding style. (dir_list_load): rename argument: fltr -> filter. (show_version): display version of libssh2. (sftpfs_read_known_hosts): clarify displayed value of unknown host key type. filevercmp: fix several unexpected results. tests/lib/strutil/filevercmp.c: use _GL_CMP() to get sign. tests/lib/strutil/filevercmp.c: minor improvements. Tests: clarification of boolean values tests. Tests clean up. (file_mask_dialog): refactoring: get rid of goto. (file_mask_dialog): NULLify variables before use in next iteration. (_str_convert): fix memory leak. Include <stddef.h> where ptrdiff_t is used. Ticket #4330: doc/INSTALL clean up. Update copyright years. Add script to update copyright years. ...
This commit is contained in:
commit
7fe3f4c898
@ -36,7 +36,7 @@ dnl ############################################################################
|
||||
dnl Check for compiler
|
||||
dnl ############################################################################
|
||||
|
||||
AC_PROG_CC_STDC
|
||||
AC_PROG_CC
|
||||
AM_PROG_CC_C_O
|
||||
|
||||
mc_CHECK_CFLAGS
|
||||
|
12
doc/INSTALL
12
doc/INSTALL
@ -210,14 +210,6 @@ ncurses):
|
||||
`ncurses' means ncurses library already installed on the system.
|
||||
The S-Lang library is used by default if found.
|
||||
|
||||
`--with-slang-includes=[DIR]'
|
||||
Set path to SLANG includes [default=/usr/include]; make sense
|
||||
only if --with-screen=slang is used.
|
||||
|
||||
`--with-slang-libs=[DIR]'
|
||||
Set path to SLANG library [default=/usr/lib]; mke sense only
|
||||
if --with-screen=slang is used.
|
||||
|
||||
`--with-ncurses-includes=[DIR]'
|
||||
Set path to ncurses includes [default=/usr/include]; make
|
||||
sense only if --with-screen=ncurses is used;
|
||||
@ -459,6 +451,4 @@ to /usr/local:
|
||||
|
||||
./configure \
|
||||
--prefix=/usr/local \
|
||||
--with-screen=slang \
|
||||
--with-slang-includes=/usr/local/include \
|
||||
--with-slang-libs=/usr/local/lib
|
||||
--with-screen=slang
|
||||
|
@ -91,9 +91,9 @@ directorio de trabajo en el archivo indicado. Esta opción no debe ser
|
||||
usada directamente, sino desde un guión de shell adecuado, para dejar
|
||||
como directorio activo el directorio que estaba en uso dentro de
|
||||
Midnight Commander. Consúltese en los archivos
|
||||
.B %libexecdir%/mc/mc.sh
|
||||
.B %pkglibexecdir%/mc.sh
|
||||
(usuarios de bash y zsh) y
|
||||
.B %libexecdir%/mc/mc.csh
|
||||
.B %pkglibexecdir%/mc.csh
|
||||
(usuarios de tcsh) la manera de definir
|
||||
.B mc
|
||||
como un alias para el correspondiente guión de shell.
|
||||
@ -347,7 +347,7 @@ La función de ciertas teclas se puede alterar a partir de un mapa de teclado
|
||||
almacenado en un archivo externo. Inicialmente el programa asigna esas funciones
|
||||
según el mapa definido en el código fuente. Posteriormente se cargan siempre
|
||||
los archivos
|
||||
.B %prefix%/share/mc/mc.keymap
|
||||
.B %pkgdatadir%/mc.keymap
|
||||
y
|
||||
.BR %sysconfdir%/mc/mc.keymap ,
|
||||
reasignando en el orden marcado las definiciones anteriores. Se cargan después
|
||||
@ -386,7 +386,7 @@ se procede a realizar una búsqueda por directorios hasta encontrarlo en:
|
||||
.B %sysconfdir%/mc/
|
||||
.br
|
||||
3)
|
||||
.B %prefix%/share/mc/
|
||||
.B %pkgdatadir%/
|
||||
.\"NODE " Miscellaneous Keys"
|
||||
.SH " Otras Teclas"
|
||||
Se incluyen aquí las teclas que no encajan en ninguna categoría concreta:
|
||||
@ -1512,7 +1512,7 @@ Abre el archivo
|
||||
.I ~/.config/mc/mc.ext
|
||||
en nuestro editor. El administrador puede optar por editar, en su lugar,
|
||||
el archivo de extensiones del sistema
|
||||
.IR %prefix%/share/mc/mc.ext .
|
||||
.IR %pkgdatadir%/mc.ext .
|
||||
El formato del archivo es como sigue:
|
||||
.PP
|
||||
Todas las líneas que empiecen con # o estén vacías serán ignoradas.
|
||||
@ -1597,7 +1597,7 @@ el archivo .mc.menu del directorio actual, pero solo si es propiedad del
|
||||
usuario o del superusuario y no es modificable por todos.
|
||||
Si no se encuentra allí el archivo, se intenta de la misma manera con ~/.config/mc/menu,
|
||||
y si no, mc utiliza el menú por defecto para todo el sistema
|
||||
%prefix%/share/mc/mc.menu.
|
||||
%pkgdatadir%/mc.menu.
|
||||
.PP
|
||||
El formato del menú de archivo es muy simple. Todas las líneas, salvo
|
||||
las que empiezan con espacio o tabulación, son consideradas entradas
|
||||
@ -1997,7 +1997,7 @@ usando el color indicado por medio de la palabra clave
|
||||
.I selected.
|
||||
Si se activa el resaltado de tipos de archivos, los nombres aparecerán
|
||||
coloreados según las reglas almacenadas en el archivo
|
||||
.IR %prefix%/share/mc/filehighlight.ini .
|
||||
.IR %pkgdatadir%/filehighlight.ini .
|
||||
Para más información, véase la
|
||||
sección sobre
|
||||
.\"LINK2"
|
||||
@ -2242,7 +2242,7 @@ Si la opción
|
||||
.I Usar siempre proxy
|
||||
está puesta, el programa asume que cualquier nombre de máquina
|
||||
sin puntos es accesible directamente y también consulta el archivo
|
||||
%prefix%/share/mc.no_proxy en busca de nombres de máquinas locales (o
|
||||
%sysconfdir%/mc/mc.no_proxy en busca de nombres de máquinas locales (o
|
||||
dominios completos si el nombre empieza con un punto). En todos los
|
||||
demás casos se usará siempre el proxy de FTP indicado arriba.
|
||||
.PP
|
||||
@ -2267,7 +2267,7 @@ archivo
|
||||
.IR ~/.config/mc/ini .
|
||||
Si este no existe, se cargará la información del
|
||||
archivo de configuración genérico del sistema,
|
||||
.IR %prefix%/share/mc/mc.ini .
|
||||
.IR %pkgdatadir%/mc.ini .
|
||||
Si el archivo de configuración genérico del sistema no existe, MC utiliza
|
||||
la configuración por defecto.
|
||||
.PP
|
||||
@ -3017,7 +3017,7 @@ formateará el bloque seleccionado (sea texto, código
|
||||
o
|
||||
.B C++
|
||||
u otro). Esto está controlado por el archivo
|
||||
.B %prefix%/share/mc/edit.indent.rc
|
||||
.B %pkgdatadir%/edit.indent.rc
|
||||
que se copia la primera vez que se usa en
|
||||
.B ~/.local/share/mc/mcedit/edit.indent.rc
|
||||
en el directorio personal.
|
||||
@ -3569,7 +3569,7 @@ del archivo de configuración.
|
||||
.BR %sysconfdir%/mc/skins/default.ini .
|
||||
.br
|
||||
5) El archivo
|
||||
.BR %prefix%/share/mc/skins/default.ini .
|
||||
.BR %pkgdatadir%/skins/default.ini .
|
||||
|
||||
.PP
|
||||
En línea de órdenes, en la variable de entorno o el parámetro de la
|
||||
@ -3584,7 +3584,7 @@ en orden, en:
|
||||
.BR %sysconfdir%/mc/skins/ .
|
||||
.br
|
||||
3)
|
||||
.BR %prefix%/share/mc/skins/ .
|
||||
.BR %pkgdatadir%/skins/ .
|
||||
.br
|
||||
|
||||
.PP
|
||||
@ -3888,7 +3888,7 @@ Skins\&.
|
||||
.\"Skins"
|
||||
.PP
|
||||
Las reglas de resaltado de nombres en el archivo se encuentran en
|
||||
.IR %prefix%/share/mc/filehighlight.ini .
|
||||
.IR %pkgdatadir%/filehighlight.ini .
|
||||
Los nombres de sección en este archivo tienen que ser iguales a los nombres
|
||||
empleados en la sección [filehighlight] del archivo de skin en uso.
|
||||
PP.
|
||||
@ -4058,7 +4058,7 @@ Midnight Commander permite especificar opciones para editores y visores
|
||||
externos. Midnight Commander busca la sección
|
||||
.I [External editor or viewer parameters]
|
||||
en el archivo de inicialización del sistema
|
||||
.B %prefix%/share/mc/mc.lib
|
||||
.B %pkgdatadir%/mc.lib
|
||||
o en el del usuario
|
||||
.BR ~/.config/mc/ini .
|
||||
El nombre de la opción debe coincidir con el nombre (ruta completa) del editor
|
||||
@ -4094,7 +4094,7 @@ externo pueda guardar y restaurar posiciones en los archivos abiertos.
|
||||
Midnight Commander permite hacer ajustes a la base de datos de terminales
|
||||
del sistema sin necesidad de privilegios de superusuario. El programa
|
||||
busca definiciones de teclas en el archivo de inicialización del sistema
|
||||
.B %prefix%/share/mc/mc.lib
|
||||
.B %pkgdatadir%/mc.lib
|
||||
o en el del usuario
|
||||
.BR ~/.config/mc/ini ,
|
||||
en la sección "terminal:nuestro\-terminal" y si no en "terminal:general".
|
||||
@ -4157,13 +4157,13 @@ Los directorios indicados a continuación pueden variar de una
|
||||
instalación a otra. También se pueden modificar con la variable de
|
||||
entorno
|
||||
.BR MC_DATADIR ,
|
||||
que de estar definida se emplearía en vez de %prefix%/share/mc.
|
||||
que de estar definida se emplearía en vez de %pkgdatadir%.
|
||||
.PP
|
||||
.I %prefix%/share/mc.hlp
|
||||
.I %pkgdatadir%/help/mc.hlp
|
||||
.IP
|
||||
Archivo de ayuda.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.ext
|
||||
.I %pkgdatadir%/mc.ext
|
||||
.IP
|
||||
Archivo de extensiones por defecto del sistema.
|
||||
.PP
|
||||
@ -4172,13 +4172,13 @@ Archivo de extensiones por defecto del sistema.
|
||||
Archivo de usuario de extensiones y configuración de visor y editor. Si
|
||||
está presente prevalece sobre el contenido de los archivos del sistema.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.ini
|
||||
.I %pkgdatadir%/mc.ini
|
||||
.IP
|
||||
Archivo de configuración del sistema para Midnight Commander, solo si
|
||||
el usuario no dispone de su propio
|
||||
.IR ~/.config/mc/ini .
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.lib
|
||||
.I %pkgdatadir%/mc.lib
|
||||
.IP
|
||||
Opciones globales de Midnight Commander. Se aplican siempre a todos los
|
||||
usuarios, tengan
|
||||
@ -4194,12 +4194,12 @@ Configuración personal del usuario. Si este archivo está presente entonces
|
||||
se cargará la configuración desde aquí en lugar de desde el archivo de
|
||||
configuración del sistema.
|
||||
.PP
|
||||
.I %prefix%/share/mc/hints/mc.hint
|
||||
.I %pkgdatadir%/hints/mc.hint
|
||||
.IP
|
||||
Este archivo contiene los mensajes cortos de ayuda mostrados por el
|
||||
programa.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.menu
|
||||
.I %pkgdatadir%/mc.menu
|
||||
.IP
|
||||
Este archivo contiene el menú de aplicaciones por defecto para el sistema.
|
||||
.PP
|
||||
|
@ -60,9 +60,9 @@ helyett a Midnight Commander által utoljára meglátogatott könyvtárra való
|
||||
átváltást (köszönet a funkcióért és a funkcióhoz szükséges kódért Torben
|
||||
Fjerdingstad\-nek és Sergey\-nek közreműködésükért). Kérlek, ne csinálj
|
||||
szó szerinti másolatot a funkció beállításairól. A fájlok forrása a
|
||||
.I %libexecdir%/mc/mc.sh
|
||||
.I %pkglibexecdir%/mc.sh
|
||||
(bash és zsh felhasználóknak), illetőleg a
|
||||
.I %libexecdir%/mc/mc.csh
|
||||
.I %pkglibexecdir%/mc.csh
|
||||
(tcsh felhasználóknak) fájl. Ilyenkor, amikor a funkció beállításokat
|
||||
változtatod, a profil értékeket nem szükséges megváltoztatnod, csak
|
||||
arról gondoskodj, hogy az MC\-t ne fordítsd eltérő beállításokkal.
|
||||
@ -1374,7 +1374,7 @@ nem talál ilyen fájlt, az
|
||||
.I ~/.config/mc/menu
|
||||
keresése a következő lépés, egyébként pedig az mc az alapértelmezett
|
||||
rendszerszintű menüt használja, pl.:
|
||||
.IR %prefix%/share/mc/mc.menu ,
|
||||
.IR %pkgdatadir%/mc.menu ,
|
||||
esetleg %sysconfdir%/mc/mc.menu.
|
||||
.PP
|
||||
A menü fájl formátuma nagyon egyszerű. A sorok, amelyek bármivel
|
||||
@ -1882,7 +1882,7 @@ beolvasni az
|
||||
.I ~/.config/mc/ini
|
||||
fájlból. Ha ez a fájl nem létezik, ezeket az információkat a
|
||||
rendszerszintű konfigurációs fájlból fogja beolvasni, amelyek a
|
||||
.I %prefix%/share/mc/mc.ini
|
||||
.I %pkgdatadir%/mc.ini
|
||||
fájlban találhatóak meg. Ha ez a rendszerszintű konfigurációs fájl sem
|
||||
létezik, a MC az alapértelmezett beállításokat használja.
|
||||
.PP
|
||||
@ -2632,7 +2632,7 @@ dialógus ablak másik beállítandó opciója az
|
||||
.I ftp proxy\-n keresztül
|
||||
opció. Ez beállítja a program számára azt, hogy mindig használja a proxy
|
||||
host\-ot. Ha ez a változó be van állítva, akkor a program két dolgot
|
||||
csinál: konzultál a %prefix%/share/mc.no_proxy fájl soraival, hogy azok
|
||||
csinál: konzultál a %sysconfdir%/mc/mc.no_proxy fájl soraival, hogy azok
|
||||
tartalmazzák\-e a host nevet, mint helyi eszközt (ha a host neve ponttal
|
||||
kezdődik, akkor ezt domainként tartja számon), és feltételezi azt, hogy
|
||||
a pont nélküli hostnevek közvetlenül felodhatók.
|
||||
@ -3149,11 +3149,11 @@ A progam minden ezzel kapcsolatos infomációt az
|
||||
környezeti változóban tárol. Ha ezt a változót nem állítottuk be, akkor
|
||||
ez vissza fog állítódni a /usr könyvtárra.
|
||||
.PP
|
||||
.I %prefix%/share/mc/help/mc.hlp
|
||||
.I %pkgdatadir%/help/mc.hlp
|
||||
.IP
|
||||
A program súgó fájlja.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.ext
|
||||
.I %pkgdatadir%/mc.ext
|
||||
.IP
|
||||
Az alapértelmezett rendszerszintű kiterjesztés fájl.
|
||||
.PP
|
||||
@ -3163,12 +3163,12 @@ A felhasználó saját kiterjesztései, nézet beállítások és szerkesztési
|
||||
beállítások. Ezek felülbírálják a rendszerszintű fájl bejegyzéseit, ha
|
||||
van ilyen.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.ini
|
||||
.I %pkgdatadir%/mc.ini
|
||||
.IP
|
||||
Az alapértelmezett rendszerszintű Midnight Commander beállítás, amelyet
|
||||
csak akkor használ, ha a felhasználónak nincs saját ~/.config/mc/ini fájlja.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.lib
|
||||
.I %pkgdatadir%/mc.lib
|
||||
.IP
|
||||
A Midnight Commander globális beállításai. Az ebben a fájlban elvégzett
|
||||
beállítások minden felhasználó Midnight Commander\-jére vonatkoznak, ez
|
||||
@ -3180,12 +3180,12 @@ A felhasználó saját beállításai. Ha ez a fájl elérhető, akkor a
|
||||
beállítások ebből a fájlból olvasódnak be a rendszerszintű indító fájl
|
||||
helyett.
|
||||
.PP
|
||||
.I %prefix%/share/mc/hints/mc.hint
|
||||
.I %pkgdatadir%/hints/mc.hint
|
||||
.IP
|
||||
Ez a fájl tartalmazza a program által megjelenített útmutattásokat
|
||||
(cookie\-kat).
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.menu
|
||||
.I %pkgdatadir%/mc.menu
|
||||
.IP
|
||||
Ez a fájl azonos a rendszerszintű alkalmazás menüvel.
|
||||
.PP
|
||||
|
@ -81,9 +81,9 @@ Questa funzione non è fatta per un uso diretto, ma dovrebbe essere
|
||||
utilizzata da una speciale funzione shell che imposti automaticamente
|
||||
l'ultima directory corrente della shell come l'ultima directory in cui
|
||||
stava il Midnight Commander. Prelevate i file
|
||||
.B %libexecdir%/mc/mc.sh
|
||||
.B %pkglibexecdir%/mc.sh
|
||||
(utenti bash e zsh) o rispettivamente
|
||||
.B %libexecdir%/mc/mc.csh
|
||||
.B %pkglibexecdir%/mc.csh
|
||||
(utenti tcsh) per definire
|
||||
.B mc
|
||||
come un alias allo script di shell appropriato.
|
||||
@ -1382,7 +1382,7 @@ utilizzato, se esiste, il file .mc.menu dalla directory corrente,
|
||||
ma solo se è di proprietà dell'utente o di root e se non è scrivibile
|
||||
a tutti. Se tale file non viene trovato, mc alla stessa maniera
|
||||
prova con ~/.config/mc/menu altrimenti usa il menu di sistema
|
||||
%prefix%/share/mc/mc.menu.
|
||||
%pkgdatadir%/mc.menu.
|
||||
.PP
|
||||
Il formato del file menu è molto semplice. Le righe che cominciano
|
||||
con qualsiasi cosa che non sia uno spazio o una tabulazione sono
|
||||
@ -1894,7 +1894,7 @@ file system FTP
|
||||
per gli esempi.
|
||||
.PP
|
||||
Se quest'opzione è impostata, il programma farà due cose: consulterà
|
||||
il file %prefix%/lib/mc/mc.no_proxy per le righe contenenti nomi host
|
||||
il file %sysconfdir%/mc/mc.no_proxy per le righe contenenti nomi host
|
||||
locali (se il nome host comincia con un punto, è considerato un
|
||||
dominio) e assumendo che ogni nome host senza punti nel nome sia
|
||||
direttamente accessibile. Tutti gli altri host verranno contattati
|
||||
@ -1916,7 +1916,7 @@ funzionare con alcuni firewall.
|
||||
Alla partenza il Midnight Commander prova a caricare le informazioni di
|
||||
inizializzazione dal file ~/.config/mc/ini. Se questo file non esiste,
|
||||
caricherà le informazioni dal file di configurazione di sistema
|
||||
posizionato in %prefix%/share/mc/mc.ini. Se il file di configurazione di
|
||||
posizionato in %pkgdatadir%/mc.ini. Se il file di configurazione di
|
||||
sistema non esiste, MC userà le impostazioni predefinite.
|
||||
.PP
|
||||
Il comando
|
||||
@ -2537,7 +2537,7 @@ formatterà il blocco evidenziato correntemente (testo, codice
|
||||
o
|
||||
.B C++
|
||||
o altro). Questo comportamento viene controllato dal file
|
||||
.B %prefix%/share/mc/edit.indent.rc
|
||||
.B %pkgdatadir%/edit.indent.rc
|
||||
che viene copiato nel
|
||||
.B ~/.local/share/mc/mcedit/edit.indent.rc
|
||||
nella propria directory home la prima volta che lo si usa.
|
||||
@ -3140,13 +3140,13 @@ simpatici tasti dappertutto).
|
||||
Il programma recupera tutte le informazioni relative al proprio funzionamento
|
||||
dalla variabile ambiente
|
||||
.BR MC_DATADIR ,
|
||||
e se la variabile non è impostata, passerà alla directory %prefix%/share/mc .
|
||||
e se la variabile non è impostata, passerà alla directory %pkgdatadir% .
|
||||
.PP
|
||||
.I %prefix%/share/mc/help/mc.hlp
|
||||
.I %pkgdatadir%/help/mc.hlp
|
||||
.IP
|
||||
Il file di aiuto per il programma.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.ext
|
||||
.I %pkgdatadir%/mc.ext
|
||||
.IP
|
||||
Il file delle estensioni di sistema predefinito.
|
||||
.PP
|
||||
@ -3156,12 +3156,12 @@ Le estensioni dell'utente, la configurazione del visualizzatore e
|
||||
dell'editor di file. Se presenti, questi file si sovrappongono ai file di
|
||||
sistema.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.ini
|
||||
.I %pkgdatadir%/mc.ini
|
||||
.IP
|
||||
La configurazione di sistema predefinita per il Midnight Commander, usata solo
|
||||
se l'utente non possiede il proprio file ~/.config/mc/ini.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.lib
|
||||
.I %pkgdatadir%/mc.lib
|
||||
.IP
|
||||
Le impostazioni globali per il Midnight Commander. La modifica di questo
|
||||
file influisce su tutti gli utenti, che abbiano o no il file ~/.config/mc/ini .
|
||||
@ -3176,11 +3176,11 @@ da mc.lib.
|
||||
La configurazione dell'utente. Se questo file è presente, la configurazione
|
||||
viene caricata da qui invece che dal file di sistema.
|
||||
.PP
|
||||
.I %prefix%/share/mc/hints/mc.hint
|
||||
.I %pkgdatadir%/hints/mc.hint
|
||||
.IP
|
||||
Questo file contiene i suggerimenti (dritte) mostrate dal programma.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.menu
|
||||
.I %pkgdatadir%/mc.menu
|
||||
.IP
|
||||
Questo file contiene il menu di sistema per le applicazioni.
|
||||
.PP
|
||||
|
@ -77,7 +77,7 @@ Print the last working directory to the specified file. This option is
|
||||
not meant to be used directly. Instead, it's used from a special shell
|
||||
script that automatically changes the current directory of the shell to
|
||||
the last directory Midnight Commander was in. Source the file
|
||||
.B %libexecdir%/mc/mc.sh
|
||||
.B %pkglibexecdir%/mc.sh
|
||||
(bash and zsh users) or
|
||||
.B %libexecdir%/mc.csh
|
||||
(tcsh users) respectively to define
|
||||
@ -294,7 +294,7 @@ the input lines in the query dialogs.
|
||||
Hotkey bindings may be read from external file (keymap\-file).
|
||||
Initially, Midnight Commander creates key bindings using keymap defined
|
||||
in the source code. Then, two files
|
||||
.B %prefix%/share/mc/mc.keymap
|
||||
.B %pkgdatadir%/mc.keymap
|
||||
and
|
||||
.B %sysconfdir%/mc/mc.keymap
|
||||
are loaded always, sequentially reassigned key bindings defined earlier.
|
||||
@ -331,7 +331,7 @@ or without it). Search of keymap\-file will occur in (to the first one found):
|
||||
.B %sysconfdir%/mc/
|
||||
.br
|
||||
3)
|
||||
.B %prefix%/share/mc/
|
||||
.B %pkgdatadir%/
|
||||
|
||||
.\"NODE " Miscellaneous Keys"
|
||||
.SH " Miscellaneous Keys"
|
||||
@ -1560,7 +1560,7 @@ file .mc.menu from the current directory is used if it exists,
|
||||
but only if it is owned by user or root and is not world\-writable.
|
||||
If no such file found, ~/.config/mc/menu is tried in the same way,
|
||||
and otherwise mc uses the default system\-wide menu
|
||||
%prefix%/share/mc/mc.menu.
|
||||
%pkgdatadir%/mc.menu.
|
||||
.PP
|
||||
The format of the menu file is very simple. Lines that start with
|
||||
anything but space or tab are considered entries for the menu (in
|
||||
@ -2227,7 +2227,7 @@ FTP File System
|
||||
for examples.
|
||||
.PP
|
||||
If this option is set, the program will do two things: consult the
|
||||
%prefix%/lib/mc/mc.no_proxy file for lines containing host names that
|
||||
%sysconfdir%/mc/mc.no_proxy file for lines containing host names that
|
||||
are local (if the host name starts with a dot, it is assumed to be a
|
||||
domain) and to assume that any hostnames without dots in their names are
|
||||
directly accessible. All other hosts will be accessed through the
|
||||
@ -2251,7 +2251,7 @@ from the ~/.config/mc/ini file.
|
||||
If this file doesn't exist, the system\-wide file
|
||||
.B %sysconfdir%/mc/mc.ini
|
||||
is used. If this file doesn't exist, the system\-wide file
|
||||
.B %prefix%/share/mc/mc.ini
|
||||
.B %pkgdatadir%/mc.ini
|
||||
is used. If this file doesn't exist, MC uses the default settings.
|
||||
.PP
|
||||
The
|
||||
@ -3083,7 +3083,7 @@ selection dialog.
|
||||
will format the currently highlighted block (plain text or C or C++
|
||||
code or another). This is controlled by the
|
||||
file
|
||||
.B %prefix%/share/mc/edit.indent.rc
|
||||
.B %pkgdatadir%/edit.indent.rc
|
||||
which is copied to
|
||||
.B ~/.local/share/mc/mcedit/edit.indent.rc
|
||||
in your home directory the first time you use it.
|
||||
@ -3678,7 +3678,7 @@ in config file.
|
||||
.B %sysconfdir%/mc/skins/default.ini
|
||||
.br
|
||||
5) File
|
||||
.B %prefix%/share/mc/skins/default.ini
|
||||
.B %pkgdatadir%/skins/default.ini
|
||||
|
||||
.PP
|
||||
Command line option, environment variable and parameter in config file may
|
||||
@ -3692,7 +3692,7 @@ or without it). Search of skin\-file will occur in (to the first one found):
|
||||
.B %sysconfdir%/mc/skins/
|
||||
.br
|
||||
3)
|
||||
.B %prefix%/share/mc/skins/
|
||||
.B %pkgdatadir%/skins/
|
||||
.br
|
||||
|
||||
.PP
|
||||
@ -4016,7 +4016,7 @@ Skins
|
||||
.\"Skins"
|
||||
section.
|
||||
.PP
|
||||
Rules of filenames highlight are placed in %prefix%/share/mc/filehighlight.ini file
|
||||
Rules of filenames highlight are placed in %pkgdatadir%/filehighlight.ini file
|
||||
(~/.config/mc/filehighlight.ini).
|
||||
Name of section in this file must be equal to parameters names in
|
||||
[filehighlight] section (in current skin\-file).
|
||||
@ -4284,13 +4284,13 @@ Full paths below may vary between installations. They are also affected
|
||||
by the
|
||||
.B MC_DATADIR
|
||||
environment variable. If it's set, its value is used instead of
|
||||
%prefix%/share/mc in the paths below.
|
||||
%pkgdatadir% in the paths below.
|
||||
.PP
|
||||
.I %prefix%/share/mc/help/mc.hlp
|
||||
.I %pkgdatadir%/help/mc.hlp
|
||||
.IP
|
||||
The help file for the program.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.ext
|
||||
.I %pkgdatadir%/mc.ext
|
||||
.IP
|
||||
The default system\-wide extensions file.
|
||||
.PP
|
||||
@ -4301,14 +4301,14 @@ file. They override the contents of the system wide files if present.
|
||||
.PP
|
||||
.I %sysconfdir%/mc/mc.ini
|
||||
.RE
|
||||
.I %prefix%/share/mc/mc.ini
|
||||
.I %pkgdatadir%/mc.ini
|
||||
.IP
|
||||
System\-wide setup files for Midnight Commander, used only if the user
|
||||
doesn't have his own
|
||||
.B ~/.config/mc/ini
|
||||
file. If %sysconfdir%/mc/mc.ini exists, %prefix%/share/mc/mc.ini isn't used.
|
||||
file. If %sysconfdir%/mc/mc.ini exists, %pkgdatadir%/mc.ini isn't used.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.lib
|
||||
.I %pkgdatadir%/mc.lib
|
||||
.IP
|
||||
Global settings for Midnight Commander. Settings in this file
|
||||
affect all users, whether they have ~/.config/mc/ini or not. Currently, only
|
||||
@ -4322,11 +4322,11 @@ are loaded from mc.lib.
|
||||
User's own setup. If this file is present then the setup is loaded
|
||||
from here instead of the system\-wide startup file.
|
||||
.PP
|
||||
.I %prefix%/share/mc/hints/mc.hint
|
||||
.I %pkgdatadir%/hints/mc.hint
|
||||
.IP
|
||||
This file contains the hints displayed by the program.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.menu
|
||||
.I %pkgdatadir%/mc.menu
|
||||
.IP
|
||||
This file contains the default system\-wide applications menu.
|
||||
.PP
|
||||
|
@ -239,7 +239,7 @@ supports syntax highlighting. This means that keywords and contexts
|
||||
colors. The following section explains the format of the file
|
||||
.BR ~/.config/mc/mcedit/Syntax .
|
||||
If this file is missing, system\-wide
|
||||
.B %prefix%/share/mc/syntax/Syntax
|
||||
.B %pkgdatadir%/syntax/Syntax
|
||||
is used.
|
||||
The file
|
||||
.B ~/.config/mc/mcedit/Syntax
|
||||
@ -614,21 +614,21 @@ binary files, you should set
|
||||
to 7 bits in Midnight Commander's options menu to keep the spacing
|
||||
clean.
|
||||
.SH FILES
|
||||
.I %prefix%/share/mc/help/mc.hlp
|
||||
.I %pkgdatadir%/help/mc.hlp
|
||||
.IP
|
||||
The help file for the program.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.ini
|
||||
.I %pkgdatadir%/mc.ini
|
||||
.IP
|
||||
The default system\-wide setup for GNU Midnight Commander, used only if
|
||||
the user's own ~/.config/mc/ini file is missing.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.lib
|
||||
.I %pkgdatadir%/mc.lib
|
||||
.IP
|
||||
Global settings for Midnight Commander. Settings in this file
|
||||
affect all users, whether they have ~/.config/mc/ini or not.
|
||||
.PP
|
||||
.I %prefix%/share/mc/syntax/*
|
||||
.I %pkgdatadir%/syntax/*
|
||||
.IP
|
||||
The default system\-wide syntax files for mcedit, used only if
|
||||
the corresponding user's own ~/.local/share/mc/mcedit/ file is missing.
|
||||
|
@ -61,16 +61,16 @@ selected=black,green"
|
||||
.fi
|
||||
.PP
|
||||
.SH FILES
|
||||
.I %prefix%/share/mc/help/mc.hlp
|
||||
.I %pkgdatadir%/help/mc.hlp
|
||||
.IP
|
||||
The help file for the program.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.ini
|
||||
.I %pkgdatadir%/mc.ini
|
||||
.IP
|
||||
The default system\-wide setup for GNU Midnight Commander, used only if
|
||||
the user's own ~/.config/mc/ini file is missing.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.lib
|
||||
.I %pkgdatadir%/mc.lib
|
||||
.IP
|
||||
Global settings for Midnight Commander. Settings in this file
|
||||
affect all users, whether they have ~/.config/mc/ini or not.
|
||||
|
@ -62,14 +62,14 @@ użytkownicy basha i zsh:
|
||||
mc ()
|
||||
{
|
||||
MC=$HOME/tmp/mc$$\-"$RANDOM"
|
||||
%prefix%/bin/mc \-P "$@" > "$MC"
|
||||
%bindir%/mc \-P "$@" > "$MC"
|
||||
cd "`cat $MC`"
|
||||
rm "$MC"
|
||||
unset MC;
|
||||
}
|
||||
|
||||
użytkownicy tcsh:
|
||||
alias mc 'setenv MC `%prefix%/bin/mc \-P \!*`; cd $MC; unsetenv MC'
|
||||
alias mc 'setenv MC `%bindir%/mc \-P \!*`; cd $MC; unsetenv MC'
|
||||
.fi
|
||||
Wiem, że ta funkcja mogłaby być krótsza dla basha i zsh, ale małe cudzysłowy
|
||||
nie zaakceptowały by zawieszenia programu kombinacją
|
||||
@ -1170,7 +1170,7 @@ przy użyciu tego menu, ładowany jest plik .mc.menu z aktualnego katalogu, ale
|
||||
tylko wtedy kiedy jest on w posiadaniu użytkownika lub roota i mamy do niego
|
||||
prawa zapisu. Jeśli takiego nie ma próbuje się z plikiem ~/.config/mc/menu z tymi
|
||||
samymi założeniami, jeśli jego też nie ma \- używa się standardowego pliku
|
||||
systemowego, który znajduje się w %prefix%/share/mc/mc.menu.
|
||||
systemowego, który znajduje się w %pkgdatadir%/mc.menu.
|
||||
.PP
|
||||
Format pliku z menu użytkownika jest bardzo prosty. Linie zaczynające się
|
||||
od czegokolwiek innego niż spacja lub tabulacja, są traktowane jako
|
||||
@ -1608,7 +1608,7 @@ System plików FTP (FTP File System) po więcej szczegółów.
|
||||
.SH " Zapisz ustawienia (Save Setup)"
|
||||
Na starcie Midnight Commander będzie próbował odczytać opcje startowe
|
||||
z pliku ~/.config/mc/ini. Jeśli on nie istnieje, odczyta on konfiguracje z
|
||||
ogólnodostępnego pliku %prefix%/share/mc/mc.ini. Jeśli on też nie istnieje MC
|
||||
ogólnodostępnego pliku %pkgdatadir%/mc.ini. Jeśli on też nie istnieje MC
|
||||
użyje swoich domyślnych ustawień.
|
||||
.PP
|
||||
Komenda
|
||||
@ -2273,7 +2273,7 @@ Inną możliwością jest ustawienie opcji
|
||||
w oknie konfiguracyjnym wirtualnego systemu plików. Skonfiguruje
|
||||
to program tak, aby zawsze
|
||||
używał serwera proxy. Jeśli ta zmienna jest ustawiona, program będzie robił
|
||||
dwie rzeczy: konsultował plik %prefix%/share/mc.no_proxy w celu znalezienia linii
|
||||
dwie rzeczy: konsultował plik %sysconfdir%/mc/mc.no_proxy w celu znalezienia linii
|
||||
zawierających nazwy serwerów, które są lokalne (jeśli nazwa hosta zaczyna
|
||||
się od kropki, uznaje się, że jest to domena) i sprawdza czy jakieś hosty
|
||||
bez kropek w nazwie są widoczne bezpośrednio.
|
||||
@ -2850,11 +2850,11 @@ Program będzie pobierał wszystkie swoje informacje ze zmiennej
|
||||
.BR MC_DATADIR ,
|
||||
jeśli jest ona nie ustawiona to znowu przetwarzany jest katalog /usr.
|
||||
.PP
|
||||
%prefix%/share/mc.hlp
|
||||
%pkgdatadir%/help/mc.hlp
|
||||
.IP
|
||||
Plik pomocy dla programu.
|
||||
.PP
|
||||
%prefix%/share/mc/mc.ext
|
||||
%pkgdatadir%/mc.ext
|
||||
.IP
|
||||
Standardowy plik rozszerzeń plików.
|
||||
.PP
|
||||
@ -2863,12 +2863,12 @@ Standardowy plik rozszerzeń plików.
|
||||
Własny plik użytkownika, konfiguruje podgląd i edycje plików. Ma wyższy
|
||||
priorytet niż plik systemowy.
|
||||
.PP
|
||||
%prefix%/share/mc/mc.ini
|
||||
%pkgdatadir%/mc.ini
|
||||
.IP
|
||||
Standardowy plik setupu do Midnight Commandera, używany tylko wówczas,
|
||||
kiedy użytkownik nie ma swojego własnego pliku ~/.config/mc/ini.
|
||||
.PP
|
||||
%prefix%/share/mc/mc.lib
|
||||
%pkgdatadir%/mc.lib
|
||||
.IP
|
||||
Globalne ustawienia Midnight Commandera. Ustawienia w tym pliku są
|
||||
uwzględniane przez wszystkie sesje Midnight Commandera, użyteczne do
|
||||
@ -2879,11 +2879,11 @@ definiowania ogólnosystemowych ustawień terminali.
|
||||
Własny setup użytkownika. Jeśli ten plik jest dostępny, jest ładowany
|
||||
zamiast pliku globalnego.
|
||||
.PP
|
||||
%prefix%/share/mc/hints/mc.hint
|
||||
%pkgdatadir%/hints/mc.hint
|
||||
.IP
|
||||
Plik zawierający podpowiedzi (hints) wyświetlane przez program.
|
||||
.PP
|
||||
%prefix%/share/mc/mc.menu
|
||||
%pkgdatadir%/mc.menu
|
||||
.IP
|
||||
Ten plik zawiera informacje o ogólnosystemowych aplikacjach w menu.
|
||||
.PP
|
||||
|
@ -89,9 +89,9 @@ termcap/terminfo. Этот ключ используется только на
|
||||
Commander.
|
||||
.IP
|
||||
Для того чтобы эта функция была определена, используйте файл
|
||||
.B %libexecdir%/mc/mc.sh
|
||||
.B %pkglibexecdir%/mc.sh
|
||||
для оболочек bash и zsh, а для оболочки tcsh соответственно файл
|
||||
.B %libexecdir%/mc/mc.csh
|
||||
.B %pkglibexecdir%/mc.csh
|
||||
.TP
|
||||
.I \-s, \-\-slow
|
||||
Включает медленный режим терминала, в котором программа выводит меньше
|
||||
@ -338,7 +338,7 @@ S\-<символ> означает, что нужно держать в нажа
|
||||
определённого в исходном коде. Затем всегда загружаются два файла
|
||||
.B %sysconfdir%/mc/mc.keymap
|
||||
и
|
||||
.BR %prefix%/share/mc/mc.keymap ,
|
||||
.BR %pkgdatadir%/mc.keymap ,
|
||||
последовательно переопределяя ранее загруженные команды.
|
||||
Поиск файла клавиатурных команд, определённого пользователем, производится
|
||||
по следующему алгоритму (до первого нахождения файла):
|
||||
@ -375,7 +375,7 @@ S\-<символ> означает, что нужно держать в нажа
|
||||
.B %sysconfdir%/mc/
|
||||
.br
|
||||
3)
|
||||
.B %prefix%/share/mc/
|
||||
.B %pkgdatadir%/
|
||||
|
||||
.\"NODE " Miscellaneous Keys"
|
||||
.SH " Разные команды"
|
||||
@ -1756,7 +1756,7 @@ desc \- регулярное выражение. Обратите внимани
|
||||
образом ищется файл
|
||||
.BR ~/.config/mc/menu ,
|
||||
и в последнюю очередь mc использует общесистемное меню
|
||||
.BR %prefix%/share/mc/mc.menu .
|
||||
.BR %pkgdatadir%/mc.menu .
|
||||
.PP
|
||||
Формат всех трёх файлов меню одинаков и очень прост. Строки комментариев
|
||||
начинаются с '#'. Дополнительные комментарии должны начинаться с '#',
|
||||
@ -3509,7 +3509,7 @@ ASCII и шестнадцатеричный (hex). Для переключени
|
||||
.BR F9 ,
|
||||
или переназначить клавишу) будет осуществляться форматирование выделенного
|
||||
блока кода на языке C, C++ или других. Форматирование управляется файлом
|
||||
.B %prefix%/share/mc/edit.indent.rc
|
||||
.B %pkgdatadir%/edit.indent.rc
|
||||
который при первом вызове копируется в
|
||||
.B ~/.local/share/mc/mcedit/edit.indent.rc
|
||||
в вашем домашнем каталоге.
|
||||
@ -3651,7 +3651,7 @@ tar\-файлов;
|
||||
файловых систем описаны в отдельных разделах по каждой ВФС:
|
||||
.IP
|
||||
.\"LINK2"
|
||||
Файловая система ftpfs (FTP File System)
|
||||
Файловая система ftpfs
|
||||
.\"FTP File System"
|
||||
.br
|
||||
.\"LINK2"
|
||||
@ -3669,9 +3669,7 @@ tar\-файлов;
|
||||
.\"LINK2"
|
||||
Файловая система UFS (Undelete File System)
|
||||
.\"Undelete File System"
|
||||
.br
|
||||
.\"LINK2"
|
||||
.\"NODE " FTP File System"
|
||||
.\"NODE "FTP File System"
|
||||
.SH "Файловая система ftpfs"
|
||||
Файловая система ftpfs позволяет работать с файлами на удалённых
|
||||
компьютерах. Для этого можно использовать команду "FTP\-соединение"
|
||||
@ -3725,7 +3723,7 @@ anonymous или имя из файла ~/.netrc. Необязательный
|
||||
меню "Настройки". В таком случае программа всегда будет использовать
|
||||
указанный прокси\-сервер. При этом (если опция установлена) программа
|
||||
делает следующее: считывает из файла
|
||||
.B %prefix%/share/mc/mc.no_proxy
|
||||
.B %sysconfdir%/mc/mc.no_proxy
|
||||
имена локальных машин (если имя начинается с точки, оно считается именем
|
||||
домена), и, если заданное при установлении FTP\-соединения имя машины
|
||||
совпадает с одним из имен, указанных в файле
|
||||
@ -4199,7 +4197,7 @@ menuhotsel=yellow;black;bold+underline
|
||||
.B %sysconfdir%/mc/skins/default.ini
|
||||
.br
|
||||
5) файл
|
||||
.B %prefix%/share/mc/skins/default.ini
|
||||
.B %pkgdatadir%/skins/default.ini
|
||||
.PP
|
||||
Параметры в трёх первых случаях могут содержать абсолютный путь к скин\-файлу
|
||||
либо просто название скина (с расширением \.ini либо без него). В данном
|
||||
@ -4214,7 +4212,7 @@ menuhotsel=yellow;black;bold+underline
|
||||
.B %sysconfdir%/mc/skins/
|
||||
.br
|
||||
3)
|
||||
.B %prefix%/share/mc/skins/
|
||||
.B %pkgdatadir%/skins/
|
||||
.br
|
||||
.PP
|
||||
Для получения расширенной информации, обратитесь к подразделам:
|
||||
@ -4818,11 +4816,11 @@ insert=\\e[Op
|
||||
узнать имя этого каталога, дайте команду
|
||||
.BR "mc \-f" .
|
||||
.PP
|
||||
.I %prefix%/share/mc/help/mc.hlp
|
||||
.I %pkgdatadir%/help/mc.hlp
|
||||
.IP
|
||||
Файл подсказки для программы.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.ext
|
||||
.I %pkgdatadir%/mc.ext
|
||||
.IP
|
||||
Используемый по умолчанию общесистемный файл расширений.
|
||||
.PP
|
||||
@ -4833,15 +4831,15 @@ insert=\\e[Op
|
||||
.PP
|
||||
.I %sysconfdir%/mc/mc.ini
|
||||
.RE
|
||||
.I %prefix%/share/mc/mc.ini
|
||||
.I %pkgdatadir%/mc.ini
|
||||
.IP
|
||||
Общесистемные файлы установок для Midnight Commander; используются только
|
||||
в тех случаях, когда пользователь не имеет своего файла
|
||||
.BR ~/.config/mc/ini .
|
||||
Если файл %sysconfdir%/mc/mc.ini существует, то %prefix%/share/mc/mc.ini
|
||||
Если файл %sysconfdir%/mc/mc.ini существует, то %pkgdatadir%/mc.ini
|
||||
не используется.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.lib
|
||||
.I %pkgdatadir%/mc.lib
|
||||
.IP
|
||||
Глобальные установки для Midnight Commander. Установки из этого файла
|
||||
действительны для всех пользователей, независимо от того, имеют ли они
|
||||
@ -4857,12 +4855,12 @@ insert=\\e[Op
|
||||
установки загружаются из него, а не из общесистемного инициализационного
|
||||
файла программы.
|
||||
.PP
|
||||
.I %prefix%/share/mc/hints/mc.hint
|
||||
.I %pkgdatadir%/hints/mc.hint
|
||||
.IP
|
||||
Этот файл содержит подсказки (hints или cookies), циклически
|
||||
отображаемые программой.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.menu
|
||||
.I %pkgdatadir%/mc.menu
|
||||
.IP
|
||||
Этот файл содержит общесистемное меню приложений.
|
||||
.PP
|
||||
|
@ -61,9 +61,9 @@ termcap/terminfo. Корисно је само на ХП\-овим термин
|
||||
посебног списа љуске који аутоматски поставља текући директоријум
|
||||
љуске на последњи директоријум у коме се налазио Поноћни наредник.
|
||||
Учитајте датотеку
|
||||
.B %libexecdir%/mc/mc.sh
|
||||
.B %pkglibexecdir%/mc.sh
|
||||
(за кориснике љуски bash и zsh) или
|
||||
.B %libexecdir%/mc/mc.csh
|
||||
.B %pkglibexecdir%/mc.csh
|
||||
(за кориснике љуске tcsh), тим редом, да бисте задали
|
||||
.B mc
|
||||
као надимак за одговарајући спис љуске.
|
||||
@ -1375,7 +1375,7 @@ awk '$9 ~! /incoming/ { print $9 }' < /var/log/xferlog
|
||||
дозвољен упис у њу од стране других (света). Ако таква датотека није
|
||||
нађена, на исти начин се покушава са датотеком ~/.config/mc/menu, а иначе ПН
|
||||
користи подразумевану датотеку менија за цео систем
|
||||
%prefix%/share/mc/mc.menu.
|
||||
%pkgdatadir%/mc.menu.
|
||||
.PP
|
||||
Формат датотеке менија је веома једноставан. Редови који почињу било
|
||||
чим осим размака или табулатора се узимају за ставке менија (да би се
|
||||
@ -1883,7 +1883,7 @@ ftpfs чува списак директоријума који добавља
|
||||
за примере.
|
||||
.PP
|
||||
Ако је овај избор укључен, програм ће или: гледати датотеку
|
||||
%prefix%/lib/mc/mc.no_proxy и тражити редове који садрже називе
|
||||
%sysconfdir%/mc/mc.no_proxy и тражити редове који садрже називе
|
||||
домаћина који су локални (ако назив домаћина почиње тачком,
|
||||
претпоставља се да се ради о домену) и претпоставиће да су називи
|
||||
домаћина без тачака непосредно приступачни. Свим другим домаћинима ће
|
||||
@ -2529,7 +2529,7 @@ if the
|
||||
или
|
||||
.B Це++
|
||||
или другом). Овим се управља преко датотеке
|
||||
.B %prefix%/share/mc/edit.indent.rc
|
||||
.B %pkgdatadir%/edit.indent.rc
|
||||
која ће бити копирана у
|
||||
.B ~/.local/share/mc/mcedit/edit.indent.rc
|
||||
у вашем домаћем директоријуму први пут када је будете користили.
|
||||
@ -3145,13 +3145,13 @@ insert=\\e[Op
|
||||
Програм ће добавити све своје податке у односу на променљиву окружења
|
||||
.BR MC_DATADIR .
|
||||
Ако ова променљива није постављена, биће употребљен директоријум
|
||||
%prefix%/share/mc.
|
||||
%pkgdatadir%.
|
||||
.PP
|
||||
.I %prefix%/share/mc/help/mc.hlp
|
||||
.I %pkgdatadir%/help/mc.hlp
|
||||
.IP
|
||||
Датотека помоћи за програм.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.ext
|
||||
.I %pkgdatadir%/mc.ext
|
||||
.IP
|
||||
Подразумевана системска датотека врста.
|
||||
.PP
|
||||
@ -3160,12 +3160,12 @@ insert=\\e[Op
|
||||
Корисничке датотеке врста, подешавања прегледача и уређивача. Уколико
|
||||
постоје, оне заобилазе системске датотеке.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.ini
|
||||
.I %pkgdatadir%/mc.ini
|
||||
.IP
|
||||
Подразумевана системска подешавања Поноћног наредника; користе се само
|
||||
у случају да корисник нема сопствену датотеку ~/.config/mc/ini.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.lib
|
||||
.I %pkgdatadir%/mc.lib
|
||||
.IP
|
||||
Глобалне поставке Поноћног наредника. Поставке из ове датотеке се
|
||||
односе на све кориснике без обзира на то да ли они имају своје
|
||||
@ -3180,11 +3180,11 @@ insert=\\e[Op
|
||||
Корисничка подешавања. Ако је ова датотека присутна, подешавања се
|
||||
учитавају из ње уместо из системске почетне датотеке.
|
||||
.PP
|
||||
.I %prefix%/share/mc/hints/mc.hint
|
||||
.I %pkgdatadir%/hints/mc.hint
|
||||
.IP
|
||||
Ова датотека садржи савете (колачиће) који се приказују у програму.
|
||||
.PP
|
||||
.I %prefix%/share/mc/mc.menu
|
||||
.I %pkgdatadir%/mc.menu
|
||||
.IP
|
||||
Ова датотека садржи подразумевани мени програма за цео систем.
|
||||
.PP
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Text conversion from one charset to another.
|
||||
|
||||
Copyright (C) 2001-2021
|
||||
Copyright (C) 2001-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Handle events in application.
|
||||
Interface functions: init/deinit; start/stop
|
||||
|
||||
Copyright (C) 2011-2021
|
||||
Copyright (C) 2011-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Handle any events in application.
|
||||
Manage events: add, delete, destroy, search
|
||||
|
||||
Copyright (C) 2011-2021
|
||||
Copyright (C) 2011-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Handle any events in application.
|
||||
Raise events.
|
||||
|
||||
Copyright (C) 2011-2021
|
||||
Copyright (C) 2011-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -23,7 +23,7 @@ typedef struct mc_fhl_struct
|
||||
mc_fhl_t *mc_fhl_new (gboolean need_auto_fill);
|
||||
void mc_fhl_free (mc_fhl_t ** fhl);
|
||||
|
||||
int mc_fhl_get_color (mc_fhl_t * fhl, file_entry_t * fe);
|
||||
int mc_fhl_get_color (const mc_fhl_t * fhl, const file_entry_t * fe);
|
||||
|
||||
gboolean mc_fhl_read_ini_file (mc_fhl_t * fhl, const gchar * filename);
|
||||
gboolean mc_fhl_parse_ini_file (mc_fhl_t * fhl);
|
||||
|
@ -2,7 +2,7 @@
|
||||
File highlight plugin.
|
||||
Interface functions
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
File highlight plugin.
|
||||
Interface functions. get color pair index for highlighted file.
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
@ -47,7 +47,7 @@
|
||||
|
||||
/*inline functions */
|
||||
inline static gboolean
|
||||
mc_fhl_is_file (file_entry_t * fe)
|
||||
mc_fhl_is_file (const file_entry_t * fe)
|
||||
{
|
||||
#if HAVE_S_ISREG == 0
|
||||
(void) fe;
|
||||
@ -56,13 +56,13 @@ mc_fhl_is_file (file_entry_t * fe)
|
||||
}
|
||||
|
||||
inline static gboolean
|
||||
mc_fhl_is_file_exec (file_entry_t * fe)
|
||||
mc_fhl_is_file_exec (const file_entry_t * fe)
|
||||
{
|
||||
return is_exe (fe->st.st_mode);
|
||||
}
|
||||
|
||||
inline static gboolean
|
||||
mc_fhl_is_dir (file_entry_t * fe)
|
||||
mc_fhl_is_dir (const file_entry_t * fe)
|
||||
{
|
||||
#if HAVE_S_ISDIR == 0
|
||||
(void) fe;
|
||||
@ -71,7 +71,7 @@ mc_fhl_is_dir (file_entry_t * fe)
|
||||
}
|
||||
|
||||
inline static gboolean
|
||||
mc_fhl_is_link (file_entry_t * fe)
|
||||
mc_fhl_is_link (const file_entry_t * fe)
|
||||
{
|
||||
#if HAVE_S_ISLNK == 0
|
||||
(void) fe;
|
||||
@ -80,25 +80,25 @@ mc_fhl_is_link (file_entry_t * fe)
|
||||
}
|
||||
|
||||
inline static gboolean
|
||||
mc_fhl_is_hlink (file_entry_t * fe)
|
||||
mc_fhl_is_hlink (const file_entry_t * fe)
|
||||
{
|
||||
return (fe->st.st_nlink > 1);
|
||||
}
|
||||
|
||||
inline static gboolean
|
||||
mc_fhl_is_link_to_dir (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
|
||||
mc_fhl_is_stale_link (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);
|
||||
}
|
||||
|
||||
inline static gboolean
|
||||
mc_fhl_is_device_char (file_entry_t * fe)
|
||||
mc_fhl_is_device_char (const file_entry_t * fe)
|
||||
{
|
||||
#if HAVE_S_ISCHR == 0
|
||||
(void) fe;
|
||||
@ -107,7 +107,7 @@ mc_fhl_is_device_char (file_entry_t * fe)
|
||||
}
|
||||
|
||||
inline static gboolean
|
||||
mc_fhl_is_device_block (file_entry_t * fe)
|
||||
mc_fhl_is_device_block (const file_entry_t * fe)
|
||||
{
|
||||
#if HAVE_S_ISBLK == 0
|
||||
(void) fe;
|
||||
@ -116,7 +116,7 @@ mc_fhl_is_device_block (file_entry_t * fe)
|
||||
}
|
||||
|
||||
inline static gboolean
|
||||
mc_fhl_is_special_socket (file_entry_t * fe)
|
||||
mc_fhl_is_special_socket (const file_entry_t * fe)
|
||||
{
|
||||
#if HAVE_S_ISSOCK == 0
|
||||
(void) fe;
|
||||
@ -125,7 +125,7 @@ mc_fhl_is_special_socket (file_entry_t * fe)
|
||||
}
|
||||
|
||||
inline static gboolean
|
||||
mc_fhl_is_special_fifo (file_entry_t * fe)
|
||||
mc_fhl_is_special_fifo (const file_entry_t * fe)
|
||||
{
|
||||
#if HAVE_S_ISFIFO == 0
|
||||
(void) fe;
|
||||
@ -134,31 +134,30 @@ mc_fhl_is_special_fifo (file_entry_t * fe)
|
||||
}
|
||||
|
||||
inline static gboolean
|
||||
mc_fhl_is_special_door (file_entry_t * fe)
|
||||
mc_fhl_is_special_door (const file_entry_t * fe)
|
||||
{
|
||||
#if HAVE_S_ISDOOR == 0
|
||||
(void) fe;
|
||||
#endif
|
||||
|
||||
return S_ISDOOR (fe->st.st_mode);
|
||||
}
|
||||
|
||||
|
||||
inline static gboolean
|
||||
mc_fhl_is_special (file_entry_t * fe)
|
||||
mc_fhl_is_special (const file_entry_t * fe)
|
||||
{
|
||||
return
|
||||
(mc_fhl_is_special_socket (fe) || mc_fhl_is_special_fifo (fe)
|
||||
|| mc_fhl_is_special_door (fe));
|
||||
}
|
||||
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
static int
|
||||
mc_fhl_get_color_filetype (mc_fhl_filter_t * mc_filter, mc_fhl_t * fhl, file_entry_t * fe)
|
||||
mc_fhl_get_color_filetype (const mc_fhl_filter_t * mc_filter, const mc_fhl_t * fhl,
|
||||
const file_entry_t * fe)
|
||||
{
|
||||
gboolean my_color = FALSE;
|
||||
|
||||
(void) fhl;
|
||||
|
||||
switch (mc_filter->file_type)
|
||||
@ -168,7 +167,7 @@ mc_fhl_get_color_filetype (mc_fhl_filter_t * mc_filter, mc_fhl_t * fhl, file_ent
|
||||
my_color = TRUE;
|
||||
break;
|
||||
case MC_FLHGH_FTYPE_T_FILE_EXE:
|
||||
if ((mc_fhl_is_file (fe)) && (mc_fhl_is_file_exec (fe)))
|
||||
if (mc_fhl_is_file (fe) && mc_fhl_is_file_exec (fe))
|
||||
my_color = TRUE;
|
||||
break;
|
||||
case MC_FLHGH_FTYPE_T_DIR:
|
||||
@ -180,7 +179,7 @@ mc_fhl_get_color_filetype (mc_fhl_filter_t * mc_filter, mc_fhl_t * fhl, file_ent
|
||||
my_color = TRUE;
|
||||
break;
|
||||
case MC_FLHGH_FTYPE_T_LINK:
|
||||
if ((mc_fhl_is_link (fe)) || (mc_fhl_is_hlink (fe)))
|
||||
if (mc_fhl_is_link (fe) || mc_fhl_is_hlink (fe))
|
||||
my_color = TRUE;
|
||||
break;
|
||||
case MC_FLHGH_FTYPE_T_HARDLINK:
|
||||
@ -196,7 +195,7 @@ mc_fhl_get_color_filetype (mc_fhl_filter_t * mc_filter, mc_fhl_t * fhl, file_ent
|
||||
my_color = TRUE;
|
||||
break;
|
||||
case MC_FLHGH_FTYPE_T_DEVICE:
|
||||
if ((mc_fhl_is_device_char (fe)) || (mc_fhl_is_device_block (fe)))
|
||||
if (mc_fhl_is_device_char (fe) || mc_fhl_is_device_block (fe))
|
||||
my_color = TRUE;
|
||||
break;
|
||||
case MC_FLHGH_FTYPE_T_DEVICE_BLOCK:
|
||||
@ -227,15 +226,17 @@ mc_fhl_get_color_filetype (mc_fhl_filter_t * mc_filter, mc_fhl_t * fhl, file_ent
|
||||
break;
|
||||
}
|
||||
|
||||
return (my_color) ? mc_filter->color_pair_index : -1;
|
||||
return my_color ? mc_filter->color_pair_index : -1;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
static int
|
||||
mc_fhl_get_color_regexp (mc_fhl_filter_t * mc_filter, mc_fhl_t * fhl, file_entry_t * fe)
|
||||
mc_fhl_get_color_regexp (const mc_fhl_filter_t * mc_filter, const mc_fhl_t * fhl,
|
||||
const file_entry_t * fe)
|
||||
{
|
||||
(void) fhl;
|
||||
|
||||
if (mc_filter->search_condition == NULL)
|
||||
return -1;
|
||||
|
||||
@ -252,7 +253,7 @@ mc_fhl_get_color_regexp (mc_fhl_filter_t * mc_filter, mc_fhl_t * fhl, file_entry
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
int
|
||||
mc_fhl_get_color (mc_fhl_t * fhl, file_entry_t * fe)
|
||||
mc_fhl_get_color (const mc_fhl_t * fhl, const file_entry_t * fe)
|
||||
{
|
||||
guint i;
|
||||
int ret;
|
||||
|
@ -2,7 +2,7 @@
|
||||
File highlight plugin.
|
||||
Reading and parse rules from ini-files
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
GLIB - Library of useful routines for C programming
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Global structure for some library-related variables
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -4,7 +4,7 @@
|
||||
Slavaz: Warning! this file is deprecated and should be replaced
|
||||
by mcevents functional.
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Definitions of key bindings.
|
||||
|
||||
Copyright (C) 2005-2021
|
||||
Copyright (C) 2005-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
File locking
|
||||
|
||||
Copyright (C) 2003-2021
|
||||
Copyright (C) 2003-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Provides a log file to ease tracing the program.
|
||||
|
||||
Copyright (C) 2006-2021
|
||||
Copyright (C) 2006-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Configure module for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the Midnight Commander.
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Configure module for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the Midnight Commander.
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
paths to configuration files
|
||||
|
||||
Copyright (C) 2010-2021
|
||||
Copyright (C) 2010-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Configure module for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the Midnight Commander.
|
||||
|
@ -2,7 +2,7 @@
|
||||
Search text engine.
|
||||
Glob-style pattern matching
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
@ -191,9 +191,12 @@ mc_search__run_glob (mc_search_t * lc_mc_search, const void *user_data,
|
||||
GString *
|
||||
mc_search_glob_prepare_replace_str (mc_search_t * lc_mc_search, GString * replace_str)
|
||||
{
|
||||
GString *repl = mc_search__translate_replace_glob_to_regex (replace_str->str);
|
||||
GString *res = mc_search_regex_prepare_replace_str (lc_mc_search, repl);
|
||||
GString *repl, *res;
|
||||
|
||||
repl = mc_search__translate_replace_glob_to_regex (replace_str->str);
|
||||
res = mc_search_regex_prepare_replace_str (lc_mc_search, repl);
|
||||
g_string_free (repl, TRUE);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
Search text engine.
|
||||
HEX-style pattern matching
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Search text engine.
|
||||
Common share code for module.
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Search text engine.
|
||||
Plain search
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Search text engine.
|
||||
Regex search
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
@ -820,7 +820,6 @@ mc_search__cond_struct_new_init_regex (const char *charset, mc_search_t * lc_mc_
|
||||
tmp = mc_search_cond->str;
|
||||
mc_search_cond->str = mc_search__cond_struct_new_regex_ci_str (charset, tmp);
|
||||
g_string_free (tmp, TRUE);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -847,16 +846,13 @@ mc_search__cond_struct_new_init_regex (const char *charset, mc_search_t * lc_mc_
|
||||
if (!lc_mc_search->is_case_sensitive)
|
||||
pcre_options |= PCRE_CASELESS;
|
||||
}
|
||||
else
|
||||
else if (!lc_mc_search->is_case_sensitive)
|
||||
{
|
||||
if (!lc_mc_search->is_case_sensitive)
|
||||
{
|
||||
GString *tmp;
|
||||
GString *tmp;
|
||||
|
||||
tmp = mc_search_cond->str;
|
||||
mc_search_cond->str = mc_search__cond_struct_new_regex_ci_str (charset, tmp);
|
||||
g_string_free (tmp, TRUE);
|
||||
}
|
||||
tmp = mc_search_cond->str;
|
||||
mc_search_cond->str = mc_search__cond_struct_new_regex_ci_str (charset, tmp);
|
||||
g_string_free (tmp, TRUE);
|
||||
}
|
||||
|
||||
mc_search_cond->regex_handle =
|
||||
|
@ -2,7 +2,7 @@
|
||||
Search text engine.
|
||||
Interface functions
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
@ -94,17 +94,17 @@ mc_search__cond_struct_new (mc_search_t * lc_mc_search, const char *str,
|
||||
static void
|
||||
mc_search__cond_struct_free (mc_search_cond_t * mc_search_cond)
|
||||
{
|
||||
if (mc_search_cond->upper)
|
||||
if (mc_search_cond->upper != NULL)
|
||||
g_string_free (mc_search_cond->upper, TRUE);
|
||||
|
||||
if (mc_search_cond->lower)
|
||||
if (mc_search_cond->lower != NULL)
|
||||
g_string_free (mc_search_cond->lower, TRUE);
|
||||
|
||||
g_string_free (mc_search_cond->str, TRUE);
|
||||
g_free (mc_search_cond->charset);
|
||||
|
||||
#ifdef SEARCH_TYPE_GLIB
|
||||
if (mc_search_cond->regex_handle)
|
||||
if (mc_search_cond->regex_handle != NULL)
|
||||
g_regex_unref (mc_search_cond->regex_handle);
|
||||
#else /* SEARCH_TYPE_GLIB */
|
||||
g_free (mc_search_cond->regex_handle);
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Provides a serialize/unserialize functionality for INI-like formats.
|
||||
|
||||
Copyright (C) 2011-2021
|
||||
Copyright (C) 2011-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Provides a functions for working with shell.
|
||||
|
||||
Copyright (C) 2006-2021
|
||||
Copyright (C) 2006-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Skins engine.
|
||||
Work with colors - backward compatibility
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Skins engine.
|
||||
Work with colors
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Skins engine.
|
||||
Interface functions
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Skins engine.
|
||||
Set of hardcoded skins
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Skins engine.
|
||||
Reading and parse ini-files
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Skins engine.
|
||||
Work with line draving chars.
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -540,24 +540,51 @@ int str_verscmp (const char *s1, const char *s2);
|
||||
|
||||
/* Compare version strings:
|
||||
|
||||
This function compares strings s1 and s2:
|
||||
1) By PREFIX in the same way as strcmp.
|
||||
2) Then by VERSION (most similarly to version compare of Debian's dpkg).
|
||||
Leading zeros in version numbers are ignored.
|
||||
3) If both (PREFIX and VERSION) are equal, strcmp function is used for
|
||||
comparison. So this function can return 0 if (and only if) strings s1
|
||||
and s2 are identical.
|
||||
Compare strings a and b as file names containing version numbers, and return an integer
|
||||
that is negative, zero, or positive depending on whether a compares less than, equal to,
|
||||
or greater than b.
|
||||
|
||||
It returns number > 0 for s1 > s2, 0 for s1 == s2 and number < 0 for s1 < s2.
|
||||
Use the following version sort algorithm:
|
||||
|
||||
This function compares strings, in a way that if VER1 and VER2 are version
|
||||
numbers and PREFIX and SUFFIX (SUFFIX defined as (\.[A-Za-z~][A-Za-z0-9~]*)*)
|
||||
are strings then VER1 < VER2 implies filevercmp (PREFIX VER1 SUFFIX,
|
||||
PREFIX VER2 SUFFIX) < 0.
|
||||
1. Compare the strings' maximal-length non-digit prefixes lexically.
|
||||
If there is a difference return that difference.
|
||||
Otherwise discard the prefixes and continue with the next step.
|
||||
|
||||
This function is intended to be a replacement for strverscmp.
|
||||
2. Compare the strings' maximal-length digit prefixes, using numeric comparison
|
||||
of the numbers represented by each prefix. (Treat an empty prefix as zero; this can
|
||||
happen only at string end.)
|
||||
If there is a difference, return that difference.
|
||||
Otherwise discard the prefixes and continue with the next step.
|
||||
|
||||
3. If both strings are empty, return 0. Otherwise continue with step 1.
|
||||
|
||||
In version sort, lexical comparison is left to right, byte by byte, using the byte's numeric
|
||||
value (0-255), except that:
|
||||
|
||||
1. ASCII letters sort before other bytes.
|
||||
2. A tilde sorts before anything, even an empty string.
|
||||
|
||||
In addition to the version sort rules, the following strings have special priority and sort
|
||||
before all other strings (listed in order):
|
||||
|
||||
1. The empty string.
|
||||
2. ".".
|
||||
3. "..".
|
||||
4. Strings starting with "." sort before other strings.
|
||||
|
||||
Before comparing two strings where both begin with non-".", or where both begin with "."
|
||||
but neither is "." or "..", suffixes matching the C-locale extended regular expression
|
||||
(\.[A-Za-z~][A-Za-z0-9~]*)*$ are removed and the strings compared without them, using version sort
|
||||
without special priority; if they do not compare equal, this comparison result is used and
|
||||
the suffixes are effectively ignored. Otherwise, the entire strings are compared using version sort.
|
||||
*/
|
||||
int filevercmp (const char *s1, const char *s2);
|
||||
int filevercmp (const char *a, const char *b);
|
||||
|
||||
/* Like filevercmp, except compare the byte arrays a (of length alen) and b (of length blen)
|
||||
so that a and b can contain '\0', which sorts just before '\1'. But if alen is -1 treat
|
||||
a as a string terminated by '\0', and similarly for blen.
|
||||
*/
|
||||
int filenvercmp (char const *a, ssize_t alen, char const *b, ssize_t blen);
|
||||
|
||||
|
||||
/* return how many lines and columns will text occupy on terminal
|
||||
|
@ -1,27 +1,25 @@
|
||||
/*
|
||||
Copyright (C) 1995 Ian Jackson <iwj10@cus.cam.ac.uk>
|
||||
Copyright (C) 2001 Anthony Towns <aj@azure.humbug.org.au>
|
||||
Copyright (C) 2008-2018 Free Software Foundation, Inc.
|
||||
Copyright (C) 2008-2022 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
This file is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "lib/strutil.h"
|
||||
@ -38,53 +36,68 @@
|
||||
/*** file scope functions ************************************************************************/
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
/* Match a file suffix defined by this regular expression: /(\.[A-Za-z~][A-Za-z0-9~]*)*$/
|
||||
/* Return the length of a prefix of @s that corresponds to the suffix defined by this extended
|
||||
* regular expression in the C locale: (\.[A-Za-z~][A-Za-z0-9~]*)*$
|
||||
*
|
||||
* @str pointer to string to scan.
|
||||
*
|
||||
* @return pointer to the matching suffix, or NULL if not found.
|
||||
* Upon return, @str points to terminating NUL.
|
||||
* If *len is -1, s is a string; set *lem to s's length.
|
||||
* Otherwise, *len should be nonnegative, s is a char array, and *len does not change.
|
||||
*/
|
||||
static const char *
|
||||
match_suffix (const char **str)
|
||||
static ssize_t
|
||||
file_prefixlen (const char *s, ssize_t * len)
|
||||
{
|
||||
const char *match = NULL;
|
||||
gboolean read_alpha = FALSE;
|
||||
size_t n = (size_t) (*len); /* SIZE_MAX if N == -1 */
|
||||
size_t i;
|
||||
|
||||
while (**str != '\0')
|
||||
for (i = 0;; i++)
|
||||
{
|
||||
if (read_alpha)
|
||||
{
|
||||
read_alpha = FALSE;
|
||||
if (!g_ascii_isalpha (**str) && **str != '~')
|
||||
match = NULL;
|
||||
}
|
||||
else if (**str == '.')
|
||||
{
|
||||
read_alpha = TRUE;
|
||||
if (match == NULL)
|
||||
match = *str;
|
||||
}
|
||||
else if (!g_ascii_isalnum (**str) && **str != '~')
|
||||
match = NULL;
|
||||
(*str)++;
|
||||
}
|
||||
size_t prefixlen = i;
|
||||
gboolean done;
|
||||
|
||||
return match;
|
||||
while (i + 1 < n && s[i] == '.' && (g_ascii_isalpha (s[i + 1]) || s[i + 1] == '~'))
|
||||
for (i += 2; i < n && (g_ascii_isalnum (s[i]) || s[i] == '~'); i++)
|
||||
;
|
||||
|
||||
if (*len < 0)
|
||||
done = s[i] == '\0';
|
||||
else
|
||||
done = i == n;
|
||||
|
||||
if (done)
|
||||
{
|
||||
*len = (ssize_t) i;
|
||||
return (ssize_t) prefixlen;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
/* verrevcmp helper function */
|
||||
/* Return a version sort comparison value for @s's byte at position @pos.
|
||||
*
|
||||
* @param s a string
|
||||
* @param pos a position in @s
|
||||
* @param len a length of @s. If @pos == @len, sort before all non-'~' bytes.
|
||||
*/
|
||||
|
||||
static int
|
||||
order (unsigned char c)
|
||||
order (const char *s, size_t pos, size_t len)
|
||||
{
|
||||
unsigned char c;
|
||||
|
||||
if (pos == len)
|
||||
return (-1);
|
||||
|
||||
c = s[pos];
|
||||
|
||||
if (g_ascii_isdigit (c))
|
||||
return 0;
|
||||
if (g_ascii_isalpha (c))
|
||||
return c;
|
||||
if (c == '~')
|
||||
return -1;
|
||||
return (-2);
|
||||
|
||||
g_assert (UCHAR_MAX <= (INT_MAX - 1 - 2) / 2);
|
||||
|
||||
return (int) c + UCHAR_MAX + 1;
|
||||
}
|
||||
|
||||
@ -99,18 +112,18 @@ order (unsigned char c)
|
||||
* implements that from s5.6.12 of Debian Policy v3.8.0.1
|
||||
* https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version
|
||||
*
|
||||
* @s1 first string to compare
|
||||
* @s1_len length of @s1
|
||||
* @s2 second string to compare
|
||||
* @s2_len length of @s2
|
||||
* @param s1 first char array to compare
|
||||
* @param s1_len length of @s1
|
||||
* @param s2 second char array to compare
|
||||
* @param s2_len length of @s2
|
||||
*
|
||||
* @return an integer less than, equal to, or greater than zero, if @s1 is <, == or > than @s2.
|
||||
*/
|
||||
static int
|
||||
verrevcmp (const char *s1, size_t s1_len, const char *s2, size_t s2_len)
|
||||
verrevcmp (const char *s1, ssize_t s1_len, const char *s2, ssize_t s2_len)
|
||||
{
|
||||
size_t s1_pos = 0;
|
||||
size_t s2_pos = 0;
|
||||
ssize_t s1_pos = 0;
|
||||
ssize_t s2_pos = 0;
|
||||
|
||||
while (s1_pos < s1_len || s2_pos < s2_len)
|
||||
{
|
||||
@ -119,13 +132,10 @@ verrevcmp (const char *s1, size_t s1_len, const char *s2, size_t s2_len)
|
||||
while ((s1_pos < s1_len && !g_ascii_isdigit (s1[s1_pos]))
|
||||
|| (s2_pos < s2_len && !g_ascii_isdigit (s2[s2_pos])))
|
||||
{
|
||||
int s1_c = 0;
|
||||
int s2_c = 0;
|
||||
int s1_c, s2_c;
|
||||
|
||||
if (s1_pos != s1_len)
|
||||
s1_c = order (s1[s1_pos]);
|
||||
if (s2_pos != s2_len)
|
||||
s2_c = order (s2[s2_pos]);
|
||||
s1_c = order (s1, s1_pos, s1_len);
|
||||
s2_c = order (s2, s2_pos, s2_len);
|
||||
|
||||
if (s1_c != s2_c)
|
||||
return (s1_c - s2_c);
|
||||
@ -134,12 +144,13 @@ verrevcmp (const char *s1, size_t s1_len, const char *s2, size_t s2_len)
|
||||
s2_pos++;
|
||||
}
|
||||
|
||||
while (s1[s1_pos] == '0')
|
||||
while (s1_pos < s1_len && s1[s1_pos] == '0')
|
||||
s1_pos++;
|
||||
while (s2[s2_pos] == '0')
|
||||
while (s2_pos < s2_len && s2[s2_pos] == '0')
|
||||
s2_pos++;
|
||||
|
||||
while (g_ascii_isdigit (s1[s1_pos]) && g_ascii_isdigit (s2[s2_pos]))
|
||||
while (s1_pos < s1_len && s2_pos < s2_len
|
||||
&& g_ascii_isdigit (s1[s1_pos]) && g_ascii_isdigit (s2[s2_pos]))
|
||||
{
|
||||
if (first_diff == 0)
|
||||
first_diff = s1[s1_pos] - s2[s2_pos];
|
||||
@ -148,10 +159,10 @@ verrevcmp (const char *s1, size_t s1_len, const char *s2, size_t s2_len)
|
||||
s2_pos++;
|
||||
}
|
||||
|
||||
if (g_ascii_isdigit (s1[s1_pos]))
|
||||
if (s1_pos < s1_len && g_ascii_isdigit (s1[s1_pos]))
|
||||
return 1;
|
||||
if (g_ascii_isdigit (s2[s2_pos]))
|
||||
return -1;
|
||||
if (s2_pos < s2_len && g_ascii_isdigit (s2[s2_pos]))
|
||||
return (-1);
|
||||
if (first_diff != 0)
|
||||
return first_diff;
|
||||
}
|
||||
@ -165,68 +176,84 @@ verrevcmp (const char *s1, size_t s1_len, const char *s2, size_t s2_len)
|
||||
|
||||
/* Compare version strings.
|
||||
*
|
||||
* @s1 first string to compare
|
||||
* @s2 second string to compare
|
||||
* @param s1 first string to compare
|
||||
* @param s2 second string to compare
|
||||
*
|
||||
* @return an integer less than, equal to, or greater than zero, if @s1 is <, == or > than @s2.
|
||||
*/
|
||||
int
|
||||
filevercmp (const char *s1, const char *s2)
|
||||
{
|
||||
const char *s1_pos, *s2_pos;
|
||||
const char *s1_suffix, *s2_suffix;
|
||||
size_t s1_len, s2_len;
|
||||
int simple_cmp, result;
|
||||
|
||||
/* easy comparison to see if strings are identical */
|
||||
simple_cmp = strcmp (s1, s2);
|
||||
if (simple_cmp == 0)
|
||||
return 0;
|
||||
|
||||
/* special handle for "", "." and ".." */
|
||||
if (*s1 == '\0')
|
||||
return -1;
|
||||
if (*s2 == '\0')
|
||||
return 1;
|
||||
if (DIR_IS_DOT (s1))
|
||||
return -1;
|
||||
if (DIR_IS_DOT (s2))
|
||||
return 1;
|
||||
if (DIR_IS_DOTDOT (s1))
|
||||
return -1;
|
||||
if (DIR_IS_DOTDOT (s2))
|
||||
return 1;
|
||||
|
||||
/* special handle for other hidden files */
|
||||
if (*s1 == '.' && *s2 != '.')
|
||||
return -1;
|
||||
if (*s1 != '.' && *s2 == '.')
|
||||
return 1;
|
||||
if (*s1 == '.' && *s2 == '.')
|
||||
{
|
||||
s1++;
|
||||
s2++;
|
||||
}
|
||||
|
||||
/* "cut" file suffixes */
|
||||
s1_pos = s1;
|
||||
s2_pos = s2;
|
||||
s1_suffix = match_suffix (&s1_pos);
|
||||
s2_suffix = match_suffix (&s2_pos);
|
||||
s1_len = (s1_suffix != NULL ? s1_suffix : s1_pos) - s1;
|
||||
s2_len = (s2_suffix != NULL ? s2_suffix : s2_pos) - s2;
|
||||
|
||||
/* restore file suffixes if strings are identical after "cut" */
|
||||
if ((s1_suffix != NULL || s2_suffix != NULL) && (s1_len == s2_len)
|
||||
&& strncmp (s1, s2, s1_len) == 0)
|
||||
{
|
||||
s1_len = s1_pos - s1;
|
||||
s2_len = s2_pos - s2;
|
||||
}
|
||||
|
||||
result = verrevcmp (s1, s1_len, s2, s2_len);
|
||||
|
||||
return result == 0 ? simple_cmp : result;
|
||||
return filenvercmp (s1, -1, s2, -1);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
/* Compare version strings.
|
||||
*
|
||||
* @param a first string to compare
|
||||
* @param alen length of @a or (-1)
|
||||
* @param b second string to compare
|
||||
* @param blen length of @b or (-1)
|
||||
*
|
||||
* @return an integer less than, equal to, or greater than zero, if @s1 is <, == or > than @s2.
|
||||
*/
|
||||
int
|
||||
filenvercmp (const char *a, ssize_t alen, const char *b, ssize_t blen)
|
||||
{
|
||||
gboolean aempty, bempty;
|
||||
ssize_t aprefixlen, bprefixlen;
|
||||
gboolean one_pass_only;
|
||||
int result;
|
||||
|
||||
/* Special case for empty versions. */
|
||||
aempty = alen < 0 ? a[0] == '\0' : alen == 0;
|
||||
bempty = blen < 0 ? b[0] == '\0' : blen == 0;
|
||||
|
||||
if (aempty)
|
||||
return (bempty ? 0 : -1);
|
||||
if (bempty)
|
||||
return 1;
|
||||
|
||||
/* Special cases for leading ".": "." sorts first, then "..", then other names with leading ".",
|
||||
then other names. */
|
||||
if (a[0] == '.')
|
||||
{
|
||||
gboolean adot, bdot;
|
||||
gboolean adotdot, bdotdot;
|
||||
|
||||
if (b[0] != '.')
|
||||
return (-1);
|
||||
|
||||
adot = alen < 0 ? a[1] == '\0' : alen == 1;
|
||||
bdot = blen < 0 ? b[1] == '\0' : blen == 1;
|
||||
|
||||
if (adot)
|
||||
return (bdot ? 0 : -1);
|
||||
if (bdot)
|
||||
return 1;
|
||||
|
||||
adotdot = a[1] == '.' && (alen < 0 ? a[2] == '\0' : alen == 2);
|
||||
bdotdot = b[1] == '.' && (blen < 0 ? b[2] == '\0' : blen == 2);
|
||||
if (adotdot)
|
||||
return (bdotdot ? 0 : -1);
|
||||
if (bdotdot)
|
||||
return 1;
|
||||
}
|
||||
else if (b[0] == '.')
|
||||
return 1;
|
||||
|
||||
/* Cut file suffixes. */
|
||||
aprefixlen = file_prefixlen (a, &alen);
|
||||
bprefixlen = file_prefixlen (b, &blen);
|
||||
|
||||
/* If both suffixes are empty, a second pass would return the same thing. */
|
||||
one_pass_only = aprefixlen == alen && bprefixlen == blen;
|
||||
|
||||
result = verrevcmp (a, aprefixlen, b, bprefixlen);
|
||||
|
||||
/* Return the initial result if nonzero, or if no second pass is needed.
|
||||
Otherwise, restore the suffixes and try again. */
|
||||
return (result != 0 || one_pass_only ? result : verrevcmp (a, alen, b, blen));
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Functions for replacing substrings in strings.
|
||||
|
||||
Copyright (C) 2013-2021
|
||||
Copyright (C) 2013-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Functions for escaping and unescaping strings
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Common strings utilities
|
||||
|
||||
Copyright (C) 2007-2021
|
||||
Copyright (C) 2007-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
@ -150,6 +150,7 @@ _str_convert (GIConv coder, const char *string, int size, GString * buffer)
|
||||
{
|
||||
case G_CONVERT_ERROR_NO_CONVERSION:
|
||||
/* Conversion between the requested character sets is not supported. */
|
||||
g_free (tmp_buff);
|
||||
tmp_buff = g_strnfill (strlen (string), '?');
|
||||
g_string_append (buffer, tmp_buff);
|
||||
g_free (tmp_buff);
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
8bit strings utilities
|
||||
|
||||
Copyright (C) 2007-2021
|
||||
Copyright (C) 2007-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
ASCII strings utilities
|
||||
|
||||
Copyright (C) 2007-2021
|
||||
Copyright (C) 2007-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
UTF-8 strings utilities
|
||||
|
||||
Copyright (C) 2007-2021
|
||||
Copyright (C) 2007-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Compare strings while treating digits characters numerically.
|
||||
|
||||
Copyright (C) 1997-2021
|
||||
Copyright (C) 1997-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU C Library.
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* A more useful interface to strtol.
|
||||
|
||||
Copyright (C) 1995-2021
|
||||
Copyright (C) 1995-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Time formatting functions
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Internal stuff of color setup
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Color setup for NCurses screen library
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Color setup for S_Lang screen library
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Color setup.
|
||||
Interface functions.
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Keyboard support routines.
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
@ -220,7 +220,6 @@ const key_code_name_t key_name_conv_tab[] = {
|
||||
|
||||
/*** file scope macro definitions ****************************************************************/
|
||||
|
||||
#define MC_MSEC_PER_SEC 1000
|
||||
#define MC_USEC_PER_MSEC 1000
|
||||
|
||||
/* The maximum sequence length (32 + null terminator) */
|
||||
|
@ -3,7 +3,7 @@
|
||||
/*
|
||||
Additional keyboard support routines.
|
||||
|
||||
Copyright (C) 1998-2021
|
||||
Copyright (C) 1998-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Mouse managing
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Internal stuff of the terminal controlling library.
|
||||
|
||||
Copyright (C) 2019-2021
|
||||
Copyright (C) 2019-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Interface to the terminal controlling library.
|
||||
Ncurses wrapper.
|
||||
|
||||
Copyright (C) 2005-2021
|
||||
Copyright (C) 2005-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Interface to the terminal controlling library.
|
||||
Slang wrapper.
|
||||
|
||||
Copyright (C) 2005-2021
|
||||
Copyright (C) 2005-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Interface to the terminal controlling library.
|
||||
|
||||
Copyright (C) 2005-2021
|
||||
Copyright (C) 2005-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Terminal management xterm and rxvt support
|
||||
|
||||
Copyright (C) 1995-2021
|
||||
Copyright (C) 1995-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
X11 support for the Midnight Commander.
|
||||
|
||||
Copyright (C) 2005-2021
|
||||
Copyright (C) 2005-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Various utilities
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
@ -35,6 +35,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stddef.h> /* ptrdiff_t */
|
||||
#include <limits.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Various utilities - Unix variants
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
@ -80,10 +80,6 @@ struct sigaction startup_handler;
|
||||
#define UID_CACHE_SIZE 200
|
||||
#define GID_CACHE_SIZE 30
|
||||
|
||||
/* Pipes are guaranteed to be able to hold at least 4096 bytes */
|
||||
/* More than that would be unportable */
|
||||
#define MAX_PIPE_SIZE 4096
|
||||
|
||||
/*** file scope type declarations ****************************************************************/
|
||||
|
||||
typedef struct
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Directory cache support
|
||||
|
||||
Copyright (C) 1998-2021
|
||||
Copyright (C) 1998-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Virtual File System garbage collection code
|
||||
|
||||
Copyright (C) 2003-2021
|
||||
Copyright (C) 2003-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Virtual File System: interface functions
|
||||
|
||||
Copyright (C) 2011-2021
|
||||
Copyright (C) 2011-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Network utilities for the Midnight Commander Virtual File System.
|
||||
|
||||
Copyright (C) 1995-2021
|
||||
Copyright (C) 1995-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the Midnight Commander.
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Routines for parsing output from the 'ls' command.
|
||||
|
||||
Copyright (C) 1988-2021
|
||||
Copyright (C) 1988-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Copyright (C) 1995, 1996 Miguel de Icaza
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Virtual File System path handlers
|
||||
|
||||
Copyright (C) 2011-2021
|
||||
Copyright (C) 2011-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Utilities for VFS modules.
|
||||
|
||||
Copyright (C) 1988-2021
|
||||
Copyright (C) 1988-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Copyright (C) 1995, 1996 Miguel de Icaza
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Virtual File System switch code
|
||||
|
||||
Copyright (C) 1995-2021
|
||||
Copyright (C) 1995-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by: 1995 Miguel de Icaza
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 2020-2021
|
||||
Copyright (C) 2020-2022
|
||||
The Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
Original idea and code: Oleg "Olegarch" Konovalov <olegarch@linuxinside.com>
|
||||
|
||||
Copyright (C) 2009-2021
|
||||
Copyright (C) 2009-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Dialog box features module for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the Midnight Commander.
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 2020-2021
|
||||
Copyright (C) 2020-2022
|
||||
The Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widget group features module for the Midnight Commander
|
||||
|
||||
Copyright (C) 2020-2021
|
||||
Copyright (C) 2020-2022
|
||||
The Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -2,7 +2,7 @@
|
||||
Input line filename/username/hostname/variable/command completion.
|
||||
(Let mc type for you...)
|
||||
|
||||
Copyright (C) 1995-2021
|
||||
Copyright (C) 1995-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widget based utility functions.
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Pulldown menu code
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 2016-2021
|
||||
Copyright (C) 2016-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widget based utility functions.
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Widgets for the Midnight Commander
|
||||
|
||||
Copyright (C) 1994-2021
|
||||
Copyright (C) 1994-2022
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Authors:
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Rectangular class for Midnight Commander widgets
|
||||
|
||||
Copyright (C) 2020-2021
|
||||
Copyright (C) 2020-2022
|
||||
The Free Software Foundation, Inc.
|
||||
|
||||
Written by:
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user