Mercurial > octave
comparison scripts/miscellaneous/inputParser.m @ 32151:72dcb1cef2c9
maint: Strip trailing whitespace from source files.
Modified files: NEWS.8.md, file-editor-tab.cc, call-stack.cc,
compile.cc, perms.cc, stack-frame.cc, ov-base.cc, ov-fcn-handle.cc,
ov-fcn-handle.h, ov-fcn.cc, ov-oncleanup.h, ov-range.cc, ov-range.h,
ov-ref.cc, ov-ref.h, ov-scalar.h, ov-struct.cc, ov-vm.h,
pt-bytecode-vm-internal.h, pt-bytecode-vm.cc, pt-bytecode-vm.h,
pt-bytecode-walk.cc, pt-eval.cc, isuniform.m, inputParser.m, xlim.m,
ylim.m, zlim.m, movfun.m, std.m, var.m, isstrprop.m, bench.m,
bench.py, bytecode.tst, bytecode_anon_handles.m, bytecode_cell.m,
bytecode_dountil.m, bytecode_end.m, bytecode_errors.m,
bytecode_eval_1.m, bytecode_for.m, bytecode_global_1.m, bytecode_if.m,
bytecode_leaks.m, bytecode_matrix.m, bytecode_multi_assign.m,
bytecode_persistant.m, bytecode_range.m, bytecode_trycatch.m,
bytecode_unwind.m, bytecode_while.m, bytecode_disp.m,
bytecode_disp.tst, parser.tst.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 19 Jun 2023 23:21:41 -0400 |
parents | e3de59065cf1 |
children | addd99059d4c |
comparison
equal
deleted
inserted
replaced
32150:994b527e0ffe | 32151:72dcb1cef2c9 |
---|---|
655 if (isempty (this.(type))) | 655 if (isempty (this.(type))) |
656 return; | 656 return; |
657 endif | 657 endif |
658 | 658 |
659 ## Implement setdiff() without calling out to function for performance. | 659 ## Implement setdiff() without calling out to function for performance. |
660 typenames = {this.(type).name}(:); | 660 typenames = {this.(type).name}(:); |
661 Resultnames = fieldnames (this.Results); | 661 Resultnames = fieldnames (this.Results); |
662 [sorted, sidx] = sort ([typenames; Resultnames]); | 662 [sorted, sidx] = sort ([typenames; Resultnames]); |
663 dups = strcmp (sorted(1:end-1), sorted(2:end)); | 663 dups = strcmp (sorted(1:end-1), sorted(2:end)); |
664 idx = true (size (typenames)); | 664 idx = true (size (typenames)); |
665 idx(sidx(dups)) = false; | 665 idx(sidx(dups)) = false; |