Changeset 591 in dev for trunk/ab5.0/abdev/compiler_x86
- Timestamp:
- May 10, 2008, 6:11:29 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev/compiler_x86
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/compiler_x86/Compile_Var.cpp
r587 r591 876 876 char *temp; 877 877 temp=(char *)i64data; 878 i2=compiler.GetObjectModule().dataTable.AddString(temp,lstrlen(temp)); 878 if( compiler.IsUnicode() ) 879 { 880 i2 = compiler.GetObjectModule().dataTable.AddWString( Jenga::Common::ToWString( temp ) ); 881 } 882 else 883 { 884 i2 = compiler.GetObjectModule().dataTable.AddString( temp ); 885 } 879 886 HeapDefaultFree(temp); 880 887 … … 1065 1072 char *temp; 1066 1073 temp=(char *)i64data; 1067 i2=compiler.GetObjectModule().dataTable.AddString(temp,lstrlen(temp)); 1074 if( compiler.IsUnicode() ) 1075 { 1076 i2 = compiler.GetObjectModule().dataTable.AddWString( Jenga::Common::ToWString( temp ) ); 1077 } 1078 else 1079 { 1080 i2 = compiler.GetObjectModule().dataTable.AddString( temp ); 1081 } 1068 1082 HeapDefaultFree(temp); 1069 1083 -
trunk/ab5.0/abdev/compiler_x86/NumOpe.cpp
r589 r591 957 957 bLiteralCalculation=0; 958 958 959 i2=compiler.GetObjectModule().dataTable.AddString(term,i3); 959 if( compiler.IsUnicode() ) 960 { 961 i2 = compiler.GetObjectModule().dataTable.AddWString( Jenga::Common::ToWString( std::string( term, i3 ) ) ); 962 } 963 else 964 { 965 i2 = compiler.GetObjectModule().dataTable.AddString( std::string( term, i3 ) ); 966 } 960 967 961 968 //push DataSize
Note:
See TracChangeset
for help on using the changeset viewer.