659 Commits

Author SHA1 Message Date
Wang Renxin
5bd179b199 *refactored _set_real_with_hex to avoid c4310 (vc). 2019-10-17 11:27:58 +08:00
Ben Combee
38bf98e25e Silence GCC -Woverflow warnings in _set_real_with_hex
GCC with -Woverflow will warn in _set_real_with_hex because of integer
overflow in assigning the temp value from a constant expression.
The code causing the warning isn't run, but since it's compiled in,
using the casts will tell the compiler that we know what we're doing.
2019-10-16 19:42:26 -05:00
Wang Renxin
8c6927ca5c #28 *typo. 2019-03-28 23:38:29 +08:00
Wang Renxin
d89d018823 *fixed a memory leak when reassigning an array element with string. 2019-03-16 15:26:11 +08:00
Wang Renxin
3630e237f5 *fixed some crash and hanging with invalid expression and routine. 2019-02-03 00:19:38 +08:00
Wang Renxin
67353d1da8 *fixed a wrong scope processing bug when resetting interpreter. 2018-12-31 16:13:06 +08:00
Wang Renxin
c41de6cd70 *fixed a mod by zero bug with real number. 2018-11-10 23:14:40 +08:00
Wang Renxin
c394f5ac19 *fixed a memory leak with wrong iterator usage. 2018-11-05 12:09:05 +08:00
Wang Renxin
3eff55c2aa *fixed a crash bug when using an iterator in a conditional expression. 2018-11-05 11:42:53 +08:00
Wang Renxin
5086a53415 *fixed a crash bug with incomplete structures. 2018-07-30 15:06:27 +08:00
Wang Renxin
de22cd2717 *breaks on end. 2018-07-25 15:52:09 +08:00
Wang Renxin
f06f611c50 *fix compile error. 2018-07-25 15:22:28 +08:00
Wang Renxin
1d25d54f54 *fixed a real number formatting bug with different locales. 2018-07-25 15:15:37 +08:00
Wang Renxin
f1fba035ac *fixed a multiple disposing bug with upvalues. 2018-07-14 19:04:49 +08:00
Wang Renxin
52ae9c8cac -removed some unnecessary context checking. 2018-07-04 15:58:09 +08:00
Wang Renxin
a5b3447918 *reordered a few functions. 2018-06-29 16:14:24 +08:00
Wang Renxin
74971e5df7 +added platform dependent macros for emscripten. 2018-05-13 10:07:04 +08:00
Wang Renxin
fb6d76fe9a *fixed a wrong error with the VAL statement. 2018-05-09 15:30:07 +08:00
Wang Renxin
e164d3c428 *fixed a crash bug in invalid conditional expression with class member, thanks to AaBc for pointing it out. 2018-05-09 13:20:54 +08:00
Wang Renxin
fd9e34b9d1 -avoided a warning when a c++ compiler refers char to unsigned. 2018-04-20 13:04:30 +08:00
Wang Renxin
f74dc06e6c -removed register storage class specifiers. 2018-04-18 20:37:18 +08:00
Wang Renxin
d57266910f +added a redir parameter to mb_get_var. 2018-03-27 16:01:30 +08:00
Wang Renxin
48403dc1a0 *fixed a string assignment issue with class member. 2018-03-11 12:32:58 +08:00
Wang Renxin
35944a5565 *fixed a stepping bug in the if statement. 2018-03-10 14:06:34 +08:00
Wang Renxin
ae4053c687 *fixed a gc bug with ranged for loop. 2018-03-09 18:31:31 +08:00
Wang Renxin
7b6fda8011 *fixed some compile issues with cpp compiler. 2018-02-12 14:56:29 +08:00
Wang Renxin
49b1e1bf55 -compile warnings. 2018-02-08 15:39:53 +08:00
Wang Renxin
a6814213b3 *fixed a crash bug with invalid collection index. 2018-01-15 22:39:05 +08:00
Wang Renxin
842e01bf41 *fixed some issues when invoking a sub routine. 2018-01-15 19:22:45 +08:00
Wang Renxin
b6a4a3e314 *minor improvement for macros. 2018-01-06 14:29:32 +08:00
Wang Renxin
4edc80d026 *fixed a parsing bug with unary negative operator. 2018-01-03 20:57:15 +08:00
Wang Renxin
a08c6c845c *happy new year. hope i can make a release of v1.2 in 2018. 2017-12-30 12:31:07 +08:00
Wang Renxin
a34a3dffe7 *refactored parameters of calculation handlers. 2017-12-28 15:45:38 +08:00
Wang Renxin
408e5fa55e +added a parameter to the calculation handler macro. 2017-12-28 14:08:06 +08:00
Wang Renxin
2007ff93d0 +added two uprootable stubs: _ONCALC, _ONNEG. 2017-12-15 20:09:57 +08:00
Wang Renxin
f4a9fc1cda *fixed a referencing bug with the if statement. 2017-11-28 16:01:24 +08:00
Wang Renxin
0641d64bc0 *fixed a number comparison bug. 2017-11-25 19:55:21 +08:00
Wang Renxin
69036f748e *fixed a crash bug with the do-until statement. 2017-11-25 17:32:39 +08:00
Wang Renxin
6ff2f37a6d *fixed a lookup issue with the mb_get_var function. 2017-11-25 14:47:05 +08:00
Wang Renxin
7ee57db895 *it's better to use const char* for some callbacks. 2017-11-22 15:48:16 +08:00
Wang Renxin
246348777d +added an _ONCOND macro. 2017-11-20 13:59:18 +08:00
Wang Renxin
e2492be76e -simplified error codes, removed some of them. 2017-11-18 20:23:42 +08:00
Wang Renxin
347867e42b +added _PREVCALL and _POSTCALL. 2017-11-18 13:56:39 +08:00
Wang Renxin
dfb98dc27e *fixed a variable lookup issue with a ranged FOR loop. 2017-11-18 00:03:43 +08:00
Wang Renxin
b36e3f59dc *fixed an assignment issue with upvalues. 2017-11-17 21:30:14 +08:00
Wang Renxin
9a2b0a8cc1 *fixed a var lookup issue with ranged for loop. 2017-11-17 20:10:55 +08:00
Wang Renxin
44e8466c44 *fixed a variable lookup issue with a ranged FOR loop. 2017-11-17 19:01:00 +08:00
Wang Renxin
3b60064058 +added a _PREPAREGC macro. 2017-11-16 19:52:38 +08:00
Wang Renxin
edd04a3c7d *fixed a clearing issue of intermediate values in forked scope chain. 2017-11-16 16:32:29 +08:00
Wang Renxin
68c3b20d01 *renamed _CANGC to _GCNOW. 2017-11-16 11:22:24 +08:00