Changeset 68 in dev for BasicCompiler_Common/preprocessor.cpp
- Timestamp:
- Mar 12, 2007, 4:04:55 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/preprocessor.cpp
r67 r68 84 84 } 85 85 86 // TODO: 削除 87 add( "__STRING_IS_NOT_ALWAYS_UNICODE" ); 88 86 89 char temporary[255]; 87 90 sprintf(temporary,"_AB_VER%d",MAJOR_VER); … … 166 169 } 167 170 168 void preprocessor_ifdef(char *buffer, BOOL bndef){171 void preprocessor_ifdef(char *buffer,bool isNot){ 169 172 int i,i2,i3; 170 173 char temporary[VN_SIZE]; 171 174 172 if( bndef) i=lstrlen("#ifndef");175 if(isNot) i=lstrlen("#ifndef"); 173 176 else i=lstrlen("#ifdef"); 174 177 while(buffer[i]==' '||buffer[i]=='\t') i++; … … 185 188 if(pobj_define->check(temporary)) sw=1; 186 189 187 if( bndef){190 if(isNot){ 188 191 //#ifndefのとき(反対にする) 189 192 if(sw) sw=0; … … 357 360 } 358 361 else if(_memicmp(buffer+i,"#ifdef",6)==0){ 359 preprocessor_ifdef(buffer+i, 0);362 preprocessor_ifdef(buffer+i,false); 360 363 continue; 361 364 } 362 365 else if(_memicmp(buffer+i,"#ifndef",7)==0){ 363 preprocessor_ifdef(buffer+i, 1);366 preprocessor_ifdef(buffer+i,true); 364 367 continue; 365 368 }
Note:
See TracChangeset
for help on using the changeset viewer.