2 * \brief Header: this is a main module header
8 #include "lib/global.h"
10 /*** typedefs(not structures) and defined constants **********************************************/
12 #define MAX_MACRO_LENGTH 1024
14 /*** enums ***************************************************************************************/
16 /* run mode and params */
24 /*** structures declarations (and typedefs of structures)*****************************************/
26 typedef struct macro_action_t
32 typedef struct macros_t
39 struct macro_action_t record_macro_buf
[MAX_MACRO_LENGTH
];
43 /*** global variables defined in .c file *********************************************************/
46 * MC_RUN_FULL: dir for left panel
47 * MC_RUN_EDITOR: file to edit
48 * MC_RUN_VIEWER: file to view
49 * MC_RUN_DIFFVIEWER: first file to compare
51 extern char *mc_run_param0
;
53 * MC_RUN_FULL: dir for right panel
54 * MC_RUN_EDITOR: unused
55 * MC_RUN_VIEWER: unused
56 * MC_RUN_DIFFVIEWER: second file to compare
58 extern char *mc_run_param1
;
61 /* Set to TRUE to suppress printing the last directory */
62 extern gboolean print_last_revert
;
63 /* If set, then print to the given file the last directory we were at */
64 extern char *last_wd_string
;
66 extern struct mc_fhl_struct
*mc_filehighlight
;
68 extern int use_internal_view
;
69 extern int use_internal_edit
;
72 extern int default_source_codepage
;
73 extern char *autodetect_codeset
;
74 extern gboolean is_autodetect_codeset_enabled
;
75 #endif /* !HAVE_CHARSET */
78 extern const char *mc_prompt
;
80 /* index to record_macro_buf[], -1 if not recording a macro */
81 extern int macro_index
;
83 extern GArray
*macros_list
;
85 /*** declarations of public functions ************************************************************/
87 #ifdef HAVE_SUBSHELL_SUPPORT
88 int load_prompt (int fd
, void *unused
);
91 int do_cd (const char *new_dir
, enum cd_enum cd_type
);
92 void update_xterm_title_path (void);
94 /*** inline functions ****************************************************************************/
96 #endif /* MC__MAIN_H */