File: mp_iface.h

package info (click to toggle)
mped 3.3.17-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,288 kB
  • ctags: 1,635
  • sloc: ansic: 13,150; sh: 393; makefile: 232; perl: 66
file content (92 lines) | stat: -rw-r--r-- 2,537 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*

    mp_iface.h

    Interface.

    mp - Programmer Text Editor

    Copyright (C) 1991-2005 Angel Ortega <angel@triptico.com>

    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 2
    of the License, or (at your option) any later version.

    This program 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.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

    http://www.triptico.com

*/


extern int _mpi_macro_index;
extern int _mpi_instant_x;
extern int _mpi_instant_y;
extern int _mpi_mark_column_80;
extern int _mpi_exit_requested;
extern char _mpi_template_file[1024];
extern int _mpi_insert;
extern int _mpi_preread_lines;
extern char _mpi_status_line_f[128];
extern char _mpi_strftime_f[128];
extern char _mpi_lang[128];

extern int mpi_monochrome;
extern int mpi_move_selecting;
extern int _mpi_break_hardlinks;

extern char * MP_LICENSE;

void mpi_draw_all(mp_txt * txt);
int mpi_move_wheel_up(mp_txt * txt);
int mpi_move_page_up(mp_txt * txt);
int mpi_move_wheel_down(mp_txt * txt);
int mpi_move_page_down(mp_txt * txt);
int mpi_goto(mp_txt * txt);

int mpi_new(void);
void mpi_open(char * name, int reopen);
int mpi_save_as(mp_txt * txt);
int mpi_save(mp_txt * txt);
void mpi_sync(void);
int mpi_close(mp_txt * txt);

int mpi_history_size(int mode);
int mpi_history_get(int mode, int index, char * buf, int size);
void mpi_history_add(int mode, char * str);

int mpi_exec(mp_txt * txt,char *cmd);
int mpi_seek(mp_txt * txt);
int mpi_seek_next(mp_txt * txt);
int mpi_replace(mp_txt * txt);
int mpi_replace_all(void);
int mpi_grep(void);

int mpi_help(mp_txt * txt);
int mpi_find_tag(mp_txt * txt);
int mpi_insert_template(void);

int mpi_set_word_wrap(void);
int mpi_set_tab_size(void);
int mpi_completion(mp_txt * txt);
void mpi_current_list(void);

void mpi_record_macro(void);
void mpi_play_macro(void);
int mpi_exec_function(void);

int mpi_process(int c, char * keyname, char * funcname);

int mpi_args_1(int argc, char * argv[]);
int mpi_args_2(int argc, char * argv[]);

void mpi_startup(void);
void mpi_shutdown(void);