Lines Matching refs:state

2513   } state;  in get_funky_string()  local
2523 state = ST_GND; /* Start in ground state. */ in get_funky_string()
2524 while (state < ST_END) in get_funky_string()
2526 switch (state) in get_funky_string()
2533 state = ST_END; /* End of string */ in get_funky_string()
2536 state = ST_BACKSLASH; /* Backslash escape sequence */ in get_funky_string()
2540 state = ST_CARET; /* Caret escape */ in get_funky_string()
2546 state = ST_END; /* End */ in get_funky_string()
2568 state = ST_OCTAL; /* Octal sequence */ in get_funky_string()
2573 state = ST_HEX; /* Hex sequence */ in get_funky_string()
2607 state = ST_ERROR; /* Error! */ in get_funky_string()
2613 if (state == ST_BACKSLASH) in get_funky_string()
2617 state = ST_GND; in get_funky_string()
2627 state = ST_GND; in get_funky_string()
2667 state = ST_GND; in get_funky_string()
2673 state = ST_GND; /* Should be the next state... */ in get_funky_string()
2685 state = ST_ERROR; in get_funky_string()
2697 return state != ST_ERROR; in get_funky_string()
2764 enum parse_state state = PS_START; in parse_ls_color() local
2767 switch (state) in parse_ls_color()
2790 state = (get_funky_string (&buf, &p, true, &ext->ext.len) in parse_ls_color()
2795 state = PS_DONE; /* Done! */ in parse_ls_color()
2800 state = PS_2; in parse_ls_color()
2809 state = PS_3; in parse_ls_color()
2812 state = PS_FAIL; /* Error */ in parse_ls_color()
2816 state = PS_FAIL; /* Assume failure... */ in parse_ls_color()
2824 state = (get_funky_string (&buf, &p, false, in parse_ls_color()
2830 if (state == PS_FAIL) in parse_ls_color()
2839 state = (get_funky_string (&buf, &p, false, &ext->seq.len) in parse_ls_color()
2843 state = PS_FAIL; in parse_ls_color()
2855 if (state == PS_FAIL) in parse_ls_color()