2
* this file has to be included from sourcefiles to access global variables
3
* declared in 'vars.h'. The decision to equally include all useful
4
* header files potentially useful here is a pragmatic decision, though
6
* Copyright (c) ? - 2000 Lehrstuhl fuer Informatik VII, RWTH Aachen
7
* Copyright (c) 2000 - 2002 Burak Emir
8
* This file is part of the libAMoRE library.
10
* libAMoRE is free software; you can redistribute it and/or
11
* modify it under the terms of the GNU Lesser General Public
12
* License as published by the Free Software Foundation; either
13
* version 2.1 of the License, or (at your option) any later version.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with the GNU C Library; if not, write to the Free
16
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
32
#include <sys/param.h>
53
extern char dummy[PILEN];
55
/* these were used in the curses version */
56
/* extern int plines; */
57
/* extern int pcols; */
58
/* extern char *lpdest;*/
62
/* extern char line[LINELEN1]; MOVED TO READAMR */
68
/* memory management with the buffer */
70
/** <b>(array)newbuf((posint)(A),(posint)sizeof(posint))
71
* @memo allocates new {@link array array} of posint via newbuf
73
#define newarray(A) (array)newbuf((posint)(A),(posint)sizeof(posint))
74
/** <b>(mrkfin)newbuf((posint)(A),(posint)sizeof(boolx))
75
* @memo allocates new {@link mrkfin mrkfin} via newbuf
77
#define newfin(A) (mrkfin)newbuf((posint)(A),(posint)sizeof(boolx))
78
/** <b>(b_array)newbuf((posint)(A),(posint)sizeof(boole))
79
* @memo allocates new {@link b_array b_array} via newbuf
81
#define newb_array(A) (b_array)newbuf((posint)(A),(posint)sizeof(boole))
82
/** <b>(arrayofarray)newbuf((posint)(A),(posint)sizeof(array))
83
* @memo allocates new {@link arrayofarray arrayofarray} via newbuf
85
#define newarrayofarray(A) (arrayofarray)newbuf((posint)(A),(posint)sizeof(array))
86
/** <b>(arrayofb_array)newbuf((posint)(A),(posint)sizeof(b_array))
87
* @memo allocates new {@link arrayofb_array arrayofb_array} via newbuf
89
#define newarrayofb_array(A) (arrayofb_array)newbuf((posint)(A),(posint)sizeof(b_array))
90
/** <b>(string)newbuf((posint)(A),(posint)sizeof(char))
91
* @memo allocates new {@link string string} via newbuf
93
#define newstring(A) (string)newbuf((posint)(A),(posint)sizeof(char))
94
/** <b>(arrayofstring)newbuf((posint)(A),(posint)sizeof(string))
95
* @memo allocates {@link new arrayofstring arrayofstring} via newbuf
97
#define newarrayofstring(A) (arrayofstring)newbuf((posint)(A),(posint)sizeof(string))
100
#define newdlist() (d_list)newbuf((posint)1,(posint)sizeof(struct dlist))
104
#define cbreak() /* Lu-Go 29.11.91 */
106
#define echo() /* Lu-Go 29.11.91 */
108
#define gtyx(A,B,C) getyx(&B,&C)
109
#define initscr() clear()
110
#define nocbreak() /* Lu-Go 29.11.91 */
119
#define gtyx(A,B,C) getyx(A,B,C)