Mercurial > hg > octave-lyh
annotate liboctave/lo-utils.h @ 8920:eb63fbe60fab
update copyright notices
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 07 Mar 2009 10:41:27 -0500 |
parents | 82be108cc558 |
children | d865363208d6 |
rev | line source |
---|---|
1967 | 1 /* |
2 | |
7017 | 3 Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
8920 | 4 2007, 2008 John W. Eaton |
1967 | 5 |
6 This file is part of Octave. | |
7 | |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
7016 | 10 Free Software Foundation; either version 3 of the License, or (at your |
11 option) any later version. | |
1967 | 12 |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
7016 | 19 along with Octave; see the file COPYING. If not, see |
20 <http://www.gnu.org/licenses/>. | |
1967 | 21 |
22 */ | |
23 | |
24 #if !defined (octave_liboctave_utils_h) | |
25 #define octave_liboctave_utils_h 1 | |
26 | |
2926 | 27 #include <cstdio> |
28 | |
4130 | 29 #include <iostream> |
2926 | 30 #include <string> |
31 | |
4130 | 32 #include "oct-cmplx.h" |
5275 | 33 #include "oct-types.h" |
5453 | 34 #include "syswait.h" |
4130 | 35 |
6108 | 36 extern OCTAVE_API octave_idx_type NINTbig (double x); |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
37 extern OCTAVE_API octave_idx_type NINTbig (float x); |
6108 | 38 extern OCTAVE_API int NINT (double x); |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
39 extern OCTAVE_API int NINT (float x); |
6108 | 40 extern OCTAVE_API double D_NINT (double x); |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
41 extern OCTAVE_API float F_NINT (float x); |
1967 | 42 |
6108 | 43 extern OCTAVE_API char *strsave (const char *); |
2926 | 44 |
6108 | 45 extern OCTAVE_API void octave_putenv (const std::string&, const std::string&); |
2926 | 46 |
6108 | 47 extern OCTAVE_API std::string octave_fgets (std::FILE *); |
48 extern OCTAVE_API std::string octave_fgetl (std::FILE *); | |
2926 | 49 |
6108 | 50 extern OCTAVE_API std::string octave_fgets (std::FILE *, bool& eof); |
51 extern OCTAVE_API std::string octave_fgetl (std::FILE *, bool& eof); | |
3970 | 52 |
6108 | 53 extern "C" OCTAVE_API int octave_gethostname (char *, int); |
3803 | 54 |
6108 | 55 extern "C" OCTAVE_API void octave_qsort (void *base, size_t n, size_t size, |
3613 | 56 int (*cmp) (const void *, const void *)); |
57 | |
6108 | 58 extern "C" OCTAVE_API char *oct_strptime (const char *buf, const char *format, |
3706 | 59 struct tm *tm); |
60 | |
6111 | 61 extern "C" OCTINTERP_API int octave_strcasecmp (const char *s1, const char *s2); |
62 | |
63 extern "C" OCTINTERP_API int octave_strncasecmp (const char *s1, const char *s2, size_t n); | |
64 | |
6108 | 65 extern OCTAVE_API double octave_read_double (std::istream& is); |
66 extern OCTAVE_API Complex octave_read_complex (std::istream& is); | |
4130 | 67 |
6108 | 68 extern OCTAVE_API void octave_write_double (std::ostream& os, double dval); |
69 extern OCTAVE_API void octave_write_complex (std::ostream& os, const Complex& cval); | |
4130 | 70 |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
71 extern OCTAVE_API float octave_read_float (std::istream& is); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
72 extern OCTAVE_API FloatComplex octave_read_float_complex (std::istream& is); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
73 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
74 extern OCTAVE_API void octave_write_float (std::ostream& os, float dval); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
75 extern OCTAVE_API void octave_write_float_complex (std::ostream& os, const FloatComplex& cval); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
76 |
5451 | 77 #ifdef HAVE_LOADLIBRARY_API |
78 #include <windows.h> | |
6108 | 79 extern "C" OCTAVE_API void * octave_w32_library_search (HINSTANCE handle, const char *name); |
80 #undef min | |
81 #undef max | |
5451 | 82 #endif |
1967 | 83 #endif |
84 | |
6108 | 85 extern "C" OCTAVE_API pid_t octave_waitpid (pid_t pid, int *status, int options); |
5453 | 86 |
1967 | 87 /* |
88 ;;; Local Variables: *** | |
89 ;;; mode: C++ *** | |
90 ;;; End: *** | |
91 */ |