Commit Graph

64 Commits

Author SHA1 Message Date
d9ffad1227 renamed hawk_rtx_cleario() to hawk_rtx_clearallios().
added hawk_rtx_flushallios().
revised hawk_rtx_loop() and hawk_rtx_callfun() to call hawk_rtx_flushallios() instead of hawk_rtx_clearallios().
changed the io handler to discard unflushed data if flushing fails in std.c
2020-04-08 10:23:31 +00:00
a23eeee168 added true multidimensional map support for the for-in statement and the binary in operator 2020-04-07 16:16:48 +00:00
ca1877d412 call-by-reference handling with a true multidimensional map 2020-04-04 17:40:56 +00:00
82eac76de4 more true multidimensional map work 2020-04-03 17:56:04 +00:00
9d40f45092 implementing deletion on true multi-dimensional map 2020-04-03 09:29:37 +00:00
164d91661b implementing assignment with true multi-dimensional map 2020-04-03 02:05:12 +00:00
76d295365a writing code for supporting true multi-dimensional indices in map 2020-03-30 08:54:37 +00:00
abcc217dd0 changed the point where hawk_rtx_cleario() is called for cleanup 2020-03-29 08:05:36 +00:00
cd7873e19a changed code to prevent buffered output from span across the end of hawk_rtx_execXXX() 2020-03-29 06:29:05 +00:00
e54537886c changed to call hawk_rtx_cleario() before restoring SIGPIPE handler in bin/main.c 2020-03-28 08:28:09 +00:00
a93beaaf55 added hawk::gc(), hawk::gc_set_threshold(), hawk::gc_get_threshold() 2020-03-28 08:04:37 +00:00
7d70005984 implemented automatic generational processing based on threshold in garbage collection 2020-03-28 06:45:36 +00:00
752b1332c9 touched up gc code 2020-03-25 17:05:48 +00:00
c1ffc899fe some more code cleanup 2020-03-25 06:22:25 +00:00
74180e1d8a some cosmetic source code changes 2020-03-25 05:56:11 +00:00
404c382e33 fixed a gc flaw upon rtx disposal 2020-03-24 15:26:00 +00:00
962b1d47dd fixed a bug in run_forin() in run.c 2020-03-24 07:14:12 +00:00
77640ef73c renamed the suffix of some scripts to .hawk
fixed mod-sys.c a bit
2020-03-24 07:08:21 +00:00
565e51091b fixed outstanding bugs in gc implementation. pending more improvements 2020-03-24 06:49:25 +00:00
6502a2e388 changed the behavior of for(x in y) loop - it now takes a snapshot of keys before running body 2020-03-22 18:01:05 +00:00
f0c1a26ccc some gc works 2020-03-20 09:50:32 +00:00
adcbf748a2 fixed a bug in string cache managment.
added mbs cache management
2020-03-20 06:05:28 +00:00
7fe9ea0936 added some code to implement gc 2020-03-19 17:42:01 +00:00
cd4298499f optimized lib/run.c a bit 2020-03-17 15:30:56 +00:00
6cd9cafd33 added hawk-map.h which uses either htb or rbt depending on HAWK_MAP_IS_HTB or HAWK_MAP_IS_RBT
the hawk's map value is now dependent on the above change. at compile time, you can choose HTB or RBT.
fixed a bug of not resetting FNR in the standard console read handlers
2020-03-15 17:39:15 +00:00
c2162bd12b enhanced hawk_rtx_match() to handle mbs
fixed bugs in hawk_rtx_getrefval() and hawk_rtx_getrefvaltype() for HAWK_VAL_REF_POS
2020-03-10 15:17:21 +00:00
bae06804ef added hawk_rtx_matchvalwithucs() and hawk_rtx_matchvalwithbcs()
renamed hawk_rtx_matchval() to hawk_rtx_matchvalwithoocs()
updated code concerning the call to hawk_rtx_setrefval()
2020-03-10 08:36:31 +00:00
260df21f85 made sub() and gsub() mbs-aware 2020-03-10 04:07:23 +00:00
75ef3a949a changed the tre parser to treat a backslash as an escaper inside [] 2020-03-09 15:29:31 +00:00
fd56a19a79 added @pragma stripstrspc on/off
added a new global variable STRIPSTRSPC
2020-03-09 08:52:42 +00:00
f0d588414e added %u to printf
changed %c with an empty string to '\0' in printf
fixed the execution behavior of double patterned action block(e.g. /a/,/b/)
fixed a bug in NF=value assignment handling
fixed a bug when assigning NF with a large number than the current number of records
fixed a bug in converting multidimensional array index to a string
2020-03-08 15:04:47 +00:00
4bd494d07b added hawk_rtx_makenumormbsvalwithuchars(), hawk_rtx_makenumormbsvalwithbchars(), hawk_rtx_makenumorstrvalwithuchars(), hawk_rtx_makenumorstrvalwithbchars() 2020-03-06 07:43:53 +00:00
75cb22aaec renamed hawk_setgblbyname() to hawk_setgbltostrbyname() 2020-03-05 09:04:14 +00:00
b7d29ffc86 added hawk_isvalidident() & hawk_setgblbyname().
fixed the standard console input handler to process special arguments of the var=val format
2020-03-05 06:33:58 +00:00
2ce27360d5 set the initial value of FS to a single space letter 2020-03-04 06:34:23 +00:00
87656f803e some code touch up 2020-03-03 12:00:13 +00:00
015ed09c5a added a new global variable SCRIPTNAME which intends to store the first script name loaded 2020-03-03 08:03:04 +00:00
48809c9e69 fixed a critical bug in handling a multi-dimensional index with delete (e.g. delete[20,"data"]) 2020-03-02 07:23:34 +00:00
ef2acc19a5 shortened @pragma startup to @pragma entry
adding experimental io multiplexer support to the sys module
2020-01-24 14:15:58 +00:00
49b7896ba0 added mysql::insert_id(), mysql::stmt_insert_id(), mysql::stmt_fetch().
mysql::stmt_fetch() yet to be finished
2020-01-19 11:17:14 +00:00
e5692a250e some experimental into mod-mysql.c 2020-01-18 05:36:36 +00:00
102a773bed made getbline implementation more sensible but still not good enough 2020-01-17 03:41:10 +00:00
45f08d03d9 some code touch-up in run_print and run_printf 2020-01-16 14:53:44 +00:00
788b7a6290 some support code for getbline. yet to be completed 2020-01-16 10:43:55 +00:00
3325db83fb removed BRS.
attempting to support getbline
2020-01-16 09:22:59 +00:00
b7fecc3172 added a new global variable BRS for byte reading.
wrote some more functions to support byte reading
2020-01-14 14:55:34 +00:00
32344f2c0c added Hawk::exec() 2020-01-14 09:10:47 +00:00
cf741c1525 implemented @pragma startup ... 2020-01-11 05:24:07 +00:00
ec5e61278c corrected the random max value.
some more error information handling improvement in parse.c
2020-01-03 10:35:45 +00:00
f4650746bb changed the way to set error information in run.c 2020-01-03 07:11:32 +00:00