You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
icfp11/src/control_parser.h

25 lines
458 B

#ifndef _CONTROL_PARSER_H
#define _CONTROL_PARSER_H
struct control_parser_ctx;
typedef struct control_parser_ctx control_parser_ctx;
#include "control.h"
struct control_parser_ctx {
int cs;
GString *buffer;
gssize mark, pos;
telemetry *tm;
GString *tmp;
timestamp ts;
double x, y, r, dir, speed;
};
void control_parser_new(trial *t);
void control_parser_reset(trial *t);
void control_parser_free(trial *t);
run_t control_parse(trial *t);
#endif