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