7f479f156badded special parser-level substitution word - @SCRIPTNAME, @SCRIPTLINEhyung-hwan2020-05-04 07:14:32 +00:00
8ad37dabf0removed hawk::array_size(), hawk::array_tally(). enhanced hawk::array() and hawk::map() to accept valueshyung-hwan2020-05-03 15:49:31 +00:00
84d869606fsimplified the way to get the first integer index in idxnde_to_str()hyung-hwan2020-05-03 06:17:44 +00:00
6709839f96fixed another bug in 'in' evaluationhyung-hwan2020-05-03 06:05:06 +00:00
210aa19820enhanced the 'in' operator evaluation to support an arrayhyung-hwan2020-05-03 05:45:31 +00:00
11b6e0ce97trivial change for code consistencyhyung-hwan2020-05-02 18:34:18 +00:00
29bc731ccbenhanced asort() and asorti() to handle an array value. added hawk_rtx_getarrvalfld() and hawk_rtx_setarrvalfld()hyung-hwan2020-05-02 18:18:26 +00:00
5326953e9bmade a minor change in tools/uni-case.chyung-hwan2020-05-01 08:10:51 +00:00
56a5bf592fdefined hawk_ooecs_amend to hawk_becs_amend in the bch modehyung-hwan2020-04-30 15:56:15 +00:00
0c184b6817changed length() over an array to return the number of items set. added hawk::array_size() to return the last index + 1. added hawk::array_tally() which works for an array only and acts like length()hyung-hwan2020-04-29 13:03:02 +00:00
1b7ef41ee4fixed an array access problem by an out-of-range index in eval_indexed()hyung-hwan2020-04-24 16:01:23 +00:00
f860798821Added partial code for array supporthyung-hwan2020-04-24 15:52:08 +00:00
6e857ff4f2updated hawk_arr_t callback functions to be more consistent with hawk_rbt_t/hawk_htb_t by creating hawk_arr_style_t and adding hawk_arr_setstyle()/hawk_arr_getstyle(). remove hawk_arr_getcopier()/hawk_arr_setcopier()/hawk_arr_getcomper()/hawk_arr_setcomper()hyung-hwan2020-04-24 06:49:19 +00:00
75dc7d8fbcAdded sys::tcflush() and defined sys::TC_CFLAG_XXX itemshyung-hwan2020-04-23 08:07:46 +00:00
11371cc073dropping the idea of hawk::reset() and changing it to hawk::array() and hawk::map()hyung-hwan2020-04-23 07:25:33 +00:00
260ab078f8made IUTF8 conditional depending on its availabilityhyung-hwan2020-04-22 11:41:37 +00:00
22342148f5changed hawk_rtx_makemapvalwithdata() to accept data count. enhanced sys::tcgetattr() and sys::tcsetattr() to store and fetch the value for c_cc field to and from the "cc" slothyung-hwan2020-04-22 06:48:01 +00:00
8b597b7acfdid some preparatory work to support an array that uses an integer as the indexhyung-hwan2020-04-20 15:34:59 +00:00
3a717bb768made OXTABS and ONOEOT compilable when not availablehyung-hwan2020-04-20 04:39:21 +00:00
b72110af74integrated some test files to automakehyung-hwan2020-04-14 14:02:04 +00:00
ef9db73f19fixed a bug in handling a reference value in hawk::call()hyung-hwan2020-04-14 11:45:52 +00:00
c7961f84d2some sample code to mod-mysql.c added a test script file t/h-001.hawk. there is still a reference handling bug regarding hawk::call()hyung-hwan2020-04-14 07:40:30 +00:00
11fe4e17adfixed a bug where a reference value was passed to a user-defined function. a reference value should have been evaluated to a non-reference value before given to a user-defined function. it's a new bug introduced over a few previous commits done to support hawk::call()hyung-hwan2020-04-14 06:47:46 +00:00
f827a94d64work in progress - debugging reference evaluation issueshyung-hwan2020-04-14 06:02:55 +00:00
a8afcca04esimplified hawk::call(). fixed a bug in copying a value for a reference upon returning from a function in hawk_rtx_evalcall(). it was unable to handle the case where a reference variable is not updated in the called functionhyung-hwan2020-04-13 08:41:16 +00:00
6664621a45fixed an initialization bug in mod-math.chyung-hwan2020-04-12 19:05:15 +00:00
e4de922f7dtouched up stack management code added hawk::call()hyung-hwan2020-04-12 18:23:44 +00:00
9eb3c4fc42enhanced a function caller to take a string and find a function to execute ithyung-hwan2020-04-09 12:56:47 +00:00
9328a49cb1added hawk_rtx_valtofun() and changed the asort implementation to use ithyung-hwan2020-04-08 17:07:19 +00:00
d9ffad1227renamed 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.chyung-hwan2020-04-08 10:23:31 +00:00
a23eeee168added true multidimensional map support for the for-in statement and the binary in operatorhyung-hwan2020-04-07 16:16:48 +00:00
ca1877d412call-by-reference handling with a true multidimensional maphyung-hwan2020-04-04 17:40:56 +00:00
6cd9cafd33added 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 handlershyung-hwan2020-03-15 17:39:15 +00:00
4121ef9b3fenhanced hawk_unescape_bcstr() to convert \uXXXX and \UXXXXXXXX to utf8 sequenceshyung-hwan2020-03-14 06:09:59 +00:00
c2162bd12benhanced hawk_rtx_match() to handle mbs fixed bugs in hawk_rtx_getrefval() and hawk_rtx_getrefvaltype() for HAWK_VAL_REF_POShyung-hwan2020-03-10 15:17:21 +00:00
bae06804efadded hawk_rtx_matchvalwithucs() and hawk_rtx_matchvalwithbcs() renamed hawk_rtx_matchval() to hawk_rtx_matchvalwithoocs() updated code concerning the call to hawk_rtx_setrefval()hyung-hwan2020-03-10 08:36:31 +00:00