fixed a calculation crash bug. fixed a memory leak with intermediate value.

This commit is contained in:
tony 2014-12-18 08:23:01 +08:00
parent 3242da03d5
commit 090fd0b900
6 changed files with 6015 additions and 5967 deletions

4
HISTORY Normal file → Executable file
View File

@ -1,3 +1,7 @@
Dec. 17 2014
Fixed a calculation crash bug
Fixed a memory leak with intermediate value
Dec. 16 2014 Dec. 16 2014
Fixed a negative calculation bug in a function argument Fixed a negative calculation bug in a function argument

11969
core/my_basic.c Normal file → Executable file

File diff suppressed because it is too large Load Diff

1
core/my_basic.h Normal file → Executable file
View File

@ -161,6 +161,7 @@ typedef enum mb_error_e {
SE_RN_JUMP_LABEL_EXPECTED, SE_RN_JUMP_LABEL_EXPECTED,
SE_RN_VARIABLE_EXPECTED, SE_RN_VARIABLE_EXPECTED,
SE_RN_INVALID_ID_USAGE, SE_RN_INVALID_ID_USAGE,
SE_RN_OPERATOR_EXPECTED,
SE_RN_CALCULATION_ERROR, SE_RN_CALCULATION_ERROR,
SE_RN_DIVIDE_BY_ZERO, SE_RN_DIVIDE_BY_ZERO,
SE_RN_MOD_BY_ZERO, SE_RN_MOD_BY_ZERO,

BIN
output/my_basic.exe Normal file → Executable file

Binary file not shown.

8
resource/my_basic.rc Normal file → Executable file
View File

@ -62,8 +62,8 @@ IDI_ICON_MAIN ICON "icon.ico"
// //
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,44 FILEVERSION 1,0,0,45
PRODUCTVERSION 1,0,0,44 PRODUCTVERSION 1,0,0,45
FILEFLAGSMASK 0x17L FILEFLAGSMASK 0x17L
#ifdef _DEBUG #ifdef _DEBUG
FILEFLAGS 0x1L FILEFLAGS 0x1L
@ -81,13 +81,13 @@ BEGIN
VALUE "Comments", "MY-BASIC" VALUE "Comments", "MY-BASIC"
VALUE "CompanyName", "W. Renxin" VALUE "CompanyName", "W. Renxin"
VALUE "FileDescription", "MY-BASIC interpreter" VALUE "FileDescription", "MY-BASIC interpreter"
VALUE "FileVersion", "1, 0, 0, 44" VALUE "FileVersion", "1, 0, 0, 45"
VALUE "InternalName", "my_basic" VALUE "InternalName", "my_basic"
VALUE "LegalCopyright", "Copyright (C) 2011 - 2014 W. Renxin" VALUE "LegalCopyright", "Copyright (C) 2011 - 2014 W. Renxin"
VALUE "LegalTrademarks", "MY-BASIC" VALUE "LegalTrademarks", "MY-BASIC"
VALUE "OriginalFilename", "my_basic.exe" VALUE "OriginalFilename", "my_basic.exe"
VALUE "ProductName", "MY-BASIC" VALUE "ProductName", "MY-BASIC"
VALUE "ProductVersion", "1, 0, 0, 44" VALUE "ProductVersion", "1, 0, 0, 45"
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"

0
shell/main.c Normal file → Executable file
View File