Re: [cc65] preprocessor hazzle...

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-07-29 08:20:01


Hi!

On Fri, Jul 26, 2002 at 11:56:51PM +0200, groepaz wrote:
> coolio :o) btw, i guess i can safely assume that the snapshots you
> generate each nite (i guess? looks like it atleast ;=P) always have
> all those patches applied?

Unfortunately not .There are situations where the development sources are in a
state that does not allow to apply the patch, or sometimes I choose a
different solution for the development sources.

> however.... in the "small" source i stumbled about another possible
> problem.....
[...]

Works here. The only thing that does not work is something like this:

        int bar;

        void foo (void)
        {
            extern int bar;
        }
                          
So as long as you don't have both, a declaration and an extern definition in
your sources, they should be ok.

> and then "bla" is somewhere reused in an expression where the size of
> "bla" must be known..... resulting in an "size of "bla" unknown"
> error. i am not sure here, but afaik "bla[]" equals "*bla" in an
> expression and thus its size (the size of the pointer) _is_ known and
> such an error shouldnt occur. (ok i could come up with a testprog
> aswell here but maybe you know where to look already :o))

If the size of bla[] is the size of a pointer, what would you expect from
sizeof(bla[3])? I don't know about the code you're testing, but gcc does not
accept this construct either:

        t.c:6: sizeof applied to an incomplete type

> btw! i tried compiling with an oldish mingw32 install aswell (cygwin
> compiled binaries are kinda sloooooooow ;=P) and noticed that
> somewhere the code relies on fork() and friends and maybe some other
> things used to spawn a sub-process in *nix.... is there a way to
> compile the source for a target that has simple "spawn..." functions
> but no fork() already?

The Windows version uses spawn() from it's own library. The unix version has
an additional module that implements spawn().

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-07-29 08:21:22 CEST