1 /*-----------------------------------------------------------------------------
3 Include file to allow parsing mcs51 specific code with syntax checking tools
5 Copyright (c) 2005, Dr. Frieder Ferlemann <Frieder.Ferlemann AT web.de>
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.
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.
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
21 -----------------------------------------------------------------------------*/
26 #if !defined(SDCC_mcs51)
36 #define __sfr volatile unsigned char
37 #define __sbit volatile bool
39 #define __at(x) /* use "__at (0xab)" instead of "__at 0xab" */
41 #define __interrupt(x)
52 #define sfr volatile unsigned char
53 #define sbit volatile bool
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.
64 #if defined(S_SPLINT_S)
66 /* Behaviour of splint can be modified by special comments.
67 Some examples are shown below.
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.
75 Note 2: you need brackets around arguments for special
76 keywords, so f.e. it's "interrupt (1)" instead of "interrupt 1".