Commit Graph

62 Commits

Author SHA1 Message Date
43322c6901 moved the heapsize parameter from hcl_open() to hcl_ignite() 2021-02-09 17:47:22 +00:00
816b900231 touched up code a bit 2021-02-09 15:06:41 +00:00
1d0c7a8bbc allowed vmprim.alloc_heap() to create a bigger heap than requested.
enhanced the standard implementation(std.c) to attempt HUGETLB if the requested heap size is over 1/2 of the huge page size
2021-02-09 14:54:54 +00:00
1aeee25ac6 removed cb-impl.c and cb-impl.h 2021-02-08 15:42:24 +00:00
4b3e318428 used hcl_openstdwithmmgr() in hcl-s.c and deleted unneeded code 2021-02-08 09:41:40 +00:00
65c23a3ff5 removed unneeded code
uniformize the naming of locptr, dbgl to dbgi
2021-02-01 03:32:09 +00:00
d19fab7e3f renamed hcl_read2() and hcl_compile2() to hcl_read() and hcl_compile() respectively 2021-01-29 08:40:10 +00:00
d4fbd0a298 removed hcl_read() and hcl_compile().
in the next commit(), hcl_read2() and hcl_compile2() will get renamed to hcl_read() and hcl_compile() respectively
2021-01-29 08:35:31 +00:00
51e347889d the new compiler is becoming usable. but not complete yet.
added more string copy functions
2021-01-22 14:43:47 +00:00
42688f26ce renamed some struct member names which have not been changed since changes in the main part 2020-12-31 18:02:58 +00:00
852543ee19 Added some incomplete code for process-switching 2020-10-15 12:57:05 +00:00
c7e87698d0 still experimenting to find a good way to represent byte codes and literal frames in the interactive mode 2020-09-28 15:44:04 +00:00
e27058d771 added the _instsize field to hcl_t, hcl_server_t, hcl_client_t 2019-06-21 12:36:25 +00:00
a161944682 refactored fmt code 2019-05-31 10:54:13 +00:00
6e5a92a041 refined the msb positioning functions
migrated hcl_isint()/hcl_isbigint() to hcl-prv.h
2019-05-04 17:56:45 +00:00
140682dfc4 reorganized some callback functions into cb-impl.c 2018-11-03 15:57:14 +00:00
8537f8a67f interim commit while adding vmprim.assertfail 2018-11-03 14:05:37 +00:00
7f0428d288 cleaned up some code 2018-11-02 14:15:28 +00:00
19d39ca20a renamed USE_MACH_O to USE_MACH_O_DYLD 2018-10-14 12:01:51 +00:00
9e72cb1ca3 enhanced pfmod loading code 2018-10-14 10:13:24 +00:00
1b59610444 added hcl_getsynerrnum() and enhanced EOF handling 2018-07-28 04:08:09 +00:00
4280387771 added some type castings and changed the type of two variables for iteration 2018-07-01 13:17:42 +00:00
34e5508881 changed the way to set/unset O_NONBLOCK & O_CLOEXEC 2018-06-29 06:27:38 +00:00
deb53399a4 introduced the new type hcl_bitmask_t 2018-04-26 04:39:20 +00:00
687d633c15 changed to call lt_dlinit() and lt_dlexit() as necessary when libltdl is enabled 2018-04-25 04:12:13 +00:00
7c886ae2e3 added hcl_setinloc() and called this on each .SCRIPT command received in the server 2018-04-12 02:50:37 +00:00
9a1b20a47d enhanced the hcl server to write back an error message for input-phase errors 2018-04-12 02:22:17 +00:00
436d67b5eb improved error message handling in hcl server 2018-04-11 09:44:29 +00:00
64acfe3aec restructured client and server code into a single library libhclex.
also migrated socket related functions into the library
2018-04-10 13:57:17 +00:00
13ecb7e337 exported hcl_server_proto_feed_reply() 2018-04-10 09:17:00 +00:00
ae3745d5f3 added HCL_MOD_INCTX to hcl
added HCL_SERVER_MODULE_INCTX to hcl server
2018-04-09 15:54:54 +00:00
e92407221f renamed some function names for naming consistency 2018-04-07 15:54:16 +00:00
3fb9b31192 fixed reply encoding in the unicode mode in the server 2018-03-29 03:08:43 +00:00
0e2c892d8b enhanced server's error handling a bit 2018-03-24 06:06:01 +00:00
e7726ac3db added more error checks 2018-03-23 10:02:08 +00:00
b845bee716 checked O_CLOEXEC availablity 2018-03-22 09:53:16 +00:00
f575bc6add changed the server code to support multiple listening addresses 2018-03-22 09:46:44 +00:00
b7590398f1 implemented simple idle timeout on the server.
added --shutwr to the sample client code
2018-03-22 07:15:19 +00:00
b3c0640ba6 fixed a bug in main-c.c 2018-03-22 04:31:18 +00:00
8be5e3fd83 moved the socket address convertion functions to the main hcl library
enhanced the client library and samples
2018-03-22 03:42:17 +00:00
f675835a11 added reply handler 2018-03-21 10:38:10 +00:00
11dbde8380 fixed a bug in the default log callback 2018-03-19 09:50:56 +00:00
46ff9acfe2 exposed hcl_addbuiltinprims(). 2018-03-19 09:22:12 +00:00
89f3fc2d08 started some code for hcl client 2018-03-18 15:29:16 +00:00
1968f11cdf fixed a logmask handling issue 2018-03-17 11:57:02 +00:00
c41c3a12af enhanced the inclusion path handling in the sample hcl server code
added HCL_SERVER_SCRIPT_INCLUDE_PATH
added optstate field in hcl_server_worker_t
2018-03-17 05:44:40 +00:00
b3cef9ec5c added the used field to hcl_server_wid_map_data_t
started implementing .SHOW-WORKERS and .KILL-WORKER
2018-03-16 17:27:24 +00:00
36ee74f0ec enhanced the log_write callback to use as few write system calls as possible.
changed the hcl server to raise an error if .SCRIPT is not followed by actual script text on the same line
2018-03-16 16:20:40 +00:00
0b7acc1fd8 Added HCL_SERVER_WORKER_MAX_COUNT
changed the main server loop to purge dead clients as soon as the multiplex is finished
2018-03-16 14:57:34 +00:00
70ef4b6299 enhanced the hcl server code to assign an ID to each worker created 2018-03-16 05:56:05 +00:00