Changeset 332 in dev for trunk/abdev/BasicCompiler_Common/Intermediate_Step1.cpp
- Timestamp:
- Sep 27, 2007, 3:37:06 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Intermediate_Step1.cpp
r327 r332 8 8 #include "../BasicCompiler_Common/common.h" 9 9 10 void ChangeReturnCode(char *buffer){ 10 void ChangeReturnCode(char *buffer) 11 { 12 int i; 13 14 bool isMustChange = false; 15 for( i=0; ; i++ ){ 16 if( buffer[i] == '\0' ){ 17 break; 18 } 19 if( buffer[i]=='\n' ) 20 { 21 if( i>0 ) 22 { 23 if( buffer[i-1] == '\r' ) 24 { 25 isMustChange = true; 26 } 27 } 28 } 29 } 30 31 if( !isMustChange ) 32 { 33 // 改行コードの変換は必要ない 34 return; 35 } 11 36 12 37 #ifdef _DEBUG
Note:
See TracChangeset
for help on using the changeset viewer.