Lines Matching refs:stat
63 } stat; in CommandParseLine() local
76 memset(&stat, 0, sizeof(stat)); in CommandParseLine()
81 if (stat.inQuote) { in CommandParseLine()
84 stat.done = 1; in CommandParseLine()
88 if (i > 0 && inbuf[i - 1] == '\\' && stat.inArg) { in CommandParseLine()
93 if (!stat.inQuote && stat.inArg) { in CommandParseLine()
96 if (stat.inQuote && !stat.inArg) { in CommandParseLine()
100 if (!stat.inQuote && !stat.inArg) { in CommandParseLine()
101 stat.inArg = 1; in CommandParseLine()
102 stat.inQuote = 1; in CommandParseLine()
105 } else if (stat.inQuote && stat.inArg) { in CommandParseLine()
106 stat.inArg = 0; in CommandParseLine()
107 stat.inQuote = 0; in CommandParseLine()
113 if (i > 0 && inbuf[i - 1] == '\\' && stat.inArg) { in CommandParseLine()
119 if (!stat.inQuote && stat.inArg) { in CommandParseLine()
120 stat.inArg = 0; in CommandParseLine()
126 if (i > 0 && inbuf[i - 1] == '\\' && stat.inArg) { in CommandParseLine()
132 if (stat.inQuote) { in CommandParseLine()
135 if (!stat.inQuote && stat.inArg) { in CommandParseLine()
136 stat.inArg = 0; in CommandParseLine()
149 if (!stat.inArg) { in CommandParseLine()
150 stat.inArg = 1; in CommandParseLine()
156 …} while (!stat.done && ++i < BUFSIZ && cmdnum < CLI_MAX_ONCECMD_NUM && (*pargc) < CLI_MAX_ARG_NUM); in CommandParseLine()
158 if (stat.inQuote) { in CommandParseLine()