Re: [cc65] Escape keys

Date view Thread view Subject view

From: MagerValp (MagerValp_at_cling.gu.se)
Date: 2002-12-12 21:12:35


>>>>> "ST" == Spiro Trikaliotis <trik-news_at_gmx.de> writes:

MV> Stupid C question: is char unsigned by default?

ST> don't know about C99, but "before":
ST> char is not necessarily signed or unsigned.

OK. What about cc65 then? The following:


/* Let user select a file */  
char SelectFile(FileSelector *fs);

void LoadInst(void) {
  FileSelector *fs;
  unsigned char *buffer;

  if ((fs = NewFileSel()) == NULL) {
    return;
  }
  SetFileSelTitle(fs, "Load instructions");
  fs->mask = FS_MASK_SEQ | FS_HIDE_MASKED;

  if (SelectFile(fs) < 0) {
    DestroyFileSel(fs);
    return;    
  }
  /* snip */
}


gives instructions.c(44): Warning: Condition is never true, so I guess
that means they're unsigned?

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp_at_cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
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-12-12 21:13:26 CET