Mercurial > hg > octave-jordi
annotate src/cutils.h @ 11512:e4e82740e9cd
prototype fixes for C language files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 13 Jan 2011 07:23:36 -0500 |
parents | |
children | 72c96de7a403 |
rev | line source |
---|---|
11512
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 /* |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 Copyright (C) 2011 John W. Eaton |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 This file is part of Octave. |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 Octave is free software; you can redistribute it and/or modify it |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 under the terms of the GNU General Public License as published by the |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 Free Software Foundation; either version 3 of the License, or (at your |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 option) any later version. |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 for more details. |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 You should have received a copy of the GNU General Public License |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 along with Octave; see the file COPYING. If not, see |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 <http://www.gnu.org/licenses/>. |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 */ |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 #if !defined (octave_cutils_h) |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 #define octave_cutils_h 1 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 #include <stdarg.h> |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 #ifdef __cplusplus |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 extern "C" { |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 #endif |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 OCTINTERP_API void octave_sleep (unsigned int seconds); |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
33 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
34 OCTINTERP_API void octave_usleep (unsigned int useconds); |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 OCTINTERP_API int |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 octave_raw_vsnprintf (char *buf, size_t n, const char *fmt, va_list args); |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
38 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
39 #ifdef __cplusplus |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
40 } |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
41 #endif |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
42 |
e4e82740e9cd
prototype fixes for C language files
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
43 #endif |