Imported Upstream version 2.9.0
[debian/cc1111] / device / include / mcs51 / lint.h
1 /*-----------------------------------------------------------------------------
2
3   Include file to allow parsing mcs51 specific code with syntax checking tools 
4
5   Copyright (c) 2005, Dr. Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6
7   This library is free software; you can redistribute it and/or
8   modify it under the terms of the GNU Lesser General Public
9   License as published by the Free Software Foundation; either
10   version 2.1 of the License, or (at your option) any later version.
11
12   This library is distributed in the hope that it will be useful,
13   but WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15   Lesser General Public License for more details.
16
17   You should have received a copy of the GNU Lesser General Public
18   License along with this library; if not, write to the Free Software
19   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
20
21 -----------------------------------------------------------------------------*/
22
23 #ifndef _LINT_H
24 #define _LINT_H
25
26   #if !defined(SDCC_mcs51)
27
28     #define __data
29     #define __near
30     #define __idata
31     #define __xdata
32     #define __far
33     #define __pdata
34     #define __code
35     #define __bit bool
36     #define __sfr volatile unsigned char
37     #define __sbit volatile bool
38     #define __critical
39     #define __at(x)             /* use "__at (0xab)" instead of "__at 0xab" */
40     #define __using(x)
41     #define __interrupt(x)
42     #define __naked
43
44     #define data
45     #define near 
46     #define idata
47     #define xdata
48     #define far
49     #define pdata
50     #define code
51     #define bit bool
52     #define sfr volatile unsigned char
53     #define sbit volatile bool
54     #define critical
55     #define at(x)
56     #define using(x)
57     #define interrupt(x)
58     #define naked
59
60     /* The tool Splint is available at http://www.splint.org
61        Other tools might also be used for statically checking c-sources.
62        Traditionally they could have "lint" in their name.
63      */
64     #if defined(S_SPLINT_S)
65
66       /* Behaviour of splint can be modified by special comments.
67          Some examples are shown below.
68
69          Note 1: most probably you'll want to copy this complete file into
70          your source directory, adapt the settings to your needs and use
71          #include "lint.h" as the first include in your source file(s).
72          You should then be able to either directly compile your file
73          or to run a check with splint over it without other changes.
74
75          Note 2: you need brackets around arguments for special
76          keywords, so f.e. it's "interrupt (1)" instead of "interrupt 1".
77        */
78
79       /*@ +charindex @*/
80
81     #endif
82
83   #endif
84
85 #endif