File: decoder.h

package info (click to toggle)
ceccomp 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,648 kB
  • sloc: ansic: 6,531; python: 1,078; makefile: 248; sh: 145
file content (21 lines) | stat: -rw-r--r-- 537 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef DECODER_H
#define DECODER_H

#include "lexical/parser.h"
#include "lexical/token.h"
#include "main.h"
#include "utils/vector.h"
#include <stdbool.h>
#include <stdint.h>

/**
 * prog: filters read from input
 * v:    initialized statement vector for decoded statements
 * trustful: filters extracted from kernel don't need check as kernel did that
 * Returns true if found any error
 */
extern bool decode_filters (fprog *prog, vector_t *v, bool trustful);

extern token_type decode_return_k (obj_t *ret_obj, uint32_t k);

#endif