mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 09:19:24 +03:00
Merge branch '252_doxygen_desc_src'
Conflicts: src/file.h Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
This commit is contained in:
commit
1959b42fdc
@ -20,6 +20,12 @@
|
|||||||
02110-1301, USA.
|
02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: editor book mark handling
|
||||||
|
* \author Paul Sheer
|
||||||
|
* \date 1996, 1997
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -16,6 +16,12 @@
|
|||||||
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: user %interface for syntax %selection
|
||||||
|
* \author Leonard den Ottolander
|
||||||
|
* \date 2005, 2006
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "edit.h"
|
#include "edit.h"
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Header: editor widget WEdit
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_EDIT_WIDGET_H
|
#ifndef MC_EDIT_WIDGET_H
|
||||||
#define MC_EDIT_WIDGET_H
|
#define MC_EDIT_WIDGET_H
|
||||||
|
|
||||||
|
@ -21,6 +21,12 @@
|
|||||||
02110-1301, USA.
|
02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: editor low level data handling and cursor fundamentals
|
||||||
|
* \author Paul Sheer
|
||||||
|
* \date 1996, 1997
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@ -20,6 +20,13 @@
|
|||||||
02110-1301, USA.
|
02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: editor low level data handling and cursor fundamentals
|
||||||
|
* edit.h - main include file
|
||||||
|
* \author Paul Sheer
|
||||||
|
* \date 1996, 1997
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_EDIT_H
|
#ifndef MC_EDIT_H
|
||||||
#define MC_EDIT_H
|
#define MC_EDIT_H
|
||||||
|
|
||||||
|
@ -22,6 +22,12 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: editor high level editing commands
|
||||||
|
* \author Paul Sheer
|
||||||
|
* \date 1996, 1997
|
||||||
|
*/
|
||||||
|
|
||||||
/* #define PIPE_BLOCKS_SO_READ_BYTE_BY_BYTE */
|
/* #define PIPE_BLOCKS_SO_READ_BYTE_BY_BYTE */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Header: editor constants
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_EDIT_CMD_DEF_H
|
#ifndef MC_EDIT_CMD_DEF_H
|
||||||
#define MC_EDIT_CMD_DEF_H
|
#define MC_EDIT_CMD_DEF_H
|
||||||
|
|
||||||
/* in the distant future, keyboards will be invented with a
|
/** \todo In the distant future, keyboards will be invented with a
|
||||||
separate key for each one of these commands *sigh* */
|
* separate key for each one of these commands *sigh*
|
||||||
|
*/
|
||||||
|
|
||||||
/* special commands */
|
/* special commands */
|
||||||
#define CK_Insert_Char -1
|
#define CK_Insert_Char -1
|
||||||
|
@ -21,6 +21,12 @@
|
|||||||
02110-1301, USA.
|
02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: editor text drawing
|
||||||
|
* \author Paul Sheer
|
||||||
|
* \date 1996, 1997
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
02110-1301, USA.
|
02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: editor key translation
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -21,6 +21,23 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: editor file locking
|
||||||
|
* \author Adam Byrtek
|
||||||
|
* \date 2003
|
||||||
|
*
|
||||||
|
* Locking scheme used in mcedit is based on a documentation found
|
||||||
|
* in JED editor sources. Abstract from lock.c file (by John E. Davis):
|
||||||
|
*
|
||||||
|
* The basic idea here is quite simple. Whenever a buffer is attached to
|
||||||
|
* a file, and that buffer is modified, then attempt to lock the
|
||||||
|
* file. Moreover, before writing to a file for any reason, lock the
|
||||||
|
* file. The lock is really a protocol respected and not a real lock.
|
||||||
|
* The protocol is this: If in the directory of the file is a
|
||||||
|
* symbolic link with name ".#FILE", the FILE is considered to be locked
|
||||||
|
* by the process specified by the link.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <signal.h> /* kill() */
|
#include <signal.h> /* kill() */
|
||||||
|
|
||||||
@ -51,19 +68,10 @@ struct lock_s {
|
|||||||
pid_t pid;
|
pid_t pid;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Locking scheme used in mcedit is based on a documentation found
|
/** \fn static char * lock_build_name (void)
|
||||||
in JED editor sources. Abstract from lock.c file (by John E. Davis):
|
* \brief builds user@host.domain.pid string (need to be freed)
|
||||||
|
* \return a pointer to lock filename
|
||||||
The basic idea here is quite simple. Whenever a buffer is attached to
|
*/
|
||||||
a file, and that buffer is modified, then attempt to lock the
|
|
||||||
file. Moreover, before writing to a file for any reason, lock the
|
|
||||||
file. The lock is really a protocol respected and not a real lock.
|
|
||||||
The protocol is this: If in the directory of the file is a
|
|
||||||
symbolic link with name ".#FILE", the FILE is considered to be locked
|
|
||||||
by the process specified by the link.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Build user@host.domain.pid string (need to be freed) */
|
|
||||||
static char *
|
static char *
|
||||||
lock_build_name (void)
|
lock_build_name (void)
|
||||||
{
|
{
|
||||||
@ -78,7 +86,7 @@ lock_build_name (void)
|
|||||||
if (!user) user = getenv ("LOGNAME");
|
if (!user) user = getenv ("LOGNAME");
|
||||||
if (!user) user = "";
|
if (!user) user = "";
|
||||||
|
|
||||||
/* TODO: Use FQDN, no clean interface, so requires lot of code */
|
/** \todo Use FQDN, no clean interface, so requires lot of code */
|
||||||
if (gethostname (host, BUF_SIZE - 1) == -1)
|
if (gethostname (host, BUF_SIZE - 1) == -1)
|
||||||
*host = '\0';
|
*host = '\0';
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Header: editor file locking
|
||||||
|
* \author Adam Byrtek
|
||||||
|
* \date 2003
|
||||||
|
* Look at editlock.c for more details
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_EDIT_LOCK_H
|
#ifndef MC_EDIT_LOCK_H
|
||||||
#define MC_EDIT_LOCK_H
|
#define MC_EDIT_LOCK_H
|
||||||
|
|
||||||
|
@ -21,6 +21,12 @@
|
|||||||
02110-1301, USA.
|
02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: editor menu definitions and initialisation
|
||||||
|
* \author Paul Sheer
|
||||||
|
* \date 1996, 1997
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -21,6 +21,12 @@
|
|||||||
02110-1301, USA.
|
02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: editor options dialog box
|
||||||
|
* \author Paul Sheer
|
||||||
|
* \date 1996, 1997
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -21,6 +21,12 @@
|
|||||||
02110-1301, USA.
|
02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: editor initialisation and callback handler
|
||||||
|
* \author Paul Sheer
|
||||||
|
* \date 1996, 1997
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -21,6 +21,19 @@
|
|||||||
02110-1301, USA.
|
02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: editor syntax highlighting
|
||||||
|
* \author Paul Sheer
|
||||||
|
* \date 1996, 1997
|
||||||
|
*
|
||||||
|
* Mispelled words are flushed from the syntax highlighting rules
|
||||||
|
* when they have been around longer than
|
||||||
|
* TRANSIENT_WORD_TIME_OUT seconds. At a cursor rate of 30
|
||||||
|
* chars per second and say 3 chars + a space per word, we can
|
||||||
|
* accumulate 450 words absolute max with a value of 60. This is
|
||||||
|
* below this limit of 1024 words in a context.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
@ -43,14 +56,6 @@
|
|||||||
/* bytes */
|
/* bytes */
|
||||||
#define SYNTAX_MARKER_DENSITY 512
|
#define SYNTAX_MARKER_DENSITY 512
|
||||||
|
|
||||||
/*
|
|
||||||
Mispelled words are flushed from the syntax highlighting rules
|
|
||||||
when they have been around longer than
|
|
||||||
TRANSIENT_WORD_TIME_OUT seconds. At a cursor rate of 30
|
|
||||||
chars per second and say 3 chars + a space per word, we can
|
|
||||||
accumulate 450 words absolute max with a value of 60. This is
|
|
||||||
below this limit of 1024 words in a context.
|
|
||||||
*/
|
|
||||||
#define TRANSIENT_WORD_TIME_OUT 60
|
#define TRANSIENT_WORD_TIME_OUT 60
|
||||||
|
|
||||||
#define UNKNOWN_FORMAT "unknown"
|
#define UNKNOWN_FORMAT "unknown"
|
||||||
|
@ -18,6 +18,12 @@
|
|||||||
02111-1307, USA.
|
02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: cooledit.bindings file parser
|
||||||
|
* \author Vitja Makarov
|
||||||
|
* \date 2005
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Header: cooledit.bindings file parser
|
||||||
|
* \author Vitja Makarov
|
||||||
|
* \date 2005
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_USERMAP_H
|
#ifndef MC_USERMAP_H
|
||||||
#define MC_USERMAP_H
|
#define MC_USERMAP_H
|
||||||
|
|
||||||
|
@ -18,6 +18,12 @@
|
|||||||
02110-1301, USA.
|
02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief Source: word-processor mode for the editor: does dynamic paragraph formatting
|
||||||
|
* \author Paul Sheer
|
||||||
|
* \date 1996
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -24,6 +24,15 @@
|
|||||||
MA 02110-1301, USA.
|
MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file
|
||||||
|
* \brief This is a template file (here goes brief description).
|
||||||
|
* \author Author1
|
||||||
|
* \author Author2
|
||||||
|
* \date 20xx
|
||||||
|
*
|
||||||
|
* Detailed description.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <System Headers> /* see maint/headers.txt for details */
|
#include <System Headers> /* see maint/headers.txt for details */
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file achown.c
|
||||||
|
* \brief Source: Contains functions for advanced chowning
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file achown.h
|
||||||
|
* \brief Header: Contains functions for advanced chowning
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_ACHOWN_H
|
#ifndef MC_ACHOWN_H
|
||||||
#define MC_ACHOWN_H
|
#define MC_ACHOWN_H
|
||||||
|
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
/** \file background.c
|
||||||
|
* \brief Source: Background support
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#ifdef WITH_BACKGROUND
|
#ifdef WITH_BACKGROUND
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file background.h
|
||||||
|
* \brief Header: Background support
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_BACKGROUND_H
|
#ifndef MC_BACKGROUND_H
|
||||||
#define MC_BACKGROUND_H
|
#define MC_BACKGROUND_H
|
||||||
|
|
||||||
|
@ -20,6 +20,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file boxes.c
|
||||||
|
* \brief Source: Some misc dialog boxes for the program
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file boxes.h
|
||||||
|
* \brief Header: Some misc dialog boxes for the program
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_BOXES_H
|
#ifndef MC_BOXES_H
|
||||||
#define MC_BOXES_H
|
#define MC_BOXES_H
|
||||||
|
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file charsets.c
|
||||||
|
* \brief Source: Text conversion from one charset to another
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#ifdef HAVE_CHARSET
|
#ifdef HAVE_CHARSET
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file charsets.h
|
||||||
|
* \brief Header: Text conversion from one charset to another
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_CHARSETS_H
|
#ifndef MC_CHARSETS_H
|
||||||
#define MC_CHARSETS_H
|
#define MC_CHARSETS_H
|
||||||
|
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file chmod.c
|
||||||
|
* \brief Source: chmod command
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file chmod.h
|
||||||
|
* \brief Header: chmod command
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_CHMOD_H
|
#ifndef MC_CHMOD_H
|
||||||
#define MC_CHMOD_H
|
#define MC_CHMOD_H
|
||||||
|
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file chown.c
|
||||||
|
* \brief Source: chown command
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file chown.h
|
||||||
|
* \brief Header: chown command
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_CHOWN_H
|
#ifndef MC_CHOWN_H
|
||||||
#define MC_CHOWN_H
|
#define MC_CHOWN_H
|
||||||
|
|
||||||
|
@ -18,6 +18,12 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file cmd.c
|
||||||
|
* \brief Source: routines invoked by a function key
|
||||||
|
*
|
||||||
|
* They normally operate on the current panel.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
|
||||||
|
/** \file cmd.h
|
||||||
|
* \brief Header: routines invoked by a function key
|
||||||
|
*
|
||||||
|
* They normally operate on the current panel.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_CMD_H
|
#ifndef MC_CMD_H
|
||||||
#define MC_CMD_H
|
#define MC_CMD_H
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file color.c
|
||||||
|
* \brief Source: color setup
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file color.h
|
||||||
|
* \brief Header: color setup
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_COLOR_H
|
#ifndef MC_COLOR_H
|
||||||
#define MC_COLOR_H
|
#define MC_COLOR_H
|
||||||
|
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file command.c
|
||||||
|
* \brief Source: command line widget
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file command.h
|
||||||
|
* \brief Header: command line widget
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_COMMAND_H
|
#ifndef MC_COMMAND_H
|
||||||
#define MC_COMMAND_H
|
#define MC_COMMAND_H
|
||||||
|
|
||||||
|
@ -20,6 +20,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file complete.c
|
||||||
|
* \brief Source: Input line filename/username/hostname/variable/command completion
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file cons.handler.c
|
||||||
|
* \brief Source: client %interface for General purpose Linux console save/restore server
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -32,6 +32,17 @@
|
|||||||
Seeing other peoples consoles is bad thing, but believe me, full
|
Seeing other peoples consoles is bad thing, but believe me, full
|
||||||
root is even worse. */
|
root is even worse. */
|
||||||
|
|
||||||
|
/** \file cons.saver.c
|
||||||
|
* \brief Source: general purpose Linux console screen save/restore server
|
||||||
|
*
|
||||||
|
* This code does _not_ need to be setuid root. However, it needs
|
||||||
|
* read/write access to /dev/vcsa* (which is priviledged
|
||||||
|
* operation). You should create user vcsa, make cons.saver setuid
|
||||||
|
* user vcsa, and make all vcsa's owned by user vcsa.
|
||||||
|
* Seeing other peoples consoles is bad thing, but believe me, full
|
||||||
|
* root is even worse.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,3 +1,15 @@
|
|||||||
|
|
||||||
|
/** \file cons.saver.h
|
||||||
|
* \brief Header: general purpose Linux console screen save/restore server
|
||||||
|
*
|
||||||
|
* This code does _not_ need to be setuid root. However, it needs
|
||||||
|
* read/write access to /dev/vcsa* (which is priviledged
|
||||||
|
* operation). You should create user vcsa, make cons.saver setuid
|
||||||
|
* user vcsa, and make all vcsa's owned by user vcsa.
|
||||||
|
* Seeing other peoples consoles is bad thing, but believe me, full
|
||||||
|
* root is even worse.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_CONS_SAVER_H
|
#ifndef MC_CONS_SAVER_H
|
||||||
#define MC_CONS_SAVER_H
|
#define MC_CONS_SAVER_H
|
||||||
|
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file dialog.c
|
||||||
|
* \brief Source: dialog box features module
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file dialog.h
|
||||||
|
* \brief Header: dialog box features module
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_DLG_H
|
#ifndef MC_DLG_H
|
||||||
#define MC_DLG_H
|
#define MC_DLG_H
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file dir.c
|
||||||
|
* \brief Source: directory routines
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file dir.h
|
||||||
|
* \brief Header: directory routines
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_DIR_H
|
#ifndef MC_DIR_H
|
||||||
#define MC_DIR_H
|
#define MC_DIR_H
|
||||||
|
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
MA 02110-1301, USA.
|
MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file ecs-test.c
|
||||||
|
* \brief Source: testsuite for basic support for extended character sets
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#undef NDEBUG
|
#undef NDEBUG
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
MA 02110-1301, USA.
|
MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file ecs.c
|
||||||
|
* \brief Source: basic support for extended character sets
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
MA 02110-1301, USA.
|
MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file ecs.h
|
||||||
|
* \brief Header: basic support for extended character sets
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_ECS_H
|
#ifndef MC_ECS_H
|
||||||
#define MC_ECS_H
|
#define MC_ECS_H
|
||||||
|
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
02110-1301 USA. */
|
02110-1301 USA. */
|
||||||
|
|
||||||
|
/** \file eregex.h
|
||||||
|
* \brief Header: data structures and routines for the regular expression library
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef USE_INCLUDED_REGEX
|
#ifndef USE_INCLUDED_REGEX
|
||||||
#include <regex.h>
|
#include <regex.h>
|
||||||
#else
|
#else
|
||||||
|
@ -15,6 +15,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file execute.c
|
||||||
|
* \brief Source: execution routines
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file execute.h
|
||||||
|
* \brief Header: execution routines
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_EXECUTE_H
|
#ifndef MC_EXECUTE_H
|
||||||
#define MC_EXECUTE_H
|
#define MC_EXECUTE_H
|
||||||
|
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file ext.c
|
||||||
|
* \brief Source: extension dependent execution
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file ext.h
|
||||||
|
* \brief Header: extension dependent execution
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_EXT_H
|
#ifndef MC_EXT_H
|
||||||
#define MC_EXT_H
|
#define MC_EXT_H
|
||||||
|
|
||||||
|
@ -37,6 +37,10 @@
|
|||||||
* operations.
|
* operations.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file file.c
|
||||||
|
* \brief Source: file management
|
||||||
|
*/
|
||||||
|
|
||||||
/* {{{ Include files */
|
/* {{{ Include files */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
/* File and directory operation routines for Midnight Commander */
|
|
||||||
|
/** \file file.h
|
||||||
|
* \brief Header: File and directory operation routines
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_FILE_H
|
#ifndef MC_FILE_H
|
||||||
#define MC_FILE_H
|
#define MC_FILE_H
|
||||||
|
@ -39,6 +39,9 @@
|
|||||||
* operations.
|
* operations.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file filegui.c
|
||||||
|
* \brief Source: file management GUI for the text mode edition
|
||||||
|
*/
|
||||||
|
|
||||||
/* {{{ Include files */
|
/* {{{ Include files */
|
||||||
|
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file filegui.h
|
||||||
|
* \brief Header: file management GUI for the text mode edition
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_FILEGUI_H
|
#ifndef MC_FILEGUI_H
|
||||||
#define MC_FILEGUI_H
|
#define MC_FILEGUI_H
|
||||||
|
|
||||||
|
@ -1,16 +1,19 @@
|
|||||||
|
|
||||||
|
/** \file fileloc.h
|
||||||
|
* \brief Header: config files list
|
||||||
|
*
|
||||||
|
* This file defines the locations of the various user specific
|
||||||
|
* configuration files of the Midnight Commander. Historically the
|
||||||
|
* system wide and the user specific file names have not always been
|
||||||
|
* the same, so don't use these names for finding system wide
|
||||||
|
* configuration files.
|
||||||
|
*
|
||||||
|
* \todo This inconsistency should disappear in the one of the next versions (5.0?)
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_FILELOC_H
|
#ifndef MC_FILELOC_H
|
||||||
#define MC_FILELOC_H
|
#define MC_FILELOC_H
|
||||||
|
|
||||||
/*
|
|
||||||
This file defines the locations of the various user specific
|
|
||||||
configuration files of the Midnight Commander. Historically the
|
|
||||||
system wide and the user specific file names have not always been
|
|
||||||
the same, so don't use these names for finding system wide
|
|
||||||
configuration files.
|
|
||||||
|
|
||||||
TODO: This inconsistency should disappear in version 5.0.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define MC_USERCONF_DIR ".mc"
|
#define MC_USERCONF_DIR ".mc"
|
||||||
|
|
||||||
#define MC_BASHRC_FILE "bashrc"
|
#define MC_BASHRC_FILE "bashrc"
|
||||||
|
@ -22,6 +22,13 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/** \file filenot.c
|
||||||
|
* \brief Source: wrapper for routines to notify the
|
||||||
|
* tree about the changes made to the directory
|
||||||
|
* structure.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -21,6 +21,13 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file fileopctx.c
|
||||||
|
* \brief Source: file operation contexts
|
||||||
|
* \date 1998-2007
|
||||||
|
* \author Federico Mena <federico@nuclecu.unam.mx>
|
||||||
|
* \author Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -30,13 +37,13 @@
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* file_op_context_new:
|
* \fn FileOpContext * file_op_context_new (FileOperation op)
|
||||||
*
|
* \param op file operation struct
|
||||||
|
* \return The newly-created context, filled with the default file mask values.
|
||||||
|
*
|
||||||
* Creates a new file operation context with the default values. If you later want
|
* Creates a new file operation context with the default values. If you later want
|
||||||
* to have a user interface for this, call #file_op_context_create_ui().
|
* to have a user interface for this, call file_op_context_create_ui().
|
||||||
*
|
*/
|
||||||
* Return value: The newly-created context, filled with the default file mask values.
|
|
||||||
**/
|
|
||||||
FileOpContext *
|
FileOpContext *
|
||||||
file_op_context_new (FileOperation op)
|
file_op_context_new (FileOperation op)
|
||||||
{
|
{
|
||||||
@ -59,12 +66,12 @@ file_op_context_new (FileOperation op)
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* file_op_context_destroy:
|
* \fn void file_op_context_destroy (FileOpContext *ctx)
|
||||||
* @ctx: The file operation context to destroy.
|
* \param ctx The file operation context to destroy.
|
||||||
*
|
*
|
||||||
* Destroys the specified file operation context and its associated UI data, if
|
* Destroys the specified file operation context and its associated UI data, if
|
||||||
* it exists.
|
* it exists.
|
||||||
**/
|
*/
|
||||||
void
|
void
|
||||||
file_op_context_destroy (FileOpContext *ctx)
|
file_op_context_destroy (FileOpContext *ctx)
|
||||||
{
|
{
|
||||||
@ -75,7 +82,7 @@ file_op_context_destroy (FileOpContext *ctx)
|
|||||||
|
|
||||||
regfree (&ctx->rx);
|
regfree (&ctx->rx);
|
||||||
|
|
||||||
/* FIXME: do we need to free ctx->dest_mask? */
|
/** \todo FIXME: do we need to free ctx->dest_mask? */
|
||||||
|
|
||||||
g_free (ctx);
|
g_free (ctx);
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
|
|
||||||
|
/** \file fileopctx.h
|
||||||
|
* \brief Header: file operation contexts
|
||||||
|
* \date 1998
|
||||||
|
* \author Federico Mena <federico@nuclecu.unam.mx>
|
||||||
|
* \author Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
*/
|
||||||
|
|
||||||
/* File operation contexts for the Midnight Commander
|
/* File operation contexts for the Midnight Commander
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 Free Software Foundation, Inc.
|
* Copyright (C) 1998 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* Authors: Federico Mena <federico@nuclecu.unam.mx>
|
|
||||||
* Miguel de Icaza <miguel@nuclecu.unam.mx>
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef FILEOPCTX_H
|
#ifndef FILEOPCTX_H
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file find.c
|
||||||
|
* \brief Source: Find file command
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file find.h
|
||||||
|
* \brief Header: Find file command
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_FIND_H
|
#ifndef MC_FIND_H
|
||||||
#define MC_FIND_H
|
#define MC_FIND_H
|
||||||
|
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
file accompanying popt source distributions, available from
|
file accompanying popt source distributions, available from
|
||||||
ftp://ftp.redhat.com/pub/code/popt */
|
ftp://ftp.redhat.com/pub/code/popt */
|
||||||
|
|
||||||
|
/** \file findme.c
|
||||||
|
* \brief Source: findProgramPath function
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "poptalloca.h"
|
#include "poptalloca.h"
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
file accompanying popt source distributions, available from
|
file accompanying popt source distributions, available from
|
||||||
ftp://ftp.redhat.com/pub/code/popt */
|
ftp://ftp.redhat.com/pub/code/popt */
|
||||||
|
|
||||||
|
/** \file findme.h
|
||||||
|
* \brief Header: findProgramPath function
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_FINDME_H
|
#ifndef MC_FINDME_H
|
||||||
#define MC_FINDME_H
|
#define MC_FINDME_H
|
||||||
|
|
||||||
|
5
src/fs.h
5
src/fs.h
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file fs.h
|
||||||
|
* \brief Header: fs compatibility definitions
|
||||||
|
*/
|
||||||
|
|
||||||
/* Include file to use opendir/closedir/readdir */
|
/* Include file to use opendir/closedir/readdir */
|
||||||
|
|
||||||
#ifndef MC_FS_H
|
#ifndef MC_FS_H
|
||||||
|
@ -17,6 +17,12 @@
|
|||||||
along with this program; if not, write to the Free Software Foundation,
|
along with this program; if not, write to the Free Software Foundation,
|
||||||
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file fsusage.c
|
||||||
|
* \brief Source: return space usage of mounted file systems
|
||||||
|
*
|
||||||
|
* Space usage statistics for a file system. Blocks are 512-byte
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -19,6 +19,13 @@
|
|||||||
|
|
||||||
/* Space usage statistics for a file system. Blocks are 512-byte. */
|
/* Space usage statistics for a file system. Blocks are 512-byte. */
|
||||||
|
|
||||||
|
/** \file fsusage.h
|
||||||
|
* \brief Header: return space usage of mounted file systems
|
||||||
|
*
|
||||||
|
* Space usage statistics for a file system. Blocks are 512-byte
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
#if !defined MC_FSUSAGE_H
|
#if !defined MC_FSUSAGE_H
|
||||||
# define MC_FSUSAGE_H
|
# define MC_FSUSAGE_H
|
||||||
|
|
||||||
|
@ -17,9 +17,11 @@
|
|||||||
* Boston, MA 02110-1301, USA.
|
* Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/** \file glibcompat.c
|
||||||
* Following code was copied from glib to GNU Midnight Commander to
|
* \brief Source: old glib compatibility
|
||||||
* provide compatibility with older versions of glib.
|
*
|
||||||
|
* Following code was copied from glib to GNU Midnight Commander to
|
||||||
|
* provide compatibility with older versions of glib.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
@ -15,6 +15,13 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file glibcompat.h
|
||||||
|
* \brief Header: old glib compatibility
|
||||||
|
*
|
||||||
|
* Following code was copied from glib to GNU Midnight Commander to
|
||||||
|
* provide compatibility with older versions of glib.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_GLIBCOMPAT_H
|
#ifndef MC_GLIBCOMPAT_H
|
||||||
#define MC_GLIBCOMPAT_H
|
#define MC_GLIBCOMPAT_H
|
||||||
|
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
/*
|
|
||||||
* This file should be included after all system includes and before
|
/** \file global.h
|
||||||
* all local includes.
|
* \brief Header: %global definitions for compatibility
|
||||||
|
*
|
||||||
|
* This file should be included after all system includes and before all local includes.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef MC_GLOBAL_H
|
#ifndef MC_GLOBAL_H
|
||||||
#define MC_GLOBAL_H
|
#define MC_GLOBAL_H
|
||||||
|
|
||||||
|
45
src/help.c
45
src/help.c
@ -17,29 +17,32 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
Implements the hypertext file viewer.
|
|
||||||
The hypertext file is a file that may have one or more nodes. Each
|
|
||||||
node ends with a ^D character and starts with a bracket, then the
|
|
||||||
name of the node and then a closing bracket. Right after the closing
|
|
||||||
bracket a newline is placed. This newline is not to be displayed by
|
|
||||||
the help viewer and must be skipped - its sole purpose is to faciliate
|
|
||||||
the work of the people managing the help file template (xnc.hlp) .
|
|
||||||
|
|
||||||
Links in the hypertext file are specified like this: the text that
|
/** \file help.c
|
||||||
will be highlighted should have a leading ^A, then it comes the
|
* \brief Source: hypertext file browser
|
||||||
text, then a ^B indicating that highlighting is done, then the name
|
*
|
||||||
of the node you want to link to and then a ^C.
|
* Implements the hypertext file viewer.
|
||||||
|
* The hypertext file is a file that may have one or more nodes. Each
|
||||||
|
* node ends with a ^D character and starts with a bracket, then the
|
||||||
|
* name of the node and then a closing bracket. Right after the closing
|
||||||
|
* bracket a newline is placed. This newline is not to be displayed by
|
||||||
|
* the help viewer and must be skipped - its sole purpose is to faciliate
|
||||||
|
* the work of the people managing the help file template (xnc.hlp) .
|
||||||
|
*
|
||||||
|
* Links in the hypertext file are specified like this: the text that
|
||||||
|
* will be highlighted should have a leading ^A, then it comes the
|
||||||
|
* text, then a ^B indicating that highlighting is done, then the name
|
||||||
|
* of the node you want to link to and then a ^C.
|
||||||
|
*
|
||||||
|
* The file must contain a ^D at the beginning and at the end of the
|
||||||
|
* file or the program will not be able to detect the end of file.
|
||||||
|
*
|
||||||
|
* Lazyness/widgeting attack: This file does use the dialog manager
|
||||||
|
* and uses mainly the dialog to achieve the help work. there is only
|
||||||
|
* one specialized widget and it's only used to forward the mouse messages
|
||||||
|
* to the appropiate routine.
|
||||||
|
*/
|
||||||
|
|
||||||
The file must contain a ^D at the beginning and at the end of the
|
|
||||||
file or the program will not be able to detect the end of file.
|
|
||||||
|
|
||||||
Lazyness/widgeting attack: This file does use the dialog manager
|
|
||||||
and uses mainly the dialog to achieve the help work. there is only
|
|
||||||
one specialized widget and it's only used to forward the mouse messages
|
|
||||||
to the appropiate routine.
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
30
src/help.h
30
src/help.h
@ -1,8 +1,34 @@
|
|||||||
|
|
||||||
|
/** \file help.h
|
||||||
|
* \brief Header: hypertext file browser
|
||||||
|
*
|
||||||
|
* Implements the hypertext file viewer.
|
||||||
|
* The hypertext file is a file that may have one or more nodes. Each
|
||||||
|
* node ends with a ^D character and starts with a bracket, then the
|
||||||
|
* name of the node and then a closing bracket. Right after the closing
|
||||||
|
* bracket a newline is placed. This newline is not to be displayed by
|
||||||
|
* the help viewer and must be skipped - its sole purpose is to faciliate
|
||||||
|
* the work of the people managing the help file template (xnc.hlp) .
|
||||||
|
*
|
||||||
|
* Links in the hypertext file are specified like this: the text that
|
||||||
|
* will be highlighted should have a leading ^A, then it comes the
|
||||||
|
* text, then a ^B indicating that highlighting is done, then the name
|
||||||
|
* of the node you want to link to and then a ^C.
|
||||||
|
*
|
||||||
|
* The file must contain a ^D at the beginning and at the end of the
|
||||||
|
* file or the program will not be able to detect the end of file.
|
||||||
|
*
|
||||||
|
* Lazyness/widgeting attack: This file does use the dialog manager
|
||||||
|
* and uses mainly the dialog to achieve the help work. there is only
|
||||||
|
* one specialized widget and it's only used to forward the mouse messages
|
||||||
|
* to the appropiate routine.
|
||||||
|
*
|
||||||
|
* This file is included by help.c and man2hlp.c
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_HELP_H
|
#ifndef MC_HELP_H
|
||||||
#define MC_HELP_H
|
#define MC_HELP_H
|
||||||
|
|
||||||
/* This file is included by help.c and man2hlp.c */
|
|
||||||
|
|
||||||
#define HELP_TEXT_WIDTH 58
|
#define HELP_TEXT_WIDTH 58
|
||||||
|
|
||||||
/* Markers used in the help files */
|
/* Markers used in the help files */
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file history.h
|
||||||
|
* \brief Header: defines history section names
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef __MC_HISTORY_H
|
#ifndef __MC_HISTORY_H
|
||||||
#define __MC_HISTORY_H
|
#define __MC_HISTORY_H
|
||||||
|
|
||||||
|
@ -27,6 +27,10 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file hotlist.c
|
||||||
|
* \brief Source: directory hotlist
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file hotlist.h
|
||||||
|
* \brief Header: directory hotlist
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_HOTLIST_H
|
#ifndef MC_HOTLIST_H
|
||||||
#define MC_HOTLIST_H
|
#define MC_HOTLIST_H
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file info.c
|
||||||
|
* \brief Source: panel managing
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file info.h
|
||||||
|
* \brief Header: panel managing
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_INFO_H
|
#ifndef MC_INFO_H
|
||||||
#define MC_INFO_H
|
#define MC_INFO_H
|
||||||
|
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file key.c
|
||||||
|
* \brief Source: keyboard support routines
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file key.h
|
||||||
|
* \brief Header: keyboard support routines
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_KEY_H
|
#ifndef MC_KEY_H
|
||||||
#define MC_KEY_H
|
#define MC_KEY_H
|
||||||
|
|
||||||
|
@ -22,21 +22,23 @@
|
|||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/*
|
/** \file keyxdef.c
|
||||||
|
* \brief Source: additional keyboard support routines
|
||||||
|
*
|
||||||
* PURPOSE:
|
* PURPOSE:
|
||||||
*
|
|
||||||
* We would like to support the direct ALT-?/META-? and some other 'extra'
|
* We would like to support the direct ALT-?/META-? and some other 'extra'
|
||||||
* keyboard functionality provided by some terminals under some OSes (and
|
* keyboard functionality provided by some terminals under some OSes (and
|
||||||
* not supported by the 'learn keys...' facility of 'mc'.
|
* not supported by the 'learn keys...' facility of 'mc'.
|
||||||
* (First target platform: QNX.)
|
* (First target platform: QNX.)
|
||||||
*
|
*
|
||||||
* REMARK:
|
* REMARK:
|
||||||
*
|
*
|
||||||
* Implementation strategy: we don't want to rely on a specific terminal
|
* Implementation strategy: we don't want to rely on a specific terminal
|
||||||
* information database management API (termcap,terminfo,SLang,...), so we
|
* information database management API (termcap,terminfo,SLang,...), so we
|
||||||
* try to define a superset of the possible key identifiers here.
|
* try to define a superset of the possible key identifiers here.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
@ -20,6 +20,10 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file layout.c
|
||||||
|
* \brief Source: panel layout module
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file layout.h
|
||||||
|
* \brief Header: panel layout module
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_LAYOUT_H
|
#ifndef MC_LAYOUT_H
|
||||||
#define MC_LAYOUT_H
|
#define MC_LAYOUT_H
|
||||||
|
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file learn.c
|
||||||
|
* \brief Source: learn keys module
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file learn.h
|
||||||
|
* \brief Header: learn keys module
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_LEARN_H
|
#ifndef MC_LEARN_H
|
||||||
#define MC_LEARN_H
|
#define MC_LEARN_H
|
||||||
|
|
||||||
|
@ -20,6 +20,10 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file listmode.c
|
||||||
|
* \brief Source: directory panel listing format editor
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#ifdef LISTMODE_EDITOR
|
#ifdef LISTMODE_EDITOR
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file listmode.h
|
||||||
|
* \brief Header: directory panel listing format editor
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_LISTMODE_H
|
#ifndef MC_LISTMODE_H
|
||||||
#define MC_LISTMODE_H
|
#define MC_LISTMODE_H
|
||||||
|
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
MA 02110-1301, USA.
|
MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file logging.c
|
||||||
|
* \brief Source: provides a log file to ease tracing the program
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file logging.h
|
||||||
|
* \brief Header: provides a log file to ease tracing the program
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_LOGGING_H
|
#ifndef MC_LOGGING_H
|
||||||
#define MC_LOGGING_H
|
#define MC_LOGGING_H
|
||||||
|
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file main-widgets.h
|
||||||
|
* \brief Header: provides definitions for some widgets
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_MAIN_WIDGETS_H
|
#ifndef MC_MAIN_WIDGETS_H
|
||||||
#define MC_MAIN_WIDGETS_H
|
#define MC_MAIN_WIDGETS_H
|
||||||
|
|
||||||
|
@ -20,6 +20,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file main.c
|
||||||
|
* \brief Source: this is a main module
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file main.h
|
||||||
|
* \brief Header: this is a main module header
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_MAIN_H
|
#ifndef MC_MAIN_H
|
||||||
#define MC_MAIN_H
|
#define MC_MAIN_H
|
||||||
|
|
||||||
|
@ -18,6 +18,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file man2hlp.c
|
||||||
|
* \brief Source: man page to help file converter
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file menu.c
|
||||||
|
* \brief Source: pulldown menu code
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
/** \file menu.h
|
||||||
|
* \brief Header: pulldown menu code
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_MENU_H
|
#ifndef MC_MENU_H
|
||||||
#define MC_MENU_H
|
#define MC_MENU_H
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file mfmt.c
|
||||||
|
* \brief Source: sets bold and underline for mail files
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
enum states {
|
enum states {
|
||||||
|
@ -15,6 +15,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file mountlist.c
|
||||||
|
* \brief Source: list of mounted filesystems
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -15,6 +15,10 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
/** \file mountlist.h
|
||||||
|
* \brief Header: list of mounted filesystems
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_MOUNTLIST_H
|
#ifndef MC_MOUNTLIST_H
|
||||||
#define MC_MOUNTLIST_H
|
#define MC_MOUNTLIST_H
|
||||||
|
|
||||||
|
@ -16,8 +16,11 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
/* Events received by clients of this library have their coordinates 0 */
|
/** \file mouse.c
|
||||||
/* based */
|
* \brief Source: mouse managing
|
||||||
|
*
|
||||||
|
* Events received by clients of this library have their coordinates 0 based
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
|
||||||
|
/** \file mouse.h
|
||||||
|
* \brief Header: mouse managing
|
||||||
|
*
|
||||||
|
* Events received by clients of this library have their coordinates 0 based
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MC_MOUSE_H
|
#ifndef MC_MOUSE_H
|
||||||
#define MC_MOUSE_H
|
#define MC_MOUSE_H
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user