Use streams in main.c

This commit is contained in:
Wilson Lin 2018-07-05 19:55:11 +12:00
parent e647872756
commit 9bdae51b01
1 changed files with 6 additions and 3 deletions

View File

@ -1,12 +1,17 @@
#include <stddef.h>
#include <stdio.h>
#include <getopt.h>
#include "error/error.c"
#include "rule/init.c"
#include "util/fstreamin.c"
#include "util/fstreamout.c"
#include "util/pipe.c"
#include "stream/content.c"
int main(int argc, char **argv) {
// Set up rules
hb_r_init();
@ -59,7 +64,5 @@ int main(int argc, char **argv) {
hbu_pipe_blank_set_input(pipe, input);
hbu_pipe_blank_set_output_fstreamout(pipe, output);
while (1) {
hbu_pipe_accept(pipe);
}
hbs_content(pipe);
}