Lines Matching refs:idepth
979 static size_t istacksize, idepth;
994 while (idepth) {
995 idepth--;
996 while ((pl = SLIST_FIRST(&istack[idepth].more)) != NULL) {
997 SLIST_REMOVE_HEAD(&istack[idepth].more, entries);
1001 sudo_rcstr_delref(istack[idepth].path);
1002 if (idepth && !istack[idepth].keepopen)
1003 fclose(istack[idepth].bs->yy_input_file);
1004 sudoers_delete_buffer(istack[idepth].bs);
1005 free(istack[idepth].line.buf);
1009 istacksize = idepth = 0;
1113 if (idepth >= istacksize) {
1116 if (idepth > MAX_SUDOERS_DEPTH) {
1133 SLIST_INIT(&istack[idepth].more);
1167 count = switch_dir(&istack[idepth], path);
1177 if ((pl = SLIST_FIRST(&istack[idepth].more)) == NULL) {
1181 SLIST_REMOVE_HEAD(&istack[idepth].more, entries);
1194 istack[idepth].path = sudoers; /* push old path (and its ref) */
1195 istack[idepth].line = sudolinebuf;
1196 istack[idepth].bs = YY_CURRENT_BUFFER;
1197 istack[idepth].lineno = sudolineno;
1198 istack[idepth].keepopen = keepopen;
1199 idepth++;
1220 if (idepth == 0 || YY_CURRENT_BUFFER == NULL)
1227 while ((pl = SLIST_FIRST(&istack[idepth - 1].more)) != NULL) {
1228 SLIST_REMOVE_HEAD(&istack[idepth - 1].more, entries);
1246 idepth--;
1247 sudoers_switch_to_buffer(istack[idepth].bs);
1249 sudolinebuf = istack[idepth].line;
1251 sudoers = istack[idepth].path;
1252 sudolineno = istack[idepth].lineno;
1253 keepopen = istack[idepth].keepopen;