5 ** Copyright (C) 1998 Kurt Van den Branden
7 ** This program is free software; you can redistribute it and/or modify
8 ** it under the terms of the GNU General Public License as published by
9 ** the Free Software Foundation; either version 2 of the License, or
10 ** (at your option) any later version.
12 ** This program is distributed in the hope that it will be useful,
13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ** GNU General Public License for more details.
17 ** You should have received a copy of the GNU General Public License
18 ** along with this program; if not, write to the Free Software
19 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #define _POSITION_H_ 1
34 #define posp_col(pos) pos->col
35 #define posp_row(pos) pos->row
36 #define pos_col(pos) pos.col
37 #define pos_row(pos) pos.row
40 #define new_position() (::position *) malloc (sizeof (::position))
41 #define del_position(x) free ((::position *) x)
42 extern "C" position
* strtopos (const char *);
43 extern "C" char * postostr (position
* pos
);
44 extern "C" void del_position_f (void * item
);
45 extern "C" listheader
* copy_position_row (listheader
* orig
);
46 extern "C" void * copy_position (void * orig
);
48 #define new_position() (position *) malloc (sizeof (position))
49 #define del_position(x) free ((position *) x)
50 void del_position_f (void * item
);
51 listheader
* copy_position_row (listheader
* orig
);
52 void * copy_position (void * orig
);
53 position
* strtopos (const char * str
);
54 char * postostr (position
* pos
);