PIPS
tab.h
Go to the documentation of this file.
1 /*
2 
3  $Id: tab.h 23065 2016-03-02 09:05:50Z coelho $
4 
5  Copyright 1989-2016 MINES ParisTech
6 
7  This file is part of PIPS.
8 
9  PIPS is free software: you can redistribute it and/or modify it
10  under the terms of the GNU General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  any later version.
13 
14  PIPS is distributed in the hope that it will be useful, but WITHOUT ANY
15  WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  FITNESS FOR A PARTICULAR PURPOSE.
17 
18  See the GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with PIPS. If not, see <http://www.gnu.org/licenses/>.
22 
23 */
24 struct A
25  {struct A *precedent;
26  char *bout;
27  };
28 
29 struct L
30  {int flags;
31  union { int unit;
32  Entier * val;
33  } objet;
34  };
35 
36 #define Unit 1
37 #define Plus 2
38 #define Minus 4
39 #define Zero 8
40 #define Critic 16
41 #define Unknown 32
42 
43 #define Sign 62
44 
45 #define Index(p,i,j) (p)->row[i].objet.val[j]
46 #define Flag(p,i) (p)->row[i].flags
47 struct T
48  {int height, width;
49  struct L row[1];
50  };
51 
52 typedef struct T Tableau;
53 
54 void tab_init();
55 
56 char * tab_hwm();
57 
58 void tab_reset();
59 
61 
62 void tab_copy();
63 
65 
66 void tab_display();
67 
#define Entier
Definition: pip__type.h:24
Definition: pip__tab.h:25
char * bout
Definition: pip__tab.h:26
struct A * precedent
Definition: pip__tab.h:25
Definition: pip__tab.h:30
int flags
Definition: pip__tab.h:30
int unit
Definition: pip__tab.h:31
Entier * val
Definition: pip__tab.h:32
union L::@15 objet
Definition: pip__tab.h:48
int width
Definition: pip__tab.h:48
int height
Definition: pip__tab.h:48
struct L row[1]
Definition: pip__tab.h:49
Tableau * tab_alloc()
void tab_init()
Definition: tab.c:77
char * tab_hwm()
Definition: tab.c:92
Tableau * tab_get()
void tab_reset()
void tab_copy()
Tableau * tab_expand()
void tab_display()