home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / wp / ehp10.zip / DEFS.H < prev    next >
Text File  |  1993-04-30  |  18KB  |  386 lines

  1. /* *********************** Include-Datei DEFS.H ******************** */
  2. /* Diese Datei enthlt für alle Moduln von EHP wichtige Definitionen */
  3.  
  4. #include <stdio.h>
  5. #include <string.h>
  6. #include <sys/types.h>
  7. #include "curses.h"
  8. #include <sys/stat.h>
  9. #include <stdlib.h>
  10.  
  11. #define sname(x) (strrchr((x),'\\')?strrchr((x),'\\')+1:x)
  12.  
  13. #define MAX_HEIGHT (LINES-1) /* Eine Zeile mua für Statusfenster freibleiben */
  14. #define MAX_WIDTH (COLS)  
  15.  
  16. #define START_HEIGHT MAX_HEIGHT /* Anfangsgroessen eines Fensters */
  17. #define START_WIDTH MAX_WIDTH
  18. #define START_X 0
  19. #define START_Y 0
  20.  
  21. #ifndef OWN_CURSES
  22. #define A_BLINK     _STANDOUT
  23. #define A_BOLD      _STANDOUT
  24. #define A_STANDOUT  _STANDOUT
  25. #define A_UNDERLINE _STANDOUT
  26. #define nodelay(window, b)
  27. #endif
  28. #define BORDER_HOR  '─'
  29. #define BORDER_VER  '│'
  30. #define CORNER_UL   '┌'
  31. #define CORNER_UR   '┐'
  32. #define CORNER_LL   '└'
  33. #define CORNER_LR   '┘'
  34. #define REST_CHAR   BORDER_VER+256*A_STANDOUT   /* Zeichen zum Restaurieren des */
  35. #define REST_ARR_UP ''+256*A_STANDOUT /* linken und rechten Fensterrandes */
  36. #define REST_ARR_DN ''+256*A_STANDOUT 
  37.  
  38. #define W_AKT     0             /* Für modus-Flag der Funktionen kopf */
  39. #define W_NOTAKT  1             /* und rahmen */
  40.  
  41. #define STD_TAB 8               /* Standard-Tablaenge */
  42. #define SW_STEP 5               /* Schrittweite fuer grosse Schritte */
  43.                 /* bei size_win und move_win */
  44.  
  45. #define BUFFSIZE  500           /* Groesse von Textpuffern */
  46. #define MAXLENGTH 500           /* Maximale Zeilenlaenge */
  47. #define MAX_ANZ_LINES 32767     /* Maximale Zeilenanzahl */
  48. #define ANZ_WIN   9999          /* Maximale Fensteranzahl */
  49. #define INS_BUFF_LEN 3*MAXLENGTH  /* Falls Insert mit unterstrichenen Zeichen */
  50.  
  51. #define INSERT 1                /* modes fuer fastcharout */
  52. #define PUT 2
  53.  
  54. #define MAX_COMM_LEN 10         /* Defines fuer Taste    */
  55.  
  56. #define F_NONE       0          /* defines fuer Wiederholfunktion Suche/ */
  57. #define F_FIND       1          /* Ersetze                               */
  58. #define F_REPLACE    2
  59.  
  60. #define J_OK         0          /* defines fuer Rueckgabewerte der JOIN-Fkt. */
  61. #define J_LASTLINE   1
  62. #define J_TOOLONG    2
  63.  
  64. #define IGNORE_COORS 0          /* defines fuer Modi von del_line() und koppel_line() */
  65. #define ADAPT_COORS  1
  66.  
  67. #define AP_INSERT 0             /* defines fuer adapt_pos() */
  68. #define AP_DELETE 1
  69.  
  70. #ifdef OS2
  71. #define MOUSE_MASK         30   /* Linken und rechten Mausknopf inkl. Bewegung testen */
  72. #define MOUSE_BUT1          4
  73. #define MOUSE_BUT2         16
  74. #define MOUSE_BUT3         64
  75. #define MOUSE_BUT1_MOVE     2
  76. #define MOUSE_BUT2_MOVE     8
  77. #define MOUSE_BUT3_MOVE    32
  78. #else
  79. #define MOUSE_MASK         10   /* Linken und rechten Mausknopf testen */
  80. #define MOUSE_BUT1          1
  81. #define MOUSE_BUT2          2
  82. #define MOUSE_BUT3          4
  83. #endif
  84. #define MOUSE_HIDE          1   /* Mauszeiger verstecken */
  85. #define MOUSE_SHOW          2   /* Mauszeiger anzeigen */
  86. #define NO_KLICK            1   
  87. #define KLICK_RIGHT         2   /* Konstanten für Funktion ja_nein */
  88. #define KLICK_LEFT          3
  89. #define MOUSE_KOPF          1   /* Maus steht in Kopfzeile */
  90. #define MOUSE_CLOSE         2   /* Knopf zum Schlieaen des Fensters */
  91. #define MOUSE_TOG_SIZE      3   /* Groesse wechseln */
  92. #define MOUSE_SIZE          4   /* Groesse veraendern */
  93. #define MOUSE_TEXT          5   /* Maus im Textbereich */
  94. #define MOUSE_RAHMEN        6
  95. #define MOUSE_SCROLL_UP     7   /* Text nach oben scrollen */
  96. #define MOUSE_SCROLL_DOWN   8   /* Text nach unten scollen */
  97. #define MOUSE_SCROLL_RIGHT  9   /* Text nach rechts scrollen */
  98. #define MOUSE_SCROLL_LEFT  10   /* Text nach links scrollen */
  99.  
  100. #define GS_NUM 1                /* define fuer newgetstr: nur Ziffern */
  101. #define GS_ANY 2                /* alle moeglichen Zeichen */
  102. #define EC_SCROLL_WIDTH 10      /* Bildschirmverschiebung bei Erreichen */
  103.                 /* des rechten Randes                   */
  104. #define MACRO_NEST_DEPTH 20     /* max. Verschachtelungstiefe der Macros */
  105. #define MAX_MACRO_LEN MAXLENGTH /* max. Anzahl Zeichen pro Macro */
  106. #define ANZ_MACROS 26
  107. #define ANZ_MARKER 10
  108. #define STD_FATTR S_IWRITE | S_IREAD /* Standard-Dateiattribute */
  109.  
  110. #define PF_TASTEN "tasten.inf" /* Pfad für Tastenbelegungsdatei */
  111. #define PF_CONFIG "config.ehp" /* Pfad für Standardkonfigurationsdatei */
  112. #ifdef OS2
  113. #define STD_SHELL "cmd.exe"
  114. #define PF_LOAD   "load.cmd"   /* default load-file */
  115. #else
  116. #define STD_SHELL "command.com"
  117. #define PF_LOAD   "load.bat"   /* default load-file */
  118. #endif
  119.  
  120. #define LAST_LINE_DEL 2
  121. #define OTHER_LINE_DEL 1
  122. #define NO_LINE_DEL 0
  123.  
  124. #define BT_RECHTECK 0           /* Blocktypen */
  125. #define BT_NORMAL 1
  126.  
  127. #define B_IN_BLOCK 1                    /* Rueckgabewerte von in_block() */
  128. #define B_FIRST_LINE 2
  129. #define B_LAST_LINE 4
  130. #define B_BEFORE 8
  131. #define B_AFTER 16
  132. #define B_LINE 32
  133. #define B_FIRST_CHAR 64
  134. #define B_RIGHT 128
  135.  
  136. #ifdef GERMAN
  137. #define T_SIZE_ERRTEXT   "Text würde zu lang werden!"
  138. #define L_SIZE_ERRTEXT   "Zeile würde zu lang werden!"
  139. #define B_SIZE_ERRTEXT   "Text oder Zeile würden zu lang werden!"
  140. #define W_COUNT_ERRTEXT  "Kein Fenster mehr frei, weitere Dateien werden ignoriert!"
  141. #define NO_LOAD_ERRTEXT  "Load-File konnte nicht ausgefuehrt werden!\n"
  142. #define PROMPT_SEARCH    "Suchbegriff : "
  143. #define PROMPT_REPLACE   "Ersetzungsbegriff : "
  144. #define PROMPT_FOPTIONS  "Optionen ([<Zahl>] [r] [i] [w] [b|e]) : "
  145. #define PROMPT_ROPTIONS  "Optionen ([<Zahl>] [r] [i] [w] [b|e] [g] [a] [u]) : "
  146. #define PROMPT_NOTFOUND  "Suchbegriff nicht gefunden!"
  147. #define PROMPT_FOUNDN    "Konnte den Suchbegriff nur %d mal finden!"
  148. #define PROMPT_ERREPLACE "Konnte nicht ersetzen, Zeile zu lang!"
  149. #define PROMPT_FEMPTY    "Text leer! Kann nichts suchen!"
  150. #define PROMPT_REMPTY    "Text leer! Kann nichts ersetzen!"
  151. #define PROMPT_REPLYN    "Ersetzen (Ja/Nein/Abbruch)? "
  152. #define PROMPT_SEARCHING "Suche laeuft!"
  153. #define PROMPT_HELPTEXT  "Hilfstexte "
  154. #define PROMPT_BACKUP    "Sicherheitskopieoption "
  155. #define PROMPT_BLKHILGHT "Blockhervorhebung "
  156. #define PROMPT_WORKING   "Bearbeitung läuft"
  157. #define PROMPT_OUTOFMEM  "Nicht genug Speicher ! "
  158. #define PROMPT_ENTER     " Bitte RETURN drücken..."
  159. #define PROMPT_YES_NO    " (J/N) ? "
  160. #define PROMPT_NO_FILE   "Konnte kein File laden!"
  161. #define PROMPT_REPEAT    "Anzahl der Wiederholungen : "
  162. #define PROMPT_KEYREAD   "Tastenbelegungsdatei nicht lesbar!"
  163. #define PROMPT_KEYLENGTH "Tastenbelegungsdatei (Längenangabe) fehlerhaft!"
  164. #define PROMPT_KEYCOMM   "Tastenbelegungsdatei (Kommandos) fehlerhaft!"
  165. #define PROMPT_KEYCOMLEN "Befehlskombination in Tastenbelegungsdatei zu lang!"
  166. #define PROMPT_KEYHELP   "Tastenbelegungsdatei (Hilfstexte) fehlerhaft!"
  167. #define PROMPT_KEYHELPEM "Tastenbelegungsdatei fehlerhaft (Hilfstexte leer)!"
  168. #define PROMPT_RECURSION "Max. Verschachtelungstiefe überschritten, Puffer werden gelöscht!"
  169. #define PROMPT_COMMAND   "Kommandos eingeben (<RETURN> = Ende, CTRL-c <c> = <c> einfügen): "
  170. #define PROMPT_FILENAME  "Dateiname : "
  171. #define PROMPT_TABLEN    "Neue Tabulatorlänge (dafault: %d): "
  172. #define PROMPT_LINENUMB  "Welche Zeilennummer? "
  173. #define PROMPT_WINDOWNUM "Fensternummer: "
  174. #define PROMPT_CUT       "Block wurde im PASTE-Puffer gespeichert"
  175. #define PROMPT_ASKINDENT "Wie viele Spalten (negativ = nach links) ? "
  176. #define PROMPT_NOBLOCK   "Kein Block markiert!"
  177. #define PROMPT_ERRWRITE  "Schreibfehler bei Datei "
  178. #define PROMPT_MARKER    "Welcher Marker (0-9)? "
  179. #define PROMPT_MACRO     "A-Z: Macro def.; a-z: Macro ausf.;  "
  180. #define PROMPT_SAVE      "Dateien sichern"
  181. #define PROMPT_SAVING    "Satei %s wird abgespeichert..."
  182. #define PROMPT_LOADING   "Satei %s wird geladen..."
  183. #define PROMPT_NOWINDOW  "Kein Fenster mehr frei! "
  184. #define PROMPT_LINETOLNG "Zeile zu lang! "
  185. #define PROMPT_ONEWINDOW "Nur ein Fenster geöffnet !"
  186. #define PROMPT_BLOCKEMPT "Block leer!"
  187. #define PROMPT_FILENOTFD "Datei nicht gefunden !"
  188. #define PROMPT_ERRMARKER "Inkorrekte Eingabe, es wurde kein Marker gesetzt!"
  189. #define PROMPT_STALEMARK "Zum Marker gehöriges Fenster existiert nicht mehr!"
  190. #define PROMPT_EMPTYMARK "Gewünschter Marker noch nicht belegt!"
  191. #define PROMPT_ERRINPUT  "Inkorrekte Eingabe!"
  192. #define PROMPT_TMPOPEN   "Temporäre Datei konnte nicht geöffnet werden!"
  193. #define PROMPT_ERRSHELL  "Shell lieferte Fehlercolde zurück !"
  194. #define PROMPT_TMPNOTFND "Temporäre Datei nicht gefunden (evtl. kein Speicher)!"
  195. #define PROMPT_ERROPNCFG "Konnte Config-Datei nicht zum Schreiben öffnen!"
  196. #define PROMPT_ERRWRTCFG "Schreibfehler in Config-Datei; Datei wird gelöscht!"
  197. #define PROMPT_ERRDELETE "Löschen was nicht möglich!"
  198. #define PROMPT_MACROEMPT "Macro %c ist leer!"
  199. #define PROMPT_FILETOLNG "Datei zu lang, konnte nicht ganz gelesen werden!"
  200. #define PROMPT_WARNLOAD  "Text geändert, aber nocht nicht gespeichert! Wirklich überladen"
  201. #define PROMPT_ALRDYLDD  "Datei schon in Fenster %s! Trotzdem laden"
  202. #define PROMPT_WARNCLOSE "Änderungen noch nicht gespeichert! Fenster wirklich schließen"
  203. #define PROMPT_WARNSAVE  "Geänderte Dateien werden gespeichert! Wirklich beenden"
  204. #define PROMPT_EXITANYWY "Trotzdem beenden"
  205. #define PROMPT_WARNQUIT  "Dateien werden nicht gespeichert! Wirklich beenden"
  206. #define PROMPT_FILEEXIST "Datei existiert bereits! Überschreiben"
  207. #define PROMPT_NEWWINDOW "Nicht gefunden! Datei in neues Fenster laden"
  208. #define PROMPT_FATAL     "Fataler Fehler (Bus Error)! Geänderte Dateien speichern"
  209. #define PROMPT_ASKNEW    "Datei %s nicht lesbar! Neu anlegen"
  210. #define PROMPT_LINE      "Zeile"
  211. #define PROMPT_COLUMN    "Spalte"
  212. #define PROMPT_MODIFIED  "GEÄNDERT"
  213. #define PROMPT_WRTPROTCT "SCHREIBSCHUTZ"
  214. #define PROMPT_WINDOW    "Fenster"
  215. #define PROMPT_WINDOWEMP "L E E R"
  216. #define PROMPT_INSERT    "Einfg"
  217. #define PROMPT_OVERWRITE "Über"
  218. #define PROMPT_UNDERLINE "Unter"
  219. #define PROMPT_ERRUNLINK "Loeschen war nicht moeglich!"
  220. #define PROMPT_ERRTMPOPN "Temporäre Datei konnte nicht geöffnet werden!"
  221. #define PROMPT_EMPTFILT  "Filterausgabe war leer, Block wurde geloescht!"
  222. #define PROMPT_FILTNAME  "Name des Filters: "
  223. #define PROMPT_FLTNMDFLT "Name des Filters (Default ist jetzt %s): "
  224. #define PROMPT_WINMOVE   "Pfeile: bewege Fenster; s: Schrittweite ändern (jetzt:%d); RETURN: Ende  "
  225. #define PROMPT_WINSIZE   "Pfeile: ändere Größe; s: Schrittweite ändern (jetzt:%d); RETURN: Ende  "
  226. #define PROMPT_ERRCONF   "Inkorrektes Dateiformat, Config-Datei wird gelöscht!"
  227. #define PROMPT_WRTPROT   "%s schreibgeschützt! Zum Speichern umbenennen!"
  228. #define PROMPT_KEYLONG   "Maximale Länge überschritten, letzte Eingabe ignoriert!"
  229. #define PROMPT_FILTINSRT "Filterausgabe konnte nicht eingefuegt werden!"
  230. #define PROMPT_SHELINSRT "Konnte Shell-Ausgabe nicht einfuegen!"
  231. #define PROMPT_INDNTLONG "Zeile zu lang, konnte nicht einruecken!"
  232. #define PROMPT_WINNMNFND "Window mit dieser Nummer nicht gefunden !"
  233. #define PROMPT_IO_REDIR  "Ein- und Ausgabe von EHP dürfen nicht umgelenkt werden!\n"
  234. #else
  235. #define T_SIZE_ERRTEXT   "Text would grow too long!"
  236. #define L_SIZE_ERRTEXT   "Line would grow too long!"
  237. #define B_SIZE_ERRTEXT   "Text od line would grow too long!"
  238. #define W_COUNT_ERRTEXT  "No window free, further files are ignored!"
  239. #define NO_LOAD_ERRTEXT  "Unable to execute load-file!\n"
  240. #define PROMPT_SEARCH    "Find : "
  241. #define PROMPT_REPLACE   "Replace with : "
  242. #define PROMPT_FOPTIONS  "Options ([<number>] [r] [i] [w] [b|e]) : "
  243. #define PROMPT_ROPTIONS  "Options ([<Zahl>] [r] [i] [w] [b|e] [g] [a] [u]) : "
  244. #define PROMPT_NOTFOUND  "Searchstring not found!"
  245. #define PROMPT_FOUNDN    "Searchstring found only %d times!"
  246. #define PROMPT_ERREPLACE "Could not replace, line too long!"
  247. #define PROMPT_FEMPTY    "Text empty! Nothing to find!"
  248. #define PROMPT_REMPTY    "Text empty! Nothing to replace!"
  249. #define PROMPT_REPLYN    "Replace (Yes/No/Abort)? "
  250. #define PROMPT_SEARCHING "Searching!"
  251. #define PROMPT_HELPTEXT  "Helptexts "
  252. #define PROMPT_BACKUP    "Creation of .bak-Files "
  253. #define PROMPT_BLKHILGHT "Blockhighlight "
  254. #define PROMPT_WORKING   "Working"
  255. #define PROMPT_OUTOFMEM  "Out of memory ! "
  256. #define PROMPT_ENTER     " Please hit RETURN..."
  257. #define PROMPT_YES_NO    " (Y/N) ? "
  258. #define PROMPT_NO_FILE   "No file loadable!"
  259. #define PROMPT_REPEAT    "Times to repeat : "
  260. #define PROMPT_KEYREAD   "Keyboardfile unreadable!"
  261. #define PROMPT_KEYLENGTH "Keyboardfile (length information) erroneous!"
  262. #define PROMPT_KEYCOMM   "Keyboardfile (commands) erroneous!"
  263. #define PROMPT_KEYCOMLEN "Command in keyboardfile too long!"
  264. #define PROMPT_KEYHELP   "Keyboardfile (helptexts) erroneous!"
  265. #define PROMPT_KEYHELPEM "Keyboardfile erroneous (helptexts empty)!"
  266. #define PROMPT_RECURSION "Recursion too deep, buffers are deleted!"
  267. #define PROMPT_COMMAND   "Enter commands (<RETURN> = end, CTRL-c <c> = insert <c>): "
  268. #define PROMPT_FILENAME  "Filename : "
  269. #define PROMPT_TABLEN    "New tablength (dafault: %d): "
  270. #define PROMPT_LINENUMB  "Which linenumber? "
  271. #define PROMPT_WINDOWNUM "Windownumber: "
  272. #define PROMPT_CUT       "Block stored in PASTE-buffer"
  273. #define PROMPT_ASKINDENT "How many columns (negativ = to left) ? "
  274. #define PROMPT_NOBLOCK   "No block marked!"
  275. #define PROMPT_ERRWRITE  "Error writing file "
  276. #define PROMPT_MARKER    "Which marker (0-9)? "
  277. #define PROMPT_MACRO     "A-Z: define macro; a-z: execute macro;  "
  278. #define PROMPT_SAVE      "Save files"
  279. #define PROMPT_SAVING    "Saving file %s..."
  280. #define PROMPT_LOADING   "Loading file %s..."
  281. #define PROMPT_NOWINDOW  "No window available! "
  282. #define PROMPT_LINETOLNG "Line too long! "
  283. #define PROMPT_ONEWINDOW "Only one window open!"
  284. #define PROMPT_BLOCKEMPT "Block empty!"
  285. #define PROMPT_FILENOTFD "File not found!"
  286. #define PROMPT_ERRMARKER "Erroneous imput, no marker is set!"
  287. #define PROMPT_STALEMARK "Window belonging to marker ceased to exist!"
  288. #define PROMPT_EMPTYMARK "Marker not yet defined!"
  289. #define PROMPT_ERRINPUT  "Invalid input!"
  290. #define PROMPT_TMPOPEN   "Error opening tamporary file!"
  291. #define PROMPT_ERRSHELL  "Shell returned errorcode!"
  292. #define PROMPT_TMPNOTFND "Temporary file not found (perhaps no memory)!"
  293. #define PROMPT_ERROPNCFG "Error opening config-file for writing!"
  294. #define PROMPT_ERRWRTCFG "Error writing config-file; removing file!"
  295. #define PROMPT_ERRDELETE "Removing failed!"
  296. #define PROMPT_MACROEMPT "Macro %c is empty!"
  297. #define PROMPT_FILETOLNG "File too long, couldn't be read completely!"
  298. #define PROMPT_WARNLOAD  "Text modified but not saved! Really overwrite"
  299. #define PROMPT_ALRDYLDD  "File already in window %d! Load anyway"
  300. #define PROMPT_WARNCLOSE "Modifications not saved! Really close window"
  301. #define PROMPT_WARNSAVE  "Modified files are saved! Really exit"
  302. #define PROMPT_EXITANYWY "Exit anyway"
  303. #define PROMPT_WARNQUIT  "Files are not saved! Really exit"
  304. #define PROMPT_FILEEXIST "File already exists! Overwrite"
  305. #define PROMPT_NEWWINDOW "Not found! Load file in new window"
  306. #define PROMPT_FATAL     "Fatal error (bus error)! Save modified files"
  307. #define PROMPT_ASKNEW    "File %s not readable! Create it"
  308. #define PROMPT_LINE      "line"
  309. #define PROMPT_COLUMN    "column"
  310. #define PROMPT_MODIFIED  "MODIFIED"
  311. #define PROMPT_WRTPROTCT "WRITEPROTECTED"
  312. #define PROMPT_WINDOW    "window"
  313. #define PROMPT_WINDOWEMP "E M P T Y"
  314. #define PROMPT_INSERT    "Insert"
  315. #define PROMPT_OVERWRITE "Overwrt"
  316. #define PROMPT_UNDERLINE "Under"
  317. #define PROMPT_ERRUNLINK "Deletion failed!"
  318. #define PROMPT_ERRTMPOPN "Unable to open temporary file!"
  319. #define PROMPT_EMPTFILT  "Filteroutput was empty, deleting block!"
  320. #define PROMPT_FILTNAME  "Name of filter: "
  321. #define PROMPT_FLTNMDFLT "Name of filter (current default %s): "
  322. #define PROMPT_WINMOVE   "Arrow-keys: move window; s: toggle stepwidth (now:%d); RETURN: quit "
  323. #define PROMPT_WINSIZE   "Arrow-keys: change size; s: toggle stepwidth (now:%d); RETURN: quit "
  324. #define PROMPT_ERRCONF   "Erroneous fileformat, deleting config-file!"
  325. #define PROMPT_WRTPROT   "%s write-protected! Rename for saving!"
  326. #define PROMPT_KEYLONG   "Maximum length exceeded, ignoring last input!"
  327. #define PROMPT_FILTINSRT "Unable to insert filter output!"
  328. #define PROMPT_SHELINSRT "Unable to insert shell output!"
  329. #define PROMPT_INDNTLONG "Line too long, unable to indent!"
  330. #define PROMPT_WINNMNFND "Window with this number not found!"
  331. #define PROMPT_IO_REDIR  "In- and output of EHP must not be redirected!\n"
  332. #endif
  333.  
  334. typedef struct s1
  335. {
  336.   char      *text;
  337.   struct s1 *prev,*next;
  338. } zeil_typ;
  339.  
  340. typedef struct s5
  341. {
  342.   char      *text;
  343.   struct s5 *next;
  344. } bzeil_typ;
  345.  
  346. typedef struct s3
  347. {
  348.   char      typ;
  349.   int       s_line,s_col,e_line,e_col,laenge;
  350.   bzeil_typ *bstart;
  351. } block_typ;
  352.  
  353. typedef struct s2
  354. {
  355.   char      *filename;
  356.   int       ws_col,ws_line,textline,textcol,screencol,maxline,wini,x,y,dx,dy;
  357.   int       ax,ay,adx,ady,tablen,lastcol,lastline;
  358.   unsigned  short int attribs;
  359.   char      shellflag,changeflag,insflag,underflag,autoindflag,tabflag,read_only;
  360.   block_typ block;
  361.   zeil_typ  *alinep,*dummyp;
  362.   WINDOW    *winp;
  363.   struct s2 *prev,*next;
  364. } win_typ;
  365.  
  366. typedef struct s6{
  367.   int window,line,col;
  368. }marker_typ;
  369.  
  370. typedef struct s8{
  371.   short int *begin,*end,*current,anz_rep;
  372.   char free_flag;
  373. }puff_typ;
  374.  
  375. typedef struct s4{
  376.   short int blen;
  377.   short int befehl[MAX_COMM_LEN];
  378.   char  *info_text;
  379. }comm_typ;
  380.  
  381. #ifndef aktdef
  382. extern win_typ *akt_winp;
  383. extern char *reserve_mem();
  384. extern char *save_text();
  385. #endif
  386.