Commit Graph

406 Commits

Author SHA1 Message Date
ddcdd3904e enhanced hawk_makemapvalwithdata() to handle integers of various size
enhanced sys::stat()
2020-03-17 08:12:01 +00:00
2f548f8b38 registered hawk-map.h in lib/Makefile.am 2020-03-16 09:39:43 +00:00
625cca9d1f added sys::stat(). still incomplete 2020-03-16 08:55:29 +00:00
532de8ac48 updated documentation a bit 2020-03-16 08:28:02 +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
4121ef9b3f enhanced hawk_unescape_bcstr() to convert \uXXXX and \UXXXXXXXX to utf8 sequences 2020-03-14 06:09:59 +00:00
f2316d1d3e hawk_unescape_bcstr()/hawk_unescape_ucstr() 2020-03-13 16:00:21 +00:00
84c0b37e94 fixed a bug in printing a tree node of the HAWK_NDE_POS type 2020-03-12 04:26:28 +00:00
db77a97119 updated README.md a bit 2020-03-11 07:46:39 +00:00
689735eed8 added @pragma multilinestr on/off 2020-03-11 07:13:02 +00:00
059ba422ce removed some unneeded lines 2020-03-10 15:27:44 +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
09360c4abe added a comment on the change made in the previous commit 2020-03-09 15:36:01 +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
c8e805b159 updated README.md 2020-03-09 07:10:41 +00:00
c45114458e moved scripts to the scripts directory.
added a embedding sample in c
2020-03-08 15:39:33 +00:00
4ee104e1ee minor touch up 2020-03-08 15:09:09 +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
52dea401f8 fixed mistakes in some assertions 2020-03-05 15:22:55 +00:00
ea20bde917 updated open handling in standard console and file handlers 2020-03-05 15:11:55 +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
30887f7f2c some simple touch-ups 2020-03-04 14:39:27 +00:00
e8e5aa7935 fixed a bug handling -v in bin/main.c 2020-03-04 13:59:03 +00:00
7980e12999 changed the unary bitwise negation operator to a single tilde which overlaps with the regex match operator 2020-03-04 09:54:38 +00:00
916da0fd59 fixed wrong error handling in bin/mani.c 2020-03-04 09:25:17 +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
957fa97ebb handled RC_EINTR returned by sys::waitonmux() in tcp-proxy.awk 2020-03-03 08:09:34 +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
83d47bb64a SO_REUSEPORT fix for platforms lacking it 2020-03-02 15:52:54 +00:00
6886c5fab7 fixed a bug in sys::delfrommux() which didn't clear unread event data 2020-03-02 14:37:41 +00:00
93beb3f041 removed unstable assertions 2020-03-02 13:35:35 +00:00
aeff29f68e enhanced scripts/tcp-proxy.awk 2020-03-02 09:41:11 +00:00
8753eae27a Added sys::sockaddrdom() 2020-03-02 09:40:40 +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
140c12f726 updated lib/Makefile.am 2020-02-27 07:49:04 +00:00
a35c729348 updated ax_pthread.m4 to the latest
updated lib/Makeifle.am and samples/Makefile.am
2020-02-26 18:42:31 +00:00
b917920aa5 added 2 more parameters to sys::write()
adding a tcp proxy script
2020-02-26 08:38:23 +00:00
c5799690b8 added @pragma striprecspc on/off 2020-02-21 07:58:24 +00:00
b72dc3aaad removed unneeded files 2020-02-20 06:29:35 +00:00
7585c36e3e fixed HAWK_SIZEOF_SKAD_T defintion 2020-02-16 13:43:01 +00:00
fb1084a045 implemented sys::flock() with fcntl() 2020-02-10 08:36:01 +00:00
388e576ad9 added sys::fnctl() with sys::F_SETFD, sys::F_SETFL, sys::F_GETFD, sys::F_GETFL 2020-02-09 17:05:33 +00:00
57a6217caf added sys::setsockopt()
enhanced mux handling in mod-sys.c
2020-02-09 06:15:35 +00:00
e82d8d59d4 more mux implementation in mod-sys.c 2020-02-08 18:30:03 +00:00
b0d6ba8432 sys::shutdown(), sys::accept(), sys::listen(), sys::bind() 2020-02-07 09:33:13 +00:00
e7b251aa3e added sys::recvfrom in mod-sys.c 2020-02-06 15:33:43 +00:00
83e2a43493 added sys::sendto() in mod-sys.c 2020-02-05 15:13:29 +00:00
b109ae6fbb sys::socket, sys::connect() in mod-sys.c 2020-02-05 06:13:51 +00:00
722edb36cd simplified mux in mod-sys.c a bit 2020-02-04 15:37:19 +00:00
292f2cc265 some changes to mux handling in mod-sys.c 2020-02-04 09:59:08 +00:00
e2accffa0e some mux work. yet to be finished 2020-01-28 23:32:04 +00:00
f45c45ee7e some mux functions in the sys module 2020-01-27 17:08:07 +00:00
1b66deaca0 minor changes for old compilers 2020-01-27 09:54:20 +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
c3d7da33f5 some fixes for bch mode 2020-01-24 06:54:49 +00:00
58515d6c39 modified pkgs/hawk.spec.in 2020-01-22 10:14:18 +00:00
824632d4cb enhanced build files for rpm packaging 2020-01-22 09:46:17 +00:00
e2af46cabe got mysql::execute() and mysql::fetch() working 2020-01-19 14:31:27 +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
8246a38f61 wrote more code for mysql::stmt_execute().
changed error handling in mod-mysql.c
2020-01-19 04:43:56 +00:00
6c3a3f3f1e some more experimental code into mod-mysql.c for parameter binding 2020-01-18 10:43:41 +00:00
e5692a250e some experimental into mod-mysql.c 2020-01-18 05:36:36 +00:00
851d485499 fixed Hawk and HawkStd for byte reading 2020-01-17 06:25:51 +00:00
102a773bed made getbline implementation more sensible but still not good enough 2020-01-17 03:41:10 +00:00
0c2a13b652 removed hawk_rtx_matchrex() and redefined it as a macro 2020-01-16 15:22:18 +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
ba320fad99 fixed lib/Makefile.am 2020-01-15 06:00:52 +00:00
8e1c106fe2 added Hawk::setCmgr() 2020-01-15 05:25:43 +00:00
27e0b5f4f7 renamed hawk_dflerrstr() to hawk_dfl_errstr().
removed the hawk_t* argument from hawk_dfl_errstr().
added the _cmd field to Hawk
2020-01-15 04:59:36 +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
3e86ce4ab2 check for multiple @pragma startup directives at the top-level source 2020-01-11 16:01:52 +00:00
cf741c1525 implemented @pragma startup ... 2020-01-11 05:24:07 +00:00
d5cb858e04 added sys::symlink() 2020-01-10 15:54:23 +00:00
66a626a6e6 added sys::rmdir() 2020-01-10 15:30:57 +00:00
8f484cf79e some code touch up in mod-sys.c 2020-01-10 08:28:52 +00:00
ca1c6cf97f added sys::setenv(), sys::unsetenv() 2020-01-10 08:18:55 +00:00
c69a1b3f50 touched up sys::getenv() 2020-01-10 05:02:40 +00:00
d895ca93d6 enhanced error handling in fnc_unlink 2020-01-10 04:44:44 +00:00
8526c4eeac fixed segfault in fnc_system 2020-01-10 04:33:39 +00:00
13eba6b85d added sys::chroot() 2020-01-10 04:29:27 +00:00
44937ce12a added sys::fchown() 2020-01-09 14:24:26 +00:00
894488dd09 some silly code changes 2020-01-09 09:28:32 +00:00
f1c5626b1b improved Hawk::Value::setIndexedStr() functions 2020-01-09 07:24:35 +00:00
ba8cb99231 fixed build files to move c++ objects to libhawk from libhawkxx 2020-01-09 04:34:21 +00:00
8d23aa3ab7 changed configure.ac to accept yes:4w, yes:2w, no:4w, no:2w with enable-unicode 2020-01-09 02:58:29 +00:00
c9854dd02c fixed wrong initialization in utl-skad.c 2020-01-09 02:50:45 +00:00
0c65ae7eec added Hawk::getErrorMessageU(), Hawk::getErrorMessageB(), Hawk::getErrorLocationFileU(), Hawk::getErrorLocationFileB() 2020-01-08 15:37:42 +00:00
8740a081f7 redefined hawk_uch_t 2020-01-08 07:23:03 +00:00
c22d3369c9 removed more redefinitions of primitive types in Hawk and HawkStd 2020-01-08 03:21:49 +00:00
19c1a9e831 fixed to set path on the sio argument in HawkStd
removed some redefinition of primitive types in Hawk
2020-01-08 03:14:41 +00:00
4af782af80 fixed Hawk & HawkStd more 2020-01-07 16:34:26 +00:00
05c58df30f added a new directory - samples
more code in Hawk and HawkStd
2020-01-07 09:02:56 +00:00
053dec0f99 added some c++ code 2020-01-06 16:18:33 +00:00
b62142dea7 fixed the bug of having omitted setting an error message when given wrong handle.
more fixes in HawkStd
2020-01-06 08:53:31 +00:00
8a990821a5 working on Hawk and HawkStd 2020-01-05 15:12:24 +00:00
6f6b860971 renamed StdHawk to HawkStd.
added quite some c++ code to get Hawk free of compilation errors
2020-01-05 04:32:14 +00:00
0e4cdc0f04 updating Hawk and StdHawk classes for hawk 2020-01-04 16:19:38 +00:00
b610816366 implementing prepared statement support in mod-mysql.c 2020-01-04 15:55:18 +00:00
235500ee8e fixing mod-mysql.c for hawk 2020-01-04 05:21:00 +00:00
f3f4ee4ebe have refactored error information handling in error.c.
removed hawk_seterror() and hawk_seterrstr()
2020-01-04 04:47:41 +00:00
9cae5a6130 removed hawk_rtx_seterror() 2020-01-03 14:22:20 +00:00
dae8b5428d more error information handling touch-up in parse.c 2020-01-03 14:16:24 +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
01464d1fb1 better error information handling in parse.c 2020-01-03 10:22:23 +00:00
c64364ecb1 updated parse.c with new way to setting error information partially 2020-01-03 07:35:59 +00:00
f4650746bb changed the way to set error information in run.c 2020-01-03 07:11:32 +00:00
0fa5af5614 added -t to bin/main.c to accept console output files 2020-01-03 03:37:36 +00:00
9e6cd784cf renamed set_error_on_sys_list_with_syserr to set_error_on_sys_list_with_errno in mod-sys.c
implemented getppid for win32
2020-01-03 03:02:26 +00:00
11f898591d fixed a bug in fmt_put_bchars_to_uch_buf()
added getpgid() and getpgrp() check to configure.ac
redefined RC_XXXX in mod-sys.c
changed some functions in mod-sys.c
2020-01-02 15:10:04 +00:00
912c2787ad fixed bugs in query_module()
deleted unused files.
added sys::resetdir().
2020-01-02 08:33:24 +00:00
65552ff85e minor code fix 2020-01-01 14:16:01 +00:00
9a24d57b8f added hawk_rtx_buildrex() and hawk_rtx_freertx() 2020-01-01 14:02:27 +00:00
49e3eec642 consolidated syserr_to_errnum macros to a single hawk_syserr_to_errnum() function 2020-01-01 05:20:28 +00:00
05cb4dc080 changed hawk_seterrnum() to be consistent with hawk_gem_seterrnum() 2020-01-01 04:46:49 +00:00
988dc83bf4 changed hawk_rtx_seterrnum() to be consistent with hawk_gem_seterrnum() 2019-12-31 15:52:28 +00:00
fffc474b9c some fix for netbsd 2019-12-31 07:15:38 +00:00
bd61380fa0 added hawk_gem_skadtoucstr() and hawk_gem_skadtobcstr() 2019-12-31 06:46:33 +00:00
4ccf7d99a5 added hawk_uchars_to_bin() and bchars_to_bin() 2019-12-30 15:53:35 +00:00
33f0f6b245 added hawk_tokenize_bchars() and hawk_tokenize_uchars().
trying to get functions right in gem-nwif2.c
2019-12-29 16:54:12 +00:00
757b7e6c63 adding some network interface functions 2019-12-27 08:21:27 +00:00
b7c7231c1b added lib/gem-nwif.c 2019-12-26 15:00:02 +00:00
4db2d0fc41 fixed wrong defintion of HAWK_UCH_PROP_ALNUM and HAWK_BCH_PROP_ALNUM 2019-12-26 05:57:57 +00:00
d2ed09fe4d revived syslog functions in the sys module.
fixed script and stream file name handling issues.
added the path field to the hawk_sio_arg_t structure. the field should be set by the I/O handler if the name field is not HAWK_NULL.
2019-12-25 16:01:43 +00:00
40bf6910e5 some work for socket address conversion 2019-12-24 16:26:18 +00:00
3ff8866dec experimental socket address conversion function 2019-12-24 16:13:19 +00:00
476a800572 simplified assertion 2019-12-21 16:59:00 +00:00
c23d902ad0 got mod-sys.c working partially 2019-12-20 14:55:10 +00:00
baae1c4bf6 replaced hawk_pma_t by hawk_tre_mem_t 2019-12-20 03:15:03 +00:00
c9e0adfde0 cleaned up regular expression functions in misc.c 2019-12-19 09:11:40 +00:00
9387994622 removed unneeded code from tre 2019-12-18 15:28:31 +00:00
62664a4e58 deleted unneeded code 2019-12-18 08:59:27 +00:00
c25b251efc gem intead of hawk in tre 2019-12-18 08:34:44 +00:00
40d8800dab refactoring 2019-12-18 08:16:34 +00:00
446925bcbf more fixes to use gem 2019-12-18 05:15:03 +00:00
4ee4e3fe60 refactored fio 2019-12-17 08:53:33 +00:00
e21d307a8c changed arr to use gem instead of hawk 2019-12-16 15:09:58 +00:00
58d06e55b3 some code refactoring 2019-12-16 08:57:43 +00:00
73e059d458 removed typecasgint to int for length to %.*js 2019-12-14 16:25:11 +00:00
cf2f249ba9 removed typecasgint to int for length to %.*js 2019-12-14 16:20:46 +00:00
5923c452f8 logging functions as error printer 2019-12-14 16:18:35 +00:00
ef1bb5f689 added log writer 2019-12-14 16:05:10 +00:00
0d558ca900 changed htb to use 'gem' instead of 'hawk' 2019-12-14 08:05:06 +00:00
cd5dfcd504 ongoing code refactoring 2019-12-14 06:11:30 +00:00
62211e8934 migrated more common functions to gem.c 2019-12-13 15:24:57 +00:00
96c87440f0 fixed syscall.h for 32bit systems 2019-12-13 09:38:07 +00:00
859a27db55 pushing some common code to gem.c 2019-12-13 08:26:54 +00:00
043a24a4ea starting hawk. goodbye to qseawk 2019-12-13 04:29:58 +00:00