210aa19820
enhanced the 'in' operator evaluation to support an array
hyung-hwan2020-05-03 05:45:31 +00:00
11b6e0ce97
trivial change for code consistency
hyung-hwan2020-05-02 18:34:18 +00:00
29bc731ccb
enhanced 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
5326953e9b
made a minor change in tools/uni-case.c
hyung-hwan2020-05-01 08:10:51 +00:00
56a5bf592f
defined hawk_ooecs_amend to hawk_becs_amend in the bch mode
hyung-hwan2020-04-30 15:56:15 +00:00
0c184b6817
changed 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
1b7ef41ee4
fixed an array access problem by an out-of-range index in eval_indexed()
hyung-hwan2020-04-24 16:01:23 +00:00
f860798821
Added partial code for array support
hyung-hwan2020-04-24 15:52:08 +00:00
6e857ff4f2
updated 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
75dc7d8fbc
Added sys::tcflush() and defined sys::TC_CFLAG_XXX items
hyung-hwan2020-04-23 08:07:46 +00:00
11371cc073
dropping the idea of hawk::reset() and changing it to hawk::array() and hawk::map()
hyung-hwan2020-04-23 07:25:33 +00:00
260ab078f8
made IUTF8 conditional depending on its availability
hyung-hwan2020-04-22 11:41:37 +00:00
22342148f5
changed 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" slot
hyung-hwan2020-04-22 06:48:01 +00:00
8b597b7acf
did some preparatory work to support an array that uses an integer as the index
hyung-hwan2020-04-20 15:34:59 +00:00
3a717bb768
made OXTABS and ONOEOT compilable when not available
hyung-hwan2020-04-20 04:39:21 +00:00
b72110af74
integrated some test files to automake
hyung-hwan2020-04-14 14:02:04 +00:00
ef9db73f19
fixed a bug in handling a reference value in hawk::call()
hyung-hwan2020-04-14 11:45:52 +00:00
c7961f84d2
some 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
11fe4e17ad
fixed 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
f827a94d64
work in progress - debugging reference evaluation issues
hyung-hwan2020-04-14 06:02:55 +00:00
a8afcca04e
simplified 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 function
hyung-hwan2020-04-13 08:41:16 +00:00
9eb3c4fc42
enhanced a function caller to take a string and find a function to execute it
hyung-hwan2020-04-09 12:56:47 +00:00
9328a49cb1
added hawk_rtx_valtofun() and changed the asort implementation to use it
hyung-hwan2020-04-08 17:07:19 +00:00
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
hyung-hwan2020-04-08 10:23:31 +00:00
a23eeee168
added true multidimensional map support for the for-in statement and the binary in operator
hyung-hwan2020-04-07 16:16:48 +00:00
ca1877d412
call-by-reference handling with a true multidimensional map
hyung-hwan2020-04-04 17:40:56 +00:00
82eac76de4
more true multidimensional map work
hyung-hwan2020-04-03 17:56:04 +00:00
9d40f45092
implementing deletion on true multi-dimensional map
hyung-hwan2020-04-03 09:29:37 +00:00
164d91661b
implementing assignment with true multi-dimensional map
hyung-hwan2020-04-03 02:05:12 +00:00
76d295365a
writing code for supporting true multi-dimensional indices in map
hyung-hwan2020-03-30 08:54:37 +00:00
abcc217dd0
changed the point where hawk_rtx_cleario() is called for cleanup
hyung-hwan2020-03-29 08:05:36 +00:00
cd7873e19a
changed code to prevent buffered output from span across the end of hawk_rtx_execXXX()
hyung-hwan2020-03-29 06:29:05 +00:00
e54537886c
changed to call hawk_rtx_cleario() before restoring SIGPIPE handler in bin/main.c
hyung-hwan2020-03-28 08:28:09 +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
hyung-hwan2020-03-15 17:39:15 +00:00
4121ef9b3f
enhanced hawk_unescape_bcstr() to convert \uXXXX and \UXXXXXXXX to utf8 sequences
hyung-hwan2020-03-14 06:09:59 +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
hyung-hwan2020-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()
hyung-hwan2020-03-10 08:36:31 +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
hyung-hwan2020-03-08 15:04:47 +00:00