提交 7b62d02f 编写于 作者: dengyihao's avatar dengyihao

update fst struct

上级 d674fcc8
...@@ -100,7 +100,7 @@ FstState fstStateCreate(State state); ...@@ -100,7 +100,7 @@ FstState fstStateCreate(State state);
//compile //compile
void fstStateCompileForOneTransNext(FstCountingWriter *w, CompiledAddr addr, uint8_t inp); void fstStateCompileForOneTransNext(FstCountingWriter *w, CompiledAddr addr, uint8_t inp);
void fstStateCompileForOneTrans(FstCountingWriter *w, CompiledAddr addr, FstTransition trn); void fstStateCompileForOneTrans(FstCountingWriter *w, CompiledAddr addr, FstTransition *trn);
void fstStateCompileForAnyTrans(FstCountingWriter *w, CompiledAddr addr, FstBuilderNode *node); void fstStateCompileForAnyTrans(FstCountingWriter *w, CompiledAddr addr, FstBuilderNode *node);
// set_comm_input // set_comm_input
......
...@@ -195,12 +195,14 @@ void fstStateCompileForOneTransNext(FstCountingWriter *w, CompiledAddr addr, uin ...@@ -195,12 +195,14 @@ void fstStateCompileForOneTransNext(FstCountingWriter *w, CompiledAddr addr, uin
uint8_t v = fstStateCommInput(&s, &null); uint8_t v = fstStateCommInput(&s, &null);
if (null) { if (null) {
// w->write_all(&[inp]) // w->write_all(&[inp])
} fstCountingWriterWrite(w, &inp, 1);
}
fstCountingWriterWrite(w, &(s.val), 1);
// w->write_all(&[s.val]) // w->write_all(&[s.val])
return ; return;
} }
void fstStateCompileForOneTrans(FstCountingWriter *w, CompiledAddr addr, FstTransition trn) { void fstStateCompileForOneTrans(FstCountingWriter *w, CompiledAddr addr, FstTransition* trn) {
Output val = trn->out;
return ; return ;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册