Lines Matching refs:kwstate
936 env_replace(struct parse_state *psp, char *keybuf, char kwstate) in env_replace() argument
941 if ((cp = strrchr(keybuf, kwstate)) != NULL) { in env_replace()
992 char kwstate; in getkeyword() local
998 kwstate = '\0'; in getkeyword()
1005 switch (kwstate) { in getkeyword()
1016 switch (kwstate) { in getkeyword()
1018 kwstate = 'A'; in getkeyword()
1021 kwstate = '"'; in getkeyword()
1024 kwstate = '\''; in getkeyword()
1031 kwstate = '%'; in getkeyword()
1039 kwstate = kwstate == '"' ? '|' : '~'; in getkeyword()
1043 if (chr == kwstate) { in getkeyword()
1045 kwstate = 'A'; in getkeyword()
1053 kwstate = chr = in getkeyword()
1054 kwstate == '$' ? '{' : '['; in getkeyword()
1057 *kbp++ = kwstate = kwstate == '$' ? '+' : '*'; in getkeyword()
1063 *vnp++ = kwstate; in getkeyword()
1064 kwstate = '$'; in getkeyword()
1071 kbp = env_replace(psp, keybuf, kwstate); in getkeyword()
1073 kwstate = *--vnp; in getkeyword()
1075 kwstate = kwstate == '+' ? in getkeyword()
1085 kbp = env_replace(psp, keybuf, kwstate); in getkeyword()
1086 kwstate = kwstate == '{' ? 'A' : '"'; in getkeyword()
1094 kwstate = kwstate == '#' ? '\0' : ' '; in getkeyword()
1106 kwstate = '#'; in getkeyword()
1111 kwstate = 'A'; in getkeyword()
1117 kwstate = ' '; in getkeyword()
1121 kwstate = chr; /* Begin quote or escape */ in getkeyword()
1128 kwstate = '@'; /* Must consume comment also */ in getkeyword()
1133 kwstate = '$'; /* Begin variable expansion */ in getkeyword()
1142 if (ichr == EOF || kwstate == ' ') in getkeyword()
1155 return (kwstate == '\0' ? 1 : 2); in getkeyword()