Changeset 39 for abuse/trunk/src/include/cache.hpp
- Timestamp:
- Mar 2, 2008, 12:29:06 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/include/cache.hpp
r17 r39 37 37 uint32_t crc; 38 38 char *filename; 39 crced_file(char *name);39 crced_file(char const *name); 40 40 ~crced_file(); 41 41 } ; … … 47 47 public : 48 48 crc_manager(); 49 int get_filenumber(char *filename);49 int get_filenumber(char const *filename); 50 50 uint32_t get_crc(int32_t filenumber, int &failed); 51 51 void set_crc(int32_t filenumber, uint32_t crc); … … 53 53 void clean_up(); 54 54 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); 57 57 } ; 58 58 … … 87 87 int in_use() { if (used) { used=0; return 1; } else return 0; } 88 88 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 object90 int32_t reg(char *filename, char*name, int type=-1, int rm_dups=0); // returns id to item89 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 91 91 int32_t reg_lisp_block(Cell *block); 92 92 int loaded(int id);
Note: See TracChangeset
for help on using the changeset viewer.