fix bracket evaluation
[calc.git] / tabular.h
1 #ifndef __TABULAR_H__
2 #define __TABULAR_H__
3
4 #include "debug.h"
5 #include "alloc.h"
6
7 #include "tabular.h"
8
9 /* tabular type */
10
11 typedef struct {
12 double *data;
13 int size;
14 } tab_t;
15
16 /* management function */
17
18 tab_t *alloc_tab (int nb);
19 tab_t *resize_tab (tab_t *tab, int nb);
20 tab_t *copy_tab (tab_t *tab);
21 void free_tab (tab_t *tab);
22 int size_tab (tab_t *tab);
23 double set_tab (tab_t *tab, int id, double val);
24 double get_tab (tab_t *tab, int id);
25 double push_tab (tab_t *tab, int id, double val);
26 double pop_tab (tab_t *tab, int id);
27 void order_tab (tab_t *tab);
28
29 #endif /* __TABULAR_H__ */
30
31 /* vim: set ts=4 sw=4 et: */