Changeset 461 in dev for trunk/ab5.0/abdev/BasicCompiler32/Compile_Calc.cpp
- Timestamp:
- Mar 23, 2008, 11:35:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler32/Compile_Calc.cpp
r436 r461 1 1 #include "stdafx.h" 2 3 #include <jenga/include/smoothie/Smoothie.h>4 2 5 3 #include <Compiler.h> … … 82 80 //符号あり 83 81 84 if(OldType==DEF_INTEGER || ( Smoothie::IsUnicode()&&OldType==DEF_CHAR)){82 if(OldType==DEF_INTEGER || (compiler.IsUnicode()&&OldType==DEF_CHAR)){ 85 83 //pop eax 86 84 compiler.codeGenerator.op_pop(REG_EAX); … … 92 90 compiler.codeGenerator.op_push(REG_EAX); 93 91 } 94 else if(OldType==DEF_SBYTE || ( Smoothie::IsUnicode()==false&&OldType==DEF_CHAR)){92 else if(OldType==DEF_SBYTE || (compiler.IsUnicode()==false&&OldType==DEF_CHAR)){ 95 93 //pop eax 96 94 compiler.codeGenerator.op_pop(REG_EAX); … … 166 164 //符号あり 167 165 168 if(OldType==DEF_INTEGER || ( Smoothie::IsUnicode()&&OldType==DEF_CHAR)){166 if(OldType==DEF_INTEGER || (compiler.IsUnicode()&&OldType==DEF_CHAR)){ 169 167 //pop eax 170 168 compiler.codeGenerator.op_pop(REG_EAX); … … 176 174 compiler.codeGenerator.op_push(REG_EAX); 177 175 } 178 else if(OldType==DEF_SBYTE || ( Smoothie::IsUnicode()==false&&OldType==DEF_CHAR)){176 else if(OldType==DEF_SBYTE || (compiler.IsUnicode()==false&&OldType==DEF_CHAR)){ 179 177 //pop eax 180 178 compiler.codeGenerator.op_pop(REG_EAX); … … 294 292 if(OldType==DEF_BOOLEAN|| 295 293 OldType==DEF_BYTE|| 296 OldType==DEF_WORD||OldType==DEF_INTEGER || ( Smoothie::IsUnicode()&&OldType==DEF_CHAR)) return;297 else if(OldType==DEF_SBYTE || ( Smoothie::IsUnicode()==false&&OldType==DEF_CHAR)){294 OldType==DEF_WORD||OldType==DEF_INTEGER || (compiler.IsUnicode()&&OldType==DEF_CHAR)) return; 295 else if(OldType==DEF_SBYTE || (compiler.IsUnicode()==false&&OldType==DEF_CHAR)){ 298 296 //pop eax 299 297 compiler.codeGenerator.op_pop(REG_EAX); … … 320 318 void ChangeTypeToByte(int OldType){ 321 319 //現在のスタックの内容をbyte型に変換する 322 if(OldType==DEF_BYTE||OldType==DEF_SBYTE || ( Smoothie::IsUnicode()==false&&OldType==DEF_CHAR)) return;320 if(OldType==DEF_BYTE||OldType==DEF_SBYTE || (compiler.IsUnicode()==false&&OldType==DEF_CHAR)) return; 323 321 324 322 ChangeTypeToLong(OldType);
Note:
See TracChangeset
for help on using the changeset viewer.