|
From: LRN <lr...@gm...> - 2012-02-22 08:00:28
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 22.02.2012 11:39, KHMan wrote:
> On 2/22/2012 1:46 PM, Jared Maddox wrote:
>> I'm getting these errors:
>>
>> $ gcc -S a.c> a.S.c a.c:8:42: error: expected ')' before '*'
>> token a.c:22:15: error: expected '=', ',', ';', 'asm' or
>> '__attribute__' before '*' to ken
>>
>>> From this source code:
>>
>> struct _innertesttree { struct _innertesttree *_links[ 3 ]; int
>> k; signed char _red; };
>>
>> int _innertesttree_isred( _innertesttree **node ) /* For some
>> reason, gcc doesn't like this line. */
>
> Untested, but I suspect it should be "struct _innertesttree" or
> else you need to typedef it.
>
That's right.
Either do:
int _innertesttree_isred(struct _innertesttree **node )
or, beforehand:
typedef struct _intertesttree _intertesttree;
(usually struct and typedefed struct are given different names, but
that is not really necessary, just makes it easier for you to debug
problems sometimes).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJPRKCQAAoJEOs4Jb6SI2CwtkMH+gLEb0rEQHFpW+6LslgWbV5K
9mmHDzb+ygxpgaMZVvrQvBs192eoMuXxoPpoevLf1WnbTrH5RewHmCPrsxAPUryI
exCdklrEq9hFC4jVLZxOhQHb+/sh9VHWwwyS7ppnyJkAV5NcctzuoNNHDFc39c7r
UCYGy9AVNEbO5wVwwoKJywv9erxkoLBE5YbpAnhj+WDD78uV73+shr0EQodQVF6x
XQ7xQval0mQtc6f8p+pPXhHDM7UP+qUV7rwhD5dDKKdO3g8G7U2pyZXF15e/zoLf
kAihMuJoeEaKB0gdIpBTUO71lRAHAFI+LyQiE0QsRZ3+9HgaKvWHjVBbBigPdrE=
=RmdS
-----END PGP SIGNATURE-----
|