(Temporarily) set "animate" to "none" by default (broken feature).
[gf1.git] / position.h
blobe4b40225756eeee02c094e42fbbd057ff84c829f
1 /*
2 ** $Id$
3 */
4 /*
5 ** Copyright (C) 1998 Kurt Van den Branden
6 **
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.
11 **
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.
16 **
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.
22 #ifndef _POSITION_H_
23 #define _POSITION_H_ 1
25 #include <stdio.h>
26 #include <malloc.h>
27 #include "linklist.h"
29 typedef struct {
30 int col;
31 int row;
32 } position;
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
39 #ifdef __cplusplus
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);
47 #else
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);
55 #endif
57 #endif