Lines Matching refs:np

189 	Node_t*		np;
837 compile(State_t* state, char** argv, register Node_t* np, int nested)
892 np->next = 0;
893 np->name = argp->name;
894 np->action = argp->action;
895 np->second.i = 0;
896 np->third.u = 0;
901 if (oldop == NOT || np->action != NOT && (oldop != PRINT || !oldnp))
903 error(2, "%s: operator syntax error", np->name);
918 np->first.fp = state->output;
919 else if (!(np->first.fp = sfopen(NiL, b, "w")))
928 np->second.i = *b;
931 np->first.u = strtoul(b, &e, 0);
939 np->third.u = 512;
944 np->third.u = 1024 * 1024 * 1024;
947 np->third.u = 1024;
950 np->third.u = 1024 * 1024;
953 np->third.u = 2;
960 np->first.cp = b;
971 np->first.np = state->topnode;
972 state->topnode = np;
977 state->topnode = np + 1;
982 error(2, "(...) imbalance -- closing ) expected", np->name);
985 np->first.np = state->topnode;
987 oldnp = np;
988 np->next = np + i;
989 np += i;
994 error(2, "(...) imbalance -- opening ( omitted", np->name);
1002 np->action = IGNORE;
1038 np->first.l = 0;
1039 np->second.i = '-';
1044 switch (np->second.i)
1047 np->second.u = state->day - (np->first.u + 1) * DAY - 1;
1048 np->first.u = 0;
1051 np->second.u = ~0;
1052 np->first.u = state->day - np->first.u * DAY + 1;
1055 np->second.u = state->day - np->first.u * DAY - 1;
1056 np->first.u = state->day - (np->first.u + 1) * DAY;
1063 np->action--;
1064 switch (np->second.i)
1067 np->second.u = state->now - np->first.u * 60;
1068 np->first.u = 0;
1071 np->first.u = state->now - np->first.u * 60;
1072 np->second.u = ~0;
1075 np->second.u = state->now - np->first.u * 60;
1076 np->first.u = np->second.u - 60;
1081 if ((np->first.l = struid(b)) < 0)
1083 error(2, "%s: invalid user name", np->name);
1088 if ((np->first.l = strgid(b)) < 0)
1090 error(2, "%s: invalid group name", np->name);
1099 i = np->action == XARGS ? 0 : 1;
1100 k = np->action == OK ? CMD_QUERY : 0;
1124 if (!(np->first.xp = cmdopen(com, i, 0, "{}", k|CMD_IGNORE)))
1129 np->second.np = state->cmd;
1130 state->cmd = np;
1148 if (!(np->second.re = vmnewof(state->vm, 0, regex_t, 1, sizeof(regdisc_t))))
1153 redisc = (regdisc_t*)(np->second.re + 1);
1159 np->second.re->re_disc = redisc;
1164 np->action = REGEX;
1166 if (i = regcomp(np->second.re, b, i))
1168 regfatal(np->second.re, 2, i);
1174 np->second.l = *b++;
1175 np->first.l = strperm(b, &e, -1);
1192 np->first.l = *b;
1226 np->action = PRINT;
1230 np->first.fp = state->output;
1231 np->second.i = '\n';
1234 np->first.fp = state->output;
1235 np->second.i = 0;
1236 np->action = PRINT;
1239 np->second.cp = format(state, np->first.cp);
1240 np->first.fp = state->output;
1243 np->first.fp = state->output;
1244 np->second.i = '\n';
1247 np->second.i = '\n';
1248 np->action = PRINT;
1251 np->second.i = 0;
1252 np->action = PRINT;
1260 np->second.cp = format(state, b);
1263 np->second.i = '\n';
1264 np->action = PRINTX;
1267 np->first.fp = state->output;
1274 np->action = LS;
1287 np->first.l = st.st_mtime;
1288 np->second.i = '+';
1308 state->minlevel = np->first.l;
1311 state->maxlevel = np->first.l;
1314 state->day = np->first.u;
1317 oldnp = np;
1318 oldnp->next = ++np;
1327 state->nextnode = np;
1340 register Node_t* np = state->topnode;
1391 while (np)
1393 switch (np->action)
1397 np = np->next;
1403 state->topnode = np->first.np;
1407 switch (np->action)
1428 switch (np->first.l)
1470 switch (np->second.i)
1473 val = (u & np->first.u) == np->first.u;
1476 val = (u & np->first.u) != 0;
1479 val = u == np->first.u;
1495 val = u >= np->first.u && u <= np->second.u;
1498 val = (unsigned long)ent->fts_statp->st_mtime > (unsigned long)np->first.u;
1501 val = (unsigned long)ent->fts_statp->st_atime > (unsigned long)np->first.u;
1504 val = (unsigned long)ent->fts_statp->st_ctime > (unsigned long)np->first.u;
1526 if (m = np->third.u)
1528 switch (np->second.i)
1531 val = (u > np->first.u);
1534 val = (u < np->first.u);
1537 val = (u == np->first.u);
1544 val = !cmdarg(np->first.xp, ent->fts_path, ent->fts_pathlen);
1550 val = strgrpmatch(ent->fts_name, np->first.cp, NiL, 0, STR_MAXIMAL|STR_LEFT|STR_RIGHT|(np->action == INAME ? STR_ICASE : ent->ignorecase)) != 0;
1555 val = S_ISLNK(ent->fts_statp->st_mode) && pathgetlink(PATH(ent), state->txt, sizeof(state->txt)) > 0 && strgrpmatch(state->txt, np->first.cp, NiL, 0, STR_MAXIMAL|STR_LEFT|STR_RIGHT|ent->ignorecase);
1558 val = S_ISLNK(ent->fts_statp->st_mode) && pathgetlink(PATH(ent), state->txt, sizeof(state->txt)) > 0 && strgrpmatch(state->txt, np->first.cp, NiL, 0, STR_MAXIMAL|STR_LEFT|STR_RIGHT|STR_ICASE);
1561 val = strgrpmatch(ent->fts_path, np->first.cp, NiL, 0, STR_MAXIMAL|STR_LEFT|STR_RIGHT|ent->ignorecase) != 0;
1564 val = strgrpmatch(ent->fts_path, np->first.cp, NiL, 0, STR_MAXIMAL|STR_LEFT|STR_RIGHT|STR_ICASE) != 0;
1568 val = strmatch(magictype(state->magic, fp, PATH(ent), ent->fts_statp), np->first.cp) != 0;
1575 val = strmatch(magictype(state->magic, fp, PATH(ent), ent->fts_statp), np->first.cp) != 0;
1581 if (!(val = regnexec(np->second.re, ent->fts_path, ent->fts_pathlen, NiL, 0, 0)))
1586 regfatal(np->second.re, 4, val);
1589 sfputr(np->first.fp, ent->fts_path, np->second.i);
1595 state->fmt.fmt.form = np->second.cp;
1597 sfprintf(np->first.fp, "%!", &state->fmt);
1601 quotex(np->first.fp, ent->fts_path, np->second.i);
1609 val = strcmp(fmtfs(ent->fts_statp), np->first.cp);
1613 sfputr(np->first.fp, state->buf, '\n');
1646 error(2, "internal error: %s: action not implemented", np->name);
1653 np = np->next;
1836 state.nextnode->first.np = state.topnode;
1855 state.cmd = state.cmd->second.np;