commit
e3d627956c
|
@ -1123,7 +1123,7 @@ CompiledAddr fstGetRootAddr(Fst *fst) {
|
||||||
|
|
||||||
Output fstEmptyFinalOutput(Fst *fst, bool *null) {
|
Output fstEmptyFinalOutput(Fst *fst, bool *null) {
|
||||||
Output res = 0;
|
Output res = 0;
|
||||||
FstNode *node = fst->root;
|
FstNode *node = fstGetRoot(fst);
|
||||||
if (FST_NODE_IS_FINAL(node)) {
|
if (FST_NODE_IS_FINAL(node)) {
|
||||||
*null = false;
|
*null = false;
|
||||||
res = FST_NODE_FINAL_OUTPUT(node);
|
res = FST_NODE_FINAL_OUTPUT(node);
|
||||||
|
|
|
@ -68,7 +68,7 @@ StartWithStateValue *startWithStateValueDump(StartWithStateValue *sv) {
|
||||||
// prefix query, impl later
|
// prefix query, impl later
|
||||||
|
|
||||||
static void* prefixStart(AutomationCtx *ctx) {
|
static void* prefixStart(AutomationCtx *ctx) {
|
||||||
StartWithStateValue *data = (StartWithStateValue *)(ctx->data);
|
StartWithStateValue *data = (StartWithStateValue *)(ctx->stdata);
|
||||||
return startWithStateValueDump(data);
|
return startWithStateValueDump(data);
|
||||||
};
|
};
|
||||||
static bool prefixIsMatch(AutomationCtx *ctx, void *sv) {
|
static bool prefixIsMatch(AutomationCtx *ctx, void *sv) {
|
||||||
|
|
Loading…
Reference in New Issue