fix bracket evaluation
[calc.git] / tabular.h
CommitLineData
3559b26c
LM
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
11typedef struct {
12 double *data;
13 int size;
14} tab_t;
15
16/* management function */
17
18tab_t *alloc_tab (int nb);
19tab_t *resize_tab (tab_t *tab, int nb);
20tab_t *copy_tab (tab_t *tab);
21void free_tab (tab_t *tab);
22int size_tab (tab_t *tab);
23double set_tab (tab_t *tab, int id, double val);
24double get_tab (tab_t *tab, int id);
25double push_tab (tab_t *tab, int id, double val);
26double pop_tab (tab_t *tab, int id);
27void order_tab (tab_t *tab);
28
29#endif /* __TABULAR_H__ */
30
31/* vim: set ts=4 sw=4 et: */