Ignore:
Timestamp:
Mar 2, 2008, 12:29:06 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • Fix almost 2,000 warnings by using proper "const" keywords where needed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/include/cache.hpp

    r17 r39  
    3737  uint32_t crc;
    3838  char *filename;
    39   crced_file(char *name);
     39  crced_file(char const *name);
    4040  ~crced_file();
    4141} ;
     
    4747  public :
    4848  crc_manager();
    49   int get_filenumber(char *filename);
     49  int get_filenumber(char const *filename);
    5050  uint32_t get_crc(int32_t filenumber, int &failed);
    5151  void set_crc(int32_t filenumber, uint32_t crc);
     
    5353  void clean_up();
    5454  int total_filenames() { return total_files; }
    55   int write_crc_file(char *filename);
    56   int load_crc_file(char *filename);
     55  int write_crc_file(char const *filename);
     56  int load_crc_file(char const *filename);
    5757} ;
    5858
     
    8787  int in_use() { if (used) { used=0; return 1; } else return 0; }
    8888  int full() { if (ful) { ful=0; return 1; } else return 0; }
    89   int32_t reg_object(char *filename, void *object, int type, int rm_dups);      // lisp object
    90   int32_t reg(char *filename, char *name, int type=-1, int rm_dups=0);          // returns id to item
     89  int32_t reg_object(char const *filename, void *object, int type, int rm_dups);      // lisp object
     90  int32_t reg(char const *filename, char const *name, int type=-1, int rm_dups=0);          // returns id to item
    9191  int32_t reg_lisp_block(Cell *block);
    9292  int loaded(int id);
Note: See TracChangeset for help on using the changeset viewer.