On Wed, May 15, 2002 at 06:02:52AM -0700, Joe Siebenmann wrote:
> The following code, which prevents operations to occur
> on empty lists, didn't work with the new
> Cygwin/PRC-Tools.  I un-installed it and re-installed
> the "older" version of PRC-Tools and everything was
> fine.

<grump mode on>

Which "new Cygwin/PRC-Tools"?  Which "older" one?  These terms are
meaningless.  We don't know what you happen to have installed on your
machine.  You need to tell us the version numbers.

> I haven't tried to compare the assembly
> differences yet though..  Plus, this is a pretty huge
> multiple code-section app..

Well, you do need to compare the two.  Or, as always, I am happy for you
to send them to me and I will look at them.  But unfortunately I'm still
not clairvoyant and you really do have to give me enough information to
go on.  And this posting gives almost *no* information.

> LstSelection =
> LstGetSelection(GetObjectPtr(AddrHostLst));
> 
> lstP = GetObjectPtr(AddrHostLst);
> if ( LstSelection != noListSelection &&               
>  (LstGetNumberOfItems(lstP) != 0) )
> {
>      ;
> }
> else
> {
>       ;
> }
> 
> (sorry for it being all jammed-together)

I'm not sure why you're posting this snippet.  It doesn't compile.
If I try to guess what you mean and add enough declarations so that
it compiles, it works just fine.  So it's very hard to tell what the
problem, if any, might be just from your posting.

> Cygwin/PRC-Tools is great, but it still needs some
> help if you want people to be able to install/use it.

Who is this "you" you refer to?  If it's me, then well, me, what I want
for prc-tools is for it to serve adequately as a compiler for my Palm OS
applications, and it does that admirably.  Anything else, including being
useful to other people, is just a bonus.

If *you* want to give it some of the help you think it needs, what you
need to do in a posting like this is provide a vaguely meaningful bug
report.  Please read

        http://www.tuxedo.org/~esr/faqs/smart-questions.html

</grump mode>

This snippet of your code doesn't appear to do anything very complicated
or use the areas of prc-tools where there be dragons.  Yet you seem to
think that the problem lies within it.  Given that, the only vaguely
useful piece of advice I can give is to suggest that you may have
written something that is not C:  you may have invoked undefined
behaviour, and the optimizer has obligingly provided you with same.
Does the problem persist if you compile without optimization?

    John

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to