annotate .dir-locals.el @ 32058:e242124f1240

Overhaul input validation of sparse() function. * sparse.cc (Fsparse): Decode input type and identify floating point inputs. If input is of single type, emit new warning "Octave:sparse:double-conversion". If input is neither floating point or logical, then call err_wrong_type_arg() for pretty error message. Rename temporary variable 'k' to "argidx" for clarity. New temporary variable "arg" to increase readability of code. Add FIXME note about unreachable code due to behavior of get_dimensions(). * sparse.cc (Fissparse): Turn off warning about double-conversion temporarily for test which has single input. * warning_ids.m: Add description for new warning ID "Octave:sparse:double-conversion". * mk-sparse-tst.sh: Redo BIST tests for sparse() construction.
author Rik <rik@octave.org>
date Wed, 26 Apr 2023 10:09:09 -0700
parents df203b20cfc6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13105
3d7a4a2d9cef Make .h files open in c++-mode in Emacs; make sure gnu style is set for C mode
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 9966
diff changeset
1 ((nil .
3d7a4a2d9cef Make .h files open in c++-mode in Emacs; make sure gnu style is set for C mode
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 9966
diff changeset
2 ((c-file-style . "gnu")
3d7a4a2d9cef Make .h files open in c++-mode in Emacs; make sure gnu style is set for C mode
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 9966
diff changeset
3 (indent-tabs-mode . nil)
26681
df203b20cfc6 eliminate eval in Emacs .dir-locals file
John W. Eaton <jwe@octave.org>
parents: 17588
diff changeset
4 (fill-column . 72)))
9966
d4dab9605c49 correctly set indent-tabs-mode for ChangeLogs and Makefiles in .dir-locals.el
John W. Eaton <jwe@octave.org>
parents: 9933
diff changeset
5 (change-log-mode . ((indent-tabs-mode . t)))
d4dab9605c49 correctly set indent-tabs-mode for ChangeLogs and Makefiles in .dir-locals.el
John W. Eaton <jwe@octave.org>
parents: 9933
diff changeset
6 (makefile-mode . ((indent-tabs-mode . t))))