tinyvm/include/tvm/tvm_program.h
Joseph Kogut ca87b3c5e9 Refactor with a consistent coding style
This commit refactors the project using a single, consistent coding
style, derived from the Linux Kernel Coding Style, available here:

https://www.kernel.org/doc/Documentation/CodingStyle

This includes, but is not limited to:
* Removal of typedefs, especially for structs
* Limiting lines to a reasonable length, 80 characters, mostly
* K&R style braces
* Removal of CamelCase
2016-08-28 20:31:12 -07:00

30 lines
471 B
C

#ifndef TVM_PROGRAM_H_
#define TVM_PROGRAM_H_
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "tvm_htab.h"
#include "tvm_memory.h"
struct tvm_prog {
int start;
int num_instr;
int *instr;
int ***args;
int **values;
int num_values;
struct tvm_htab_ctx *defines;
struct tvm_htab_ctx *label_htab;
};
/* Create and initialize an empty program object */
struct tvm_prog *tvm_prog_create();
void tvm_prog_destroy(struct tvm_prog *p);
#endif