Re: error: expected '=', ',', ';', 'asm' or '__attrib
- From: Robert Adsett <subcriptions@xxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 31 Dec 2006 00:21:24 -0500
In article <4597388e$0$18638$88260bb3@xxxxxxxxxxxxxxxxx>, Sergey
Kubushin says...
Robert Adsett <subscriptions@xxxxxxxxxxxxxxxxxxxxx> wrote:<snip>
In article <MPG.2000d13782aaec369896b1@xxxxxxxxxxxxxxxxx>, Robert Adsett
says...
[dd]
<snip>
/* Structure to declare our file access functions. */
struct file_operations qadc_fops =
{
open: qadc_open,
read: qadc_read,
write: qadc_write,
release: qadc_release
};
Well, the above isn't valid C so I'd start there.
It was some time back but now it's changed.
As of? AFAIR it isn't part of C89/90 and the more recent changes are
not generally available. It's certainly the line the compiler is
complaining about.
This was _GCC_ extension though you probably won't find it in C/C++
standards. Nowadays this style is considered obsolete and newer GCC uses C99
notation.
So not valid C, just an obsolete GCC extension.
Robert
--
Posted via a free Usenet account from http://www.teranews.com
.
- References:
- error: expected '=', ',', ';', 'asm' or '__attrib
- From: techie.embedded@xxxxxxxxx
- Re: error: expected '=', ',', ';', 'asm' or '__attrib
- From: Robert Adsett
- Re: error: expected '=', ',', ';', 'asm' or '__attrib
- From: Sergey Kubushin
- Re: error: expected '=', ',', ';', 'asm' or '__attrib
- From: Robert Adsett
- Re: error: expected '=', ',', ';', 'asm' or '__attrib
- From: Robert Adsett
- Re: error: expected '=', ',', ';', 'asm' or '__attrib
- From: Sergey Kubushin
- error: expected '=', ',', ';', 'asm' or '__attrib
- Prev by Date: Re: Choice of frequency and protocol on RF links?
- Next by Date: Re: LCD display Busy Flag
- Previous by thread: Re: error: expected '=', ',', ';', 'asm' or '__attrib
- Next by thread: Re: error: expected '=', ',', ';', 'asm' or '__attrib
- Index(es):