[PATCH] Expose min/max NaN options to interpreter (3/4)
This is a massive overhaul of src/DLD-FUNCTIONS/minmax.cc. It's
slightly cpp-happy. The only advantage to a template-based
solution with a similar structure to the current code would be
cc-mode-friendliness. It could be re-worked to use a dispatch
system similar to the operators', but that would be a good deal
* DLD-FUNCTIONS/minmax.cc (SM_COMP): Macro added to define scalar-
(MS_COMP): Same for matrix-scalar.
(MM_COMP): Same for matrix-matrix.
(min): All helper definitions replaced by calls to the above macros.
(MINMAX_DISPATCH): Macro to give both DEFUN_DLD (min, ...) and
DEFUN_DLD (max, ...) the same bodies.
(interpreter's min): Body replaced by call to MINMAX_DISPATCH (min).
(interpreter's max): Equivalent change.