Mercurial > octave-nkf
comparison libinterp/dldfcn/colamd.cc @ 20614:10ec79b47808
use new string_value method to handle value extraction errors
* __voronoi__.cc, chol.cc, colamd.cc, fftw.cc:
Use new string_value method.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 08 Oct 2015 18:15:56 -0400 |
parents | a9574e3c6e9e |
children |
comparison
equal
deleted
inserted
replaced
20613:647db46ad754 | 20614:10ec79b47808 |
---|---|
703 return retval; | 703 return retval; |
704 } | 704 } |
705 | 705 |
706 if (nargin == 2) | 706 if (nargin == 2) |
707 { | 707 { |
708 if (args(1).is_string ()) | 708 std::string str = args(1).string_value ("etree: TYP must be a string"); |
709 { | 709 if (str.find ("C") == 0 || str.find ("c") == 0) |
710 std::string str = args(1).string_value (); | 710 is_sym = false; |
711 if (str.find ("C") == 0 || str.find ("c") == 0) | |
712 is_sym = false; | |
713 } | |
714 else | |
715 { | |
716 error ("etree: TYP must be a string"); | |
717 return retval; | |
718 } | |
719 } | 711 } |
720 | 712 |
721 // column elimination tree post-ordering (reuse variables) | 713 // column elimination tree post-ordering (reuse variables) |
722 OCTAVE_LOCAL_BUFFER (octave_idx_type, etree, n_col + 1); | 714 OCTAVE_LOCAL_BUFFER (octave_idx_type, etree, n_col + 1); |
723 | 715 |