Source
13
13
** GNU General Public License for more details.
14
14
**
15
15
** You should have received a copy of the GNU General Public License
16
16
** along with this program; if not, write to the Free Software
17
17
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
18
**/
19
19
20
20
#ifndef ZABBIX_ZBXEVAL_H
21
21
#define ZABBIX_ZBXEVAL_H
22
22
23
-
#include "common.h"
24
-
#include "zbxalgo.h"
25
23
#include "zbxvariant.h"
26
24
27
25
/*
28
26
* Token type flags (32 bits):
29
27
* | 6 bits | 4 bits | 22 bits |
30
28
* | token class | operator precedence | token type |
31
29
*/
32
30
#define ZBX_EVAL_CLASS_OPERAND (__UINT64_C(0x01) << 26)
33
31
#define ZBX_EVAL_CLASS_OPERATOR1 (__UINT64_C(0x02) << 26)
34
32
#define ZBX_EVAL_CLASS_OPERATOR2 (__UINT64_C(0x04) << 26)