annotate scripts/@ftp/disp.m @ 27919:1891570abac8

update Octave Project Developers copyright for the new year In files that have the "Octave Project Developers" copyright notice, update for 2020.
author John W. Eaton <jwe@octave.org>
date Mon, 06 Jan 2020 22:29:51 -0500
parents b442ec6dda5c
children bd51beb6205e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
27919
1891570abac8 update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents: 27918
diff changeset
1 ## Copyright (C) 2017-2020 The Octave Project Developers
27918
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 26376
diff changeset
2 ##
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 26376
diff changeset
3 ## See the file COPYRIGHT.md in the top-level directory of this distribution
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 26376
diff changeset
4 ## or <https://octave.org/COPYRIGHT.html/>.
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 26376
diff changeset
5 ##
23335
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 ##
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 ## This file is part of Octave.
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 ##
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23351
diff changeset
9 ## Octave is free software: you can redistribute it and/or modify it
23335
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 ## under the terms of the GNU General Public License as published by
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23351
diff changeset
11 ## the Free Software Foundation, either version 3 of the License, or
23335
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 ## (at your option) any later version.
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 ##
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 ## Octave is distributed in the hope that it will be useful, but
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 ## WITHOUT ANY WARRANTY; without even the implied warranty of
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 ## GNU General Public License for more details.
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 ##
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 ## You should have received a copy of the GNU General Public License
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 ## along with Octave; see the file COPYING. If not, see
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23351
diff changeset
21 ## <https://www.gnu.org/licenses/>.
23335
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 function disp (obj)
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 if (nargin != 1)
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 print_usage ();
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 endif
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28
23337
f04f32f08590 Override disp rather than display for class objects (bug #50640).
Rik <rik@octave.org>
parents: 23335
diff changeset
29 printf (" FTP object\n");
23335
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 printf (" host: %s\n", obj.host);
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 printf (" user: %s\n", obj.username);
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 printf (" dir: %s\n", __ftp_pwd__ (obj.curlhandle));
23351
5ea6c6d0c2db Use octave_base_value::print_name_tag for old style classes (bug #50640).
Rik <rik@octave.org>
parents: 23337
diff changeset
33 printf (" mode: %s\n", __ftp_mode__ (obj.curlhandle));
23335
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34
c052a29c1f1f improve display of ftp and audio objects (bug #50640)
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 endfunction