[splint-discuss] Parsing error

Ludolf Holzheid lholzheid at bihl-wiedemann.de
Tue Apr 8 09:20:58 PDT 2008


On Tue, 2008-04-08 08:15:40 -0700, Terry Colligan wrote:
> On Tuesday 08 April 2008, Ludolf Holzheid wrote:
> > 
> > So, the "unsigned int U0BRG = 0x3A1;" appears in a header, not in the
> > body of a function (i.e. at 'file scope'). This is no valid C syntax.
> 
>   It certainly *is* valid C syntax.
>   It's the definition of a global data variable (file scope) with
>   an initialization.

Ah, yes, of course, you are right.

I do remember having problems with sfr declarations in system headers
of IAR's MSP430 compiler and I solved it by writing my own version of
the header. I don't exactly remember the problem, though...

Ludolf

-- 

---------------------------------------------------------------
Ludolf Holzheid             Tel:    +49 621 339960
Bihl+Wiedemann GmbH         Fax:    +49 621 3392239
Floßwörthstraße 41          e-mail: lholzheid at bihl-wiedemann.de
D-68199 Mannheim, Germany
---------------------------------------------------------------



More information about the splint-discuss mailing list