comparison system/file.h @ 47:5f548e5957a8

* get rid of the "deprecated conversion from string constant to ‘char*’" warnings
author thib
date Wed, 15 Apr 2009 20:26:32 +0000
parents 2c574c3d50a9
children 15a18fbe6f21
comparison
equal deleted inserted replaced
46:3aa3d244ad90 47:5f548e5957a8
141 DIRFILE* root_dir; 141 DIRFILE* root_dir;
142 DIRFILE* dat_dir; 142 DIRFILE* dat_dir;
143 ARCFILE* searcher[TYPEMAX]; 143 ARCFILE* searcher[TYPEMAX];
144 /* ¥Õ¥¡¥¤¥ë¤Î¸ºß°ÌÃ֤Πinformation */ 144 /* ¥Õ¥¡¥¤¥ë¤Î¸ºß°ÌÃ֤Πinformation */
145 ARCTYPE is_archived[TYPEMAX]; 145 ARCTYPE is_archived[TYPEMAX];
146 char* filenames[TYPEMAX]; 146 const char* filenames[TYPEMAX];
147 /* ¥Ç¥Õ¥©¥ë¥È¤Î information */ 147 /* ¥Ç¥Õ¥©¥ë¥È¤Î information */
148 static ARCTYPE default_is_archived[TYPEMAX]; 148 static ARCTYPE default_is_archived[TYPEMAX];
149 static char* default_dirnames[TYPEMAX]; 149 static const char* default_dirnames[TYPEMAX];
150 public: 150 public:
151 FILESEARCH(void); 151 FILESEARCH(void);
152 ~FILESEARCH(); 152 ~FILESEARCH();
153 /* ½é¤á¤Ë¥²¡¼¥à¤Î¥Ç¡¼¥¿¤¬¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê¤òÀßÄꤹ¤ëɬÍפ¬¤¢¤ë */ 153 /* ½é¤á¤Ë¥²¡¼¥à¤Î¥Ç¡¼¥¿¤¬¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê¤òÀßÄꤹ¤ëɬÍפ¬¤¢¤ë */
154 int InitRoot(char* root); 154 int InitRoot(char* root);
156 void SetFileInformation(FILETYPE type, ARCTYPE is_arc, 156 void SetFileInformation(FILETYPE type, ARCTYPE is_arc,
157 char* filename); 157 char* filename);
158 /* Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤ò°ì¤Ä¤Î·¿¤Ë´ØÏ¢¤Å¤±¤ë */ 158 /* Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤ò°ì¤Ä¤Î·¿¤Ë´ØÏ¢¤Å¤±¤ë */
159 void AppendFileInformation(FILETYPE type, ARCTYPE is_arc, 159 void AppendFileInformation(FILETYPE type, ARCTYPE is_arc,
160 char* filename); 160 char* filename);
161 ARCFILE* MakeARCFILE(ARCTYPE tp, char* filename); 161 ARCFILE* MakeARCFILE(ARCTYPE tp, const char* filename);
162 /* fname ¤Ç»ØÄꤵ¤ì¤¿Ì¾Á°¤Î¥Õ¥¡¥¤¥ë¤ò¸¡º÷ */ 162 /* fname ¤Ç»ØÄꤵ¤ì¤¿Ì¾Á°¤Î¥Õ¥¡¥¤¥ë¤ò¸¡º÷ */
163 class ARCINFO* Find(FILETYPE type, const char* fname, const char* ext=0); 163 class ARCINFO* Find(FILETYPE type, const char* fname, const char* ext=0);
164 /* ¤¢¤ë¼ïÎà¤Î¥Õ¥¡¥¤¥ë¤ò¤¹¤Ù¤Æ¥ê¥¹¥È¥¢¥Ã¥× 164 /* ¤¢¤ë¼ïÎà¤Î¥Õ¥¡¥¤¥ë¤ò¤¹¤Ù¤Æ¥ê¥¹¥È¥¢¥Ã¥×
165 ** ËöÈø¤Ï NULL pointer 165 ** ËöÈø¤Ï NULL pointer
166 */ 166 */