Update file state.c

Merged 2022303061027-董俭时-404 requested to merge mi-patch-1a07 into main

进行函数的定义和声明并进行一定的修改

Merge request reports