Changeset 88 in dev for BasicCompiler_Common/Enum.cpp
- Timestamp:
- Apr 2, 2007, 12:10:02 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Enum.cpp
r75 r88 15 15 16 16 17 CEnumParent::CEnumParent(c har *buffer,int nowLine){17 CEnumParent::CEnumParent(const char *buffer,int nowLine){ 18 18 ppobj_EnumMember=(CEnumMember **)HeapAlloc(hHeap,0,1); 19 19 iEnumMemberNum=0; … … 108 108 iEnumParentNum=0; 109 109 110 extern char *basbuf; 110 const char *source = Smoothie::Lexical::source.GetBuffer(); 111 111 112 int i; 112 113 for(i=0;;i++){ 113 if( basbuf[i]=='\0') break;114 115 if( basbuf[i]==1&&basbuf[i+1]==ESC_ENUM){114 if(source[i]=='\0') break; 115 116 if(source[i]==1&&source[i+1]==ESC_ENUM){ 116 117 if(i>=2){ 117 if( basbuf[i-2]==1&&basbuf[i-1]==ESC_CONST) continue;118 if(source[i-2]==1&&source[i-1]==ESC_CONST) continue; 118 119 } 119 120 ppobj_EnumParent=(CEnumParent **)HeapReAlloc(hHeap,0,ppobj_EnumParent,(iEnumParentNum+1)*sizeof(CEnumParent *)); 120 ppobj_EnumParent[iEnumParentNum]=new CEnumParent( basbuf+i,i);121 ppobj_EnumParent[iEnumParentNum]=new CEnumParent(source+i,i); 121 122 iEnumParentNum++; 122 123 }
Note:
See TracChangeset
for help on using the changeset viewer.