Changeset 384

Show
Ignore:
Timestamp:
07/27/07 17:20:15 (1 year ago)
Author:
takkaria
Message:

Fix #297:

  • Install all files with autoconf
  • Always cast to (unsigned char) for the islower(), isdigit(), etc functions
  • Chown the angband executable when appropriate.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/angband-3.0.8/lib/help/Makefile

    r74 r384  
    1111        option.txt:${DATA_PATH}/help  \ 
    1212        playing.txt:${DATA_PATH}/help \ 
    13         version.txt:${DATA_PATH}/help 
     13        version.txt:${DATA_PATH}/help \ 
     14        help.hlp:${DATA_PATH}/help    \ 
     15        308.txt:${DATA_PATH}/help 
    1416 
     17 
  • branches/angband-3.0.8/src/Makefile

    r281 r384  
    1717 
    1818angband: $(OBJECTS) 
    19         $(CC) $(LDFLAGS) $(OBJECTS) $(LDADD) -o $@  
     19        $(CC) $(OBJECTS) $(LDFLAGS) $(LDADD) -o $@  
    2020        @printf "%10s     %-20s\n" LINK $@ 
     21 
     22install-posthook: 
     23        @if [ "x$(SETEGID)" != "x" ]; then \ 
     24                printf "%10s     $(DESTDIR)$(BINDIR)/angband\n" CHOWN; \ 
     25                if [ "x$(DRY)" = "x" ]; then \ 
     26                        chown root:${SETEGID} $(DESTDIR)$(BINDIR)/angband; \ 
     27                fi; \ 
     28        fi 
  • branches/angband-3.0.8/src/cmd4.c

    r383 r384  
    239239                default: 
    240240                { 
    241                         if (isdigit(f_ptr->d_char)) return 7; 
     241                        if (isdigit((unsigned char) f_ptr->d_char)) return 7; 
    242242                        return 8; 
    243243                } 
     
    23702370                else if (cx.type == EVT_MOVE) 
    23712371                        cursor_pos = cx.index; 
    2372                 else if (cx.type == EVT_SELECT && strchr("YN", toupper(cx.key))) 
     2372                else if (cx.type == EVT_SELECT && strchr("YN", toupper((unsigned char) cx.key))) 
    23732373                        cursor_pos++; 
    23742374 
  • branches/angband-3.0.8/src/util.c

    r357 r384  
    25602560                { 
    25612561                        /* Ensure the character is printable */ 
    2562                         ch = (isprint(s[n]) ? s[n] : ' '); 
     2562                        ch = (isprint((unsigned char) s[n]) ? s[n] : ' '); 
    25632563 
    25642564                        /* Write out the character */ 
     
    30383038                if (ch == ESCAPE) break; 
    30393039                if (strchr("YyNn", ch)) break; 
    3040                 if (ch == toupper(other)) break; 
    3041                 if (ch == tolower(other)) break; 
     3040                if (ch == toupper((unsigned char) other)) break; 
     3041                if (ch == tolower((unsigned char) other)) break; 
    30423042                bell("Illegal response to question!"); 
    30433043        } 
     
    30523052 
    30533053        /* Third option */ 
    3054         else if ((ch == toupper(other)) || (ch == tolower(other))) 
     3054        else if ((ch == toupper((unsigned char) other)) || (ch == tolower((unsigned char) other))) 
    30553055                result = 2; 
    30563056 
  • branches/angband-3.0.8/src/z-util.c

    r155 r384  
    4444                } 
    4545 
    46                 ch1 = toupper(*s1); 
    47                 ch2 = toupper(*s2); 
     46                ch1 = toupper((unsigned char) *s1); 
     47                ch2 = toupper((unsigned char) *s2); 
    4848 
    4949                /* If the characters don't match */