1 /** 2 * @namespace biew 3 * @file editor.h 4 * @brief This file contains editing function prototypes. 5 * @version - 6 * @remark this source file is part of Binary vIEW project (BIEW). 7 * The Binary vIEW (BIEW) is copyright (C) 1995 Nickols_K. 8 * All rights reserved. This software is redistributable under the 9 * licence given in the file "Licence.en" ("Licence.ru" in russian 10 * translation) distributed in the BIEW archive. 11 * @note Requires POSIX compatible development system 12 * 13 * @author Nickols_K 14 * @since 1995 15 * @note Development, fixes and improvements 16 **/ 17 #ifndef __EDITOR__H 18 #define __EDITOR__H 19 20 #ifndef __TWIN_H 21 #include "biewlib/twin.h" 22 #endif 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 struct tag_emem 29 { 30 unsigned char *buff; 31 unsigned char *save; 32 unsigned char *alen; 33 unsigned size; 34 unsigned width; 35 }; 36 37 extern struct tag_emem EditorMem; 38 39 extern int edit_x,edit_y; 40 extern unsigned char edit_XX; 41 extern __fileoff_t edit_cp; 42 43 44 extern void __FASTCALL__ PaintETitle( int shift,tBool use_shift ); 45 extern void __FASTCALL__ CheckBounds( void ); 46 extern void __FASTCALL__ CheckYBounds( void ); 47 extern void __FASTCALL__ CheckXYBounds( void ); 48 extern tBool __FASTCALL__ edit_defaction(int _lastbyte); 49 extern void __FASTCALL__ editSaveContest( void ); 50 extern tBool __FASTCALL__ editDefAction(int _lastbyte); 51 extern int __FASTCALL__ FullEdit(TWindow * txtwnd,void (*save)(unsigned char *,unsigned)); 52 extern tBool __FASTCALL__ editInitBuffs(unsigned width,unsigned char *buff,unsigned size); 53 extern void __FASTCALL__ editDestroyBuffs( void ); 54 55 56 #ifdef __cplusplus 57 } 58 #endif 59 60 #endif 61