Mercurial > hg > octave-lyh
annotate liboctave/statdefs.h @ 14507:3f21c0c34b8f
check for function/file name mismatch when parsing class methods
* oct-parse.yy (frob_function): Also check for and repair function
name/file name mismatch when parsing class methods.
* test/bug-36025: New test directory.
* test/Makefile.am: Include bug-36025/module.mk.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 28 Mar 2012 23:21:44 -0400 |
parents | 72c96de7a403 |
children |
rev | line source |
---|---|
1 | 1 /* |
2 | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
3 Copyright (C) 1993-2012 John W. Eaton |
1 | 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. | |
1 | 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/>. | |
1 | 20 |
21 */ | |
22 | |
383 | 23 #if !defined (octave_statdefs_h) |
24 #define octave_statdefs_h 1 | |
1 | 25 |
26 #include <sys/types.h> | |
2926 | 27 |
28 #ifdef HAVE_SYS_STAT_H | |
1 | 29 #include <sys/stat.h> |
2926 | 30 #endif |
1 | 31 |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
32 #ifndef S_ISREG /* Doesn't have POSIX.1 stat stuff. */ |
3225 | 33 #ifndef mode_t |
1 | 34 #define mode_t unsigned short |
35 #endif | |
3225 | 36 #endif |
1 | 37 #if !defined(S_ISBLK) && defined(S_IFBLK) |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
38 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) |
1 | 39 #endif |
40 #if !defined(S_ISCHR) && defined(S_IFCHR) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
41 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) |
1 | 42 #endif |
43 #if !defined(S_ISDIR) && defined(S_IFDIR) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
44 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) |
1 | 45 #endif |
46 #if !defined(S_ISREG) && defined(S_IFREG) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
47 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) |
1 | 48 #endif |
49 #if !defined(S_ISFIFO) && defined(S_IFIFO) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
50 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) |
1 | 51 #endif |
52 #if !defined(S_ISLNK) && defined(S_IFLNK) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
53 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) |
1 | 54 #endif |
55 #if !defined(S_ISSOCK) && defined(S_IFSOCK) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
56 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) |
1 | 57 #endif |
58 #if !defined(S_ISMPB) && defined(S_IFMPB) /* V7 */ | |
59 #define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB) | |
60 #define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC) | |
61 #endif | |
62 #if !defined(S_ISNWK) && defined(S_IFNWK) /* HP/UX */ | |
63 #define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK) | |
64 #endif | |
65 | |
66 #ifndef S_ISLNK | |
4062 | 67 #undef HAVE_LSTAT |
1 | 68 #endif |
69 | |
70 #endif |