Changeset 260 in dev for trunk/abdev/BasicCompiler_Common/Compile.cpp
- Timestamp:
- Aug 3, 2007, 11:28:19 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Compile.cpp
r253 r260 21 21 22 22 //ラベルアドレス 23 LABEL *pLabelNames; 24 int MaxLabelNum; 23 Labels labels; 25 24 26 25 //グローバル変数初期バッファ … … 122 121 if(Command[0]=='*'&&IsVariableTopChar(Command[1])){ 123 122 //Goto先ラベル 124 pLabelNames=(LABEL *)HeapReAlloc(hHeap,0,pLabelNames,(MaxLabelNum+1)*sizeof(LABEL));125 pLabelNames[MaxLabelNum].pName=(char *)HeapAlloc(hHeap,0,lstrlen(Command+1)+1);126 lstrcpy(pLabelNames[MaxLabelNum].pName,Command+1);127 123 extern int obp; 128 pLabelNames[MaxLabelNum].address=obp; 129 MaxLabelNum++; 124 labels.push_back( Label( Command + 1, obp ) ); 130 125 131 126 //書き込みスケジュール … … 538 533 539 534 //Goto先ラベル 540 pLabelNames=(LABEL *)HeapReAlloc(hHeap,0,pLabelNames,(MaxLabelNum+1)*sizeof(LABEL));541 pLabelNames[MaxLabelNum].pName=0;542 pLabelNames[MaxLabelNum].line=i3;543 535 extern int obp; 544 pLabelNames[MaxLabelNum].address=obp; 545 MaxLabelNum++; 536 labels.push_back( Label( (long)i3, obp ) ); 546 537 547 538 //書き込みスケジュール
Note:
See TracChangeset
for help on using the changeset viewer.