Commit Graph

406 Commits

Author SHA1 Message Date
897e867819 added hawk_get_val_type() 2021-08-18 05:11:04 +00:00
ccc32d8118 simplified HawkStd::SourceFile functions 2021-08-17 19:26:41 +00:00
460f3b218c enhanced HawkStd::SourceFile()/HawkStd::SourceString() to detach early from hawk when open() fails 2021-08-17 17:38:16 +00:00
05f99d1304 enhanced more string comparison functions with case-insensitive operation 2021-07-19 19:54:01 +00:00
7d8f32c3cb fixed the const issue in hawk_trim_uchars() and hawk_trim_bchars() 2021-07-19 19:37:43 +00:00
02aa80e9c2 set const on the first parameter to hawk_trim_uchars() and hawk_trim_bchars() 2021-07-16 08:16:43 +00:00
23715c35ef fixed a flaw in HAWK_OOCHARS_TO_INT_MAKE_OPTION() 2021-07-12 14:07:57 +00:00
edf37ae74c fixed the order flaw in lib/mod-hawk.c 2021-01-30 09:50:47 +00:00
03adf78a76 enhanced the test case to detect the bug found in hawk_copy_bcstr_to_bchars() 2021-01-22 16:21:55 +00:00
63f94ddb44 fixed the wrong type specified for the length parameter in hawk_copy_bcstr_to_bchars() and hawk_copy_ucstr_to_uchars() 2021-01-21 07:00:05 +00:00
5f7bef98f5 fixed an issue with an old compiler 2020-12-31 16:27:29 +00:00
dd2d3d4ccd fixed a potential issue by shared data access in mod-hawk.c 2020-12-28 17:23:33 +00:00
80f9d6bc85 some improvements to the ffi module.
changed hawk::function_exists() to check a module function
2020-12-28 07:10:17 +00:00
7b9f3cd9f5 got rid of unneeded stuffs 2020-12-27 19:28:49 +00:00
7d2a0ed484 got the ffi module to work in the basics at least 2020-12-27 19:26:07 +00:00
8303b48fd1 working on mod-ffi 2020-12-26 18:51:05 +00:00
12e50d46d7 working on mod-ffi 2020-12-22 17:53:51 +00:00
5b6347b0a9 added more ffi module code 2020-12-20 17:50:30 +00:00
3841ce7445 updated t/t-001.c 2020-12-20 14:08:17 +00:00
4cf6e17004 updated get_ifcfg() 2020-12-20 13:50:26 +00:00
e72e9f2c1d added net/route.h to configure.ac 2020-12-20 13:29:11 +00:00
801f11fa8e added sys/sysct.h to configure.ac 2020-12-20 12:59:51 +00:00
020f76ce1d fixed the environ issue on macosx 2020-12-18 17:57:59 +00:00
3412108b75 fixed bchr handling in some functions in val.c 2020-12-18 17:48:36 +00:00
5115bb7b8c fixed wrong endian handling in sys::pack() and sys::unpack() 2020-12-18 17:29:40 +00:00
9ea3344469 fixed bugs in sys::split() 2020-12-18 17:16:58 +00:00
2eb3c1a5c1 fixed flaws in configure.ac 2020-12-18 14:59:31 +00:00
5184683dfb changed bin_PROGRAMS to noinst_PROGRAMS in samples and tools 2020-12-18 14:53:14 +00:00
749f3d30b6 added the return type check for unsetenv() in configure.ac 2020-12-18 14:43:30 +00:00
49efdd3caf implementing mod-ffi 2020-12-17 10:12:57 +00:00
214c2bee3a moved syslog-related data from the module context to the module's rtx context 2020-12-16 15:49:27 +00:00
829ad9bdd0 renamed hawk_find_bchar() to hawk_find_bchar_in_bchars().
renamed similar function names in the same way.
updated sys::openlog() to accept a local log socket path with remote:// (e.g. remote:///dev/log/xxx)
2020-12-16 15:13:29 +00:00
607b66d4c9 added sys::SIZEOF_INT, sys::SIZEOF_INTPTR, sys::SIZEOF_INTPTR, sys::SIZEOF_FLT, sys::SIZEOF_FLTBAS, sys::SIZEOF_FLTMAX
fixed some bugs in sys::pack()
2020-12-15 17:11:16 +00:00
72d2272444 implemented 'd', 'f' in sys::pack() and sys::unpack() 2020-12-15 16:10:52 +00:00
130d24544f added c, n, N to sys::pack() and sys::unpack() 2020-12-14 15:25:07 +00:00
55e1003715 added some code for sys::unpack() 2020-12-13 16:54:39 +00:00
40c750ef3b implementing sys::unpack() 2020-12-12 18:43:55 +00:00
a93b1aaf12 moved hawk::pack() to sys::pack()
enhanced sys::pack() to return an error code and set the error message upon failure
2020-12-12 18:18:37 +00:00
237a2853d8 added some code to implement hawk::pack() 2020-12-12 17:07:25 +00:00
dc4b629cbf added hawk::cmgr_exists()
enhanced str::tombs()
enhanced hawk_rtx_valtobcstrdupwithcmgr()
2020-12-11 12:14:48 +00:00
ec2040f133 removed an invalid @include 2020-12-10 17:00:47 +00:00
0de14c4744 resolved numerous bugs regarding byte-characters and byte-strings
changed the way to handle %s/%k/%K contained inside CONVFMT - treat the format specifier as if it is %g instead of returning an error.
removed HAWK_EFMTCNV for the CONVFMT formatting change
2020-12-10 16:55:47 +00:00
e983d7701a added some code for the byte-character literal support.
enhanced value comparison routines
2020-12-09 18:07:20 +00:00
2e25911bfd enhanced the concat operator handler to process mbs properly 2020-12-09 04:02:04 +00:00
1d83f8cfe7 added str::strchar()
made str::tolower(), str::toupper(), str::tonum() character-friendly
2020-12-08 13:27:33 +00:00
97bd469ce8 touched up hawk_rtx_truncrec().
fixed a bug in hawk_xma_init()
2020-12-07 16:48:29 +00:00
792f38acae use hawk_rtx_getvaloocstr()/hawk_rtx_getfreeoocstr() more wherever possible
trying to make character handling sane
2020-12-07 16:22:39 +00:00
dfb7b2aa2d more code to support the character literal 2020-12-05 18:55:05 +00:00
342e01f5b4 attempting to support the character literal notation 2020-12-04 16:19:01 +00:00
672a9a248d cleaned up mod/Makefile.am 2020-12-04 09:40:24 +00:00
05ca362732 fixed a minor build issue in HawkStd.cpp 2020-12-04 05:57:23 +00:00
3a5119504e worked around parse errors by an old gcc compiler(2.95.3) 2020-12-03 14:11:11 +00:00
c44b3160f2 fixed configure.ac 2020-12-03 08:44:32 +00:00
65ad752666 hacked formatting code to work around a compiler problem of not passing __float128 properly via va_list.
introduced 'jj' to pass a large value via a pointer but to take the value inside the pointer
changed hawk_rtx_format() and hawk_rtx_formatmbs() to use 'jj' when building with HAWK_USE_FLTMAX on
2020-12-03 07:28:53 +00:00
7827e5fa4b fixed a wrong define 2020-12-02 18:52:33 +00:00
616539252c made tre_ast_to_tnfa() iterative
fixed a bug in tre_expand_macro()
fixed a bug in tre_parse()
2020-12-02 16:07:06 +00:00
fddfa537e5 redefined TRE_CHAR_MAX to avoid the overflow issue 2020-12-02 15:11:13 +00:00
6210a10297 updated configure.ac 2020-12-02 03:09:55 +00:00
72557c239b added hawk::modlibdirs() 2020-12-01 14:44:53 +00:00
2dd6029064 fixed a parser bug when handling the print/printf statement without redirection.
fixed a bug where a single dot was converted to 0 when passed via -v (e.g. -vTDIR=.)
added more test cases
2020-12-01 10:22:17 +00:00
35829a524b added the mimimum size check for an externally allocated zone to xma 2020-11-28 15:28:14 +00:00
3a5a268bd7 changed the return type of xma dumper to void 2020-11-25 14:42:56 +00:00
dacb0cf293 stop specifying explicit DEPENDENCIES by listing the .la files in LDADD 2020-11-16 12:54:50 +00:00
b9b1802387 fixed a link issue with the socket library on a certain platform 2020-11-15 09:22:03 +00:00
c21c9ddeed corrected build files for distcheck 2020-11-15 08:46:30 +00:00
f4a2102797 simplified build files 2020-11-15 04:50:40 +00:00
1b7f6aa29d removed O_CLOEXEC checks with epoll_create1() 2020-11-14 16:07:36 +00:00
5d7c87c882 changed to use EPOLL_CLOEXEC if available when calling epoll_create1() 2020-11-14 16:00:11 +00:00
9ff63b9503 fixed build files regarding -lm 2020-11-14 09:02:39 +00:00
a9418f26c2 fixed build files 2020-11-14 08:03:16 +00:00
b3b56c4a42 fixed build files 2020-11-14 07:35:47 +00:00
cfa140a925 fixed a length calculation bug in fnc_split() 2020-11-13 17:44:44 +00:00
daf7377403 added str::splita() 2020-11-13 15:09:29 +00:00
166c18c7d0 enhanced str::split() to handle byte strings better 2020-11-13 14:56:15 +00:00
4a60654b49 added code to preapre byte string support in split(). still long way to go 2020-11-13 02:50:20 +00:00
afe27f4eec hawk initializes block-local variables upon block entry regardless of migration to the outermost block by the parser.
it emits the local variable declaration in the original nested block regardless of migration by the parser.
2020-11-12 08:02:36 +00:00
7ab601303c added a new keyword @nil 2020-11-10 02:56:29 +00:00
93aa76e104 fixed a test case 2020-11-09 16:32:34 +00:00
097a6c92f2 fixed some bugs in hawk_rtx_format() and hawk_rtx_formatmbs() 2020-11-09 12:07:16 +00:00
9a8c97e3ab added some test cases on math functions 2020-11-08 18:06:15 +00:00
aa04aa2ad7 added more test cases 2020-11-08 17:51:28 +00:00
44bfa42a69 changed the literal notations of a raw string, a byte string, a raw byte string to have the @ sign before b, r, br, rb 2020-11-08 17:23:25 +00:00
a532d65335 fixed a bug of not checking if the current script is null for @SCRIPTNAME in parse.c 2020-11-07 01:51:52 +00:00
fe600c2ce4 added check for the first parameter to operator new in configure.ac 2020-11-07 01:26:29 +00:00
2390a8c5cc minor changes of some conditionals in hawk-cmn.h 2020-11-06 14:04:59 +00:00
38c193cd31 made some defintions conditional 2020-11-05 15:10:28 +00:00
105bbf5429 changed hawk_xma_free() a bit 2020-11-03 12:59:28 +00:00
4323b0b7ce changed xma dump title 2020-11-03 06:54:20 +00:00
06a698058e changed hawk to print xma information when -D and -m are specifed 2020-11-03 06:44:36 +00:00
42637318b7 fixed more bugs in xma 2020-11-03 06:08:34 +00:00
26e0570a53 changed a field name from avail to free in hawk_xma_mblk_t and hawk_xma_fblk_t 2020-11-03 01:24:14 +00:00
200f5f1d94 added the xma memory manager 2020-11-02 09:54:12 +00:00
b17dfeea3c set RTLD_LOCAL for dlopen() when opening a module 2020-10-20 07:41:56 +00:00
78deb3a44d removed -std=c++11 from hawk.spec.in 2020-10-13 17:42:10 +00:00
23fbfed989 updated hawk.spec.in 2020-09-24 13:45:44 +00:00
2fe815e815 enhanced sys::read() to accept the 4th parameter as an input end delimiter 2020-09-14 11:28:57 +00:00
c15966a0f4 fixed wrong O_NONBLOCK handling in mod-sys.c 2020-09-08 16:08:28 +00:00
a097bb71fe redefined hawk_ntime_sec_t with a data size guard 2020-09-03 03:29:55 +00:00
a0436306b8 removed unneeded code 2020-09-03 03:24:14 +00:00
263fa969d4 added more test cases for hawk_add_ntime()/hawk_sub_ntime() 2020-09-03 02:56:38 +00:00