IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Grumble again
Need help C guri...

The following code

[link|http://www.instmath.rwth-aachen.de/~heine/ftape/archives/ftape-4.x/tar/ftape-4.04a.tar.bz2|http://www.instmath....ape-4.04a.tar.bz2]

..will not properly compile under gcc 3.x - the problem is with token-pasting (## magic) in the preprocessor but I'll be damned if I can figure out where.

I HATE MACROS.
-drl
New Code seems to be outdated
gcc 2.95.x would silently remove the ## in case where it was inappropriate. fcc 3.x complains instead. Anyway, as ftape is a kernel module, it may be safer to compile this with 2.95 as the kernel itself is still not happy with 3.x either.

As it is, I get another compilation error tucked in between the "invalid token" messages (and this one does not go away by using gcc 2.95):


In file included from ftape-tracing.h:35,
from ftape_syms.c:33:
../lowlevel/ftape-init.h: In function `ft_sigtest':
../lowlevel/ftape-init.h:70: error: structure has no member named `signal'


There are a few references on Google which advise to use the latest unstable tarball at [link|http://www.instmath.rwth-aachen.de/~heine/ftape/archives/ftape-4.x/unstable/|http://www.instmath....ape-4.x/unstable/] but even that seems not to compile under 2.4.18
New Re: Code seems to be outdated
*WHY* is the preprocessor suddenly behaving differently??

Probably the latest behavior is correct - but why?? The token parsing must have changed.
-drl
New ISO C99 violation
I guess this is more the result of past cavalier attitude towards the ANSI C standard on the part of the FSF than anything else. v3 seems to stick closer to the standard with miscellaneous breakage as a result.
     Grumble again - (deSitter) - (3)
         Code seems to be outdated - (scoenye) - (2)
             Re: Code seems to be outdated - (deSitter) - (1)
                 ISO C99 violation - (scoenye)

Things that make you go, "Hmmmm..."
32 ms