Lines Matching refs:stype
202 short stype; /* [=+-?%#] action after expanded word */
378 int stype;
383 type = varsub(&x, varname, sp, &stype, &slen);
415 st->stype = stype;
430 if (stype)
432 switch (stype & 0x17F) {
508 if (!(stype & 0x180) &&
514 if (!(stype & 0x100)) {
534 if ((stype & 0x180) &&
540 stype &= ~0x180;
590 if (stype & 0x100) {
603 if (stype & 0x100) {
607 } else if (stype & 0x80)
695 switch (st->stype & 0x17F) {
711 dp, st->stype);
1115 int stype; /* substitution type */
1121 if ((stype = sp[0]) == '\0')
1132 if (stype == '%' && c == '\0')
1134 if ((stype == '#' || stype == '%') && c != '\0') {
1144 if (stype != '#')
1154 if (stype != '#')
1160 if (stype == '#')
1195 if (stype == '!' && c != '\0' && *word == CSUBST) {
1200 stype = 0;
1211 stype = 0;
1215 stype = 0x80;
1218 if (!stype && c == '/') {
1220 stype = c;
1223 stype |= 0x80;
1225 } else if (stype == 0x80 && (c == ' ' || c == '0')) {
1226 stype |= '0';
1229 stype |= c;
1233 stype = c;
1235 stype |= 0x80;
1248 stype |= 0x100 | c;
1250 } else if (stype)
1253 if (!stype && *word != CSUBST)
1258 switch (stype & 0x17F) {
1289 switch (stype & 0x17F) {
1330 if ((stype & 0x17F) == '=' && !*xp->str &&
1336 c = stype & 0x7F;
1338 if (((stype < 0x100) && (ksh_issubop2(c) ||
1339 (((stype & 0x80) ? *xp->str == '\0' : xp->str == null) &&
1343 stype == (0x80 | '0') || stype == (0x100 | '#') ||
1344 stype == (0x100 | 'Q') || (stype & 0x7F) == '/')
1350 *stypep = stype;