Mercurial > octave
annotate libinterp/corefcn/oct-strstrm.cc @ 20893:384ff5aa9437
2015 Code Sprint: Eliminate useless return statements after error ().
* data.cc, graphics.cc, graphics.in.h, ls-mat4.cc, ls-mat5.cc, oct-fstrm.cc,
oct-stream.cc, oct-strstrm.cc, __delaunayn__.cc, ov-base-int.cc, ov-classdef.h,
ov-complex.cc, ov-cx-sparse.cc, ov-fcn-inline.cc, ov-float.cc,
ov-flt-complex.cc, ov-java.cc, ov-range.cc, ov-re-sparse.cc, ov-scalar.cc,
ov-struct.cc, ov-usr-fcn.cc, ov.cc, op-cm-cm.cc, op-cm-m.cc, op-cm-scm.cc,
op-cm-sm.cc, op-fcm-fcm.cc, op-fcm-fm.cc, op-fm-fcm.cc, op-fm-fm.cc,
op-m-cm.cc, op-m-m.cc, op-m-scm.cc, op-m-sm.cc, op-scm-cm.cc, op-scm-m.cc,
op-scm-scm.cc, op-scm-sm.cc, op-sm-cm.cc, op-sm-m.cc, op-sm-scm.cc,
op-sm-sm.cc, pt-exp.cc:
Eliminate useless return statements after error ().
author | Rik <rik@octave.org> |
---|---|
date | Mon, 14 Dec 2015 12:59:29 -0800 |
parents | 4197fc428c7d |
children | 8ddb11c0b1f8 |
rev | line source |
---|---|
2081 | 1 /* |
2 | |
19697
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
3 Copyright (C) 1996-2015 John W. Eaton |
2081 | 4 |
5 This file is part of Octave. | |
6 | |
7 Octave is free software; you can redistribute it and/or modify it | |
8 under the terms of the GNU General Public License as published by the | |
7016 | 9 Free Software Foundation; either version 3 of the License, or (at your |
10 option) any later version. | |
2081 | 11 |
12 Octave is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
7016 | 18 along with Octave; see the file COPYING. If not, see |
19 <http://www.gnu.org/licenses/>. | |
2081 | 20 |
21 */ | |
22 | |
23 #ifdef HAVE_CONFIG_H | |
24 #include <config.h> | |
25 #endif | |
26 | |
27 #include "oct-strstrm.h" | |
28 | |
29 // Position a stream at OFFSET relative to ORIGIN. | |
30 | |
31 int | |
16011
8122286c69a9
initial large file support for 32-bit systems
John W. Eaton <jwe@octave.org>
parents:
15195
diff
changeset
|
32 octave_base_strstream::seek (off_t, int) |
2081 | 33 { |
4797 | 34 error ("fseek: invalid operation"); |
2081 | 35 } |
36 | |
37 // Return current stream position. | |
38 | |
16011
8122286c69a9
initial large file support for 32-bit systems
John W. Eaton <jwe@octave.org>
parents:
15195
diff
changeset
|
39 off_t |
4797 | 40 octave_base_strstream::tell (void) |
2081 | 41 { |
4797 | 42 error ("ftell: invalid operation"); |
2081 | 43 } |
44 | |
3340 | 45 octave_stream |
3544 | 46 octave_istrstream::create (const char *data, std::ios::openmode arg_md, |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
47 oct_mach_info::float_format flt_fmt) |
3340 | 48 { |
49 return octave_stream (new octave_istrstream (data, arg_md, flt_fmt)); | |
50 } | |
51 | |
52 octave_stream | |
3544 | 53 octave_istrstream::create (const std::string& data, std::ios::openmode arg_md, |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
54 oct_mach_info::float_format flt_fmt) |
3340 | 55 { |
56 return octave_stream (new octave_istrstream (data, arg_md, flt_fmt)); | |
57 } | |
58 | |
59 octave_stream | |
3544 | 60 octave_ostrstream::create (std::ios::openmode arg_md, |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
61 oct_mach_info::float_format flt_fmt) |
3340 | 62 { |
63 return octave_stream (new octave_ostrstream (arg_md, flt_fmt)); | |
64 } |