summaryrefslogtreecommitdiffstats
path: root/epan/dfilter/semcheck.h
blob: 261bdc65592a6b7926696a974fb2f2971a6e1a8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** @file
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 2001 Gerald Combs
 *
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef SEMCHECK_H
#define SEMCHECK_H

#include "dfilter-int.h"

bool
dfw_semcheck(dfwork_t *dfw);

ftenum_t
check_arithmetic(dfwork_t *dfw, stnode_t *st_node, ftenum_t lhs_ftype);

ftenum_t
check_function(dfwork_t *dfw, stnode_t *st_node, ftenum_t lhs_ftype);

ftenum_t
check_slice(dfwork_t *dfw, stnode_t *st, ftenum_t lhs_ftype);

bool
compatible_ftypes(ftenum_t a, ftenum_t b);

#endif