Changeset 104

Show
Ignore:
Timestamp:
05/01/07 12:20:32 (2 years ago)
Author:
pmac
Message:

Minor cleanup. (some from kbb)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/cmd4.c

    r100 r104  
    24792479 * - dump(FILE*) needs to emit only the raw data for the dump. 
    24802480 *   Comments are generated automatically 
    2481  * - row is where on the screen to place the prompt 
    24822481 */ 
    24832482static void dump_pref_file(void (*dump)(FILE*), const char *title) 
  • trunk/src/files.c

    r101 r104  
    16071607int get_panel(int oid, data_panel *panel, size_t size) 
    16081608{ 
    1609   int ret = size; 
     1609  size_t ret = size; 
    16101610  switch(oid) 
    16111611 { 
     
    16811681                { "Searching", p_ptr->skill_srh, 6 } 
    16821682        }; 
    1683         int i; 
     1683        size_t i; 
     1684        assert(N_ELEMENTS(skills) == boundaries[4].page_rows); 
    16841685        ret = N_ELEMENTS(skills); 
    16851686        if (ret > size) ret = size; 
     
    44964497        const char *new_color_fmt = (mode == 0) ? 
    44974498                                        "<font color=\"#%02X%02X%02X\">" 
    4498                                         : "[color=\"#%02X%02X%02X\"]"; 
     4499                                        : "[COLOR=\"#%02X%02X%02X\"]"; 
    44994500        const char *change_color_fmt = (mode == 0) ? 
    45004501                                        "</font><font color=\"#%02X%02X%02X\">" 
    4501                                         : "[/color][color=\"#%02X%02X%02X\"]"; 
    4502         const char *close_color_fmt = mode ==  0 ? "</font>" : "[/color]"; 
     4502                                        : "[/COLOR][COLOR=\"#%02X%02X%02X\"]"; 
     4503        const char *close_color_fmt = mode ==  0 ? "</font>" : "[/COLOR]"; 
    45034504 
    45044505        FILE *htm; 
     
    45884589        } 
    45894590 
     4591        /* Close the last font-color tag if necessary */ 
     4592        if (oa != TERM_WHITE) fprintf(htm, close_color_fmt); 
    45904593        if(mode == 0) { 
    4591                 /* Close the last <font> tag if necessary */ 
    4592                 if (oa != TERM_WHITE) fprintf(htm, "</font>"); 
    4593  
    45944594                fprintf(htm, "</tt></pre>\n"); 
    45954595                fprintf(htm, "</body>\n"); 
     
    45984598        else  
    45994599        { 
    4600                 if (oa != TERM_WHITE) fprintf(htm, "[/COLOR]"); 
    46014600                fprintf(htm, "[/COLOR][/BC][/TT][/CODE]\n"); 
    46024601        }