Ignore:
Timestamp:
Mar 18, 2008, 12:05:08 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Cleaned up cache.cpp.
  • Renamed stupid "cash" variable into "cache".
  • Rename cache_list and crc_manager into CacheList? and CrcManager?.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/seq.cpp

    r66 r123  
    1919  for (int i=0;i<total;i++)
    2020  {
    21     if (cash.loaded(seq[i]))
    22       t+=cash.fig(seq[i])->size();   
     21    if (cache.loaded(seq[i]))
     22      t+=cache.fig(seq[i])->size();   
    2323  }
    2424  return t;
     
    3030  for (i=0;i<total;i++)
    3131  {
    32     cash.note_need(seq[i]);
     32    cache.note_need(seq[i]);
    3333  }
    3434  return 1;
     
    4444  seq=(int *) jmalloc(sizeof(int)*total,"sequence ptr array");
    4545  if (item_type(pict_list)==L_STRING)
    46     seq[0]=cash.reg_object(filename,pict_list,SPEC_CHARACTER2,1);
     46    seq[0]=cache.reg_object(filename,pict_list,SPEC_CHARACTER2,1);
    4747  else
    4848  {
     
    5050    for (i=0;i<total;i++)
    5151    {
    52       seq[i]=cash.reg_object(filename,lcar(pict_list),SPEC_CHARACTER2,1);
     52      seq[i]=cache.reg_object(filename,lcar(pict_list),SPEC_CHARACTER2,1);
    5353      pict_list=lcdr(pict_list);
    5454    }
     
    106106      {
    107107        sprintf(imname,"%s%04d.pcx",t,j);
    108         seq[i++]=cash.reg(filename,imname,SPEC_CHARACTER,1);
     108        seq[i++]=cache.reg(filename,imname,SPEC_CHARACTER,1);
    109109      }           
    110110      get_token(s,t);      // right paren
    111111    }
    112112    else
    113       seq[i++]=cash.reg(filename,t,SPEC_CHARACTER,1);
     113      seq[i++]=cache.reg(filename,t,SPEC_CHARACTER,1);
    114114  }
    115115}*/
Note: See TracChangeset for help on using the changeset viewer.