-
Notifications
You must be signed in to change notification settings - Fork 4
/
editor.h
60 lines (50 loc) · 1.68 KB
/
editor.h
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
/**
* @namespace biew
* @file editor.h
* @brief This file contains editing function prototypes.
* @version -
* @remark this source file is part of Binary vIEW project (BIEW).
* The Binary vIEW (BIEW) is copyright (C) 1995 Nickols_K.
* All rights reserved. This software is redistributable under the
* licence given in the file "Licence.en" ("Licence.ru" in russian
* translation) distributed in the BIEW archive.
* @note Requires POSIX compatible development system
*
* @author Nickols_K
* @since 1995
* @note Development, fixes and improvements
**/
#ifndef __EDITOR__H
#define __EDITOR__H
#ifndef __TWIN_H
#include "libbeye/twin.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
struct tag_emem
{
unsigned char *buff;
unsigned char *save;
unsigned char *alen;
unsigned size;
unsigned width;
};
extern struct tag_emem EditorMem;
extern int edit_x,edit_y;
extern unsigned char edit_XX;
extern __fileoff_t edit_cp;
extern void __FASTCALL__ PaintETitle( int shift,tBool use_shift );
extern void __FASTCALL__ CheckBounds( void );
extern void __FASTCALL__ CheckYBounds( void );
extern void __FASTCALL__ CheckXYBounds( void );
extern tBool __FASTCALL__ edit_defaction(int _lastbyte);
extern void __FASTCALL__ editSaveContest( void );
extern tBool __FASTCALL__ editDefAction(int _lastbyte);
extern int __FASTCALL__ FullEdit(TWindow * txtwnd,void (*save)(unsigned char *,unsigned));
extern tBool __FASTCALL__ editInitBuffs(unsigned width,unsigned char *buff,unsigned size);
extern void __FASTCALL__ editDestroyBuffs( void );
#ifdef __cplusplus
}
#endif
#endif