Changeset 3477 for trunk/src/kash/eval.c
- Timestamp:
- Sep 17, 2020, 11:52:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/eval.c
r3475 r3477 41 41 #endif 42 42 43 #include <assert.h>44 43 #include <stddef.h> 45 44 #include <stdlib.h> … … 528 527 break; 529 528 default: 530 assert(redir->type == NHERE || redir->type == NXHERE);529 kHlpAssert(redir->type == NHERE || redir->type == NXHERE); 531 530 expfnames->names[i] = NULL; 532 531 break; 533 532 } 534 533 } 535 assert(i == expfnames->count);534 kHlpAssert(i == expfnames->count); 536 535 537 536 /* Do the linking at the end, as nesting happens when we expand backtick arguments. */ … … 545 544 { 546 545 redirexpfnames *expfnames = psh->expfnames; 547 assert(expfnames == NULL ? depth == 0 : expfnames->depth == depth || expfnames->depth + 1 == depth);546 kHlpAssert(expfnames == NULL ? depth == 0 : expfnames->depth == depth || expfnames->depth + 1 == depth); 548 547 while (expfnames && expfnames->depth >= depth) 549 548 expfnames = psh->expfnames = expfnames->prev;
Note:
See TracChangeset
for help on using the changeset viewer.