Commit Graph

26 Commits

Author SHA1 Message Date
39749ab847 put the hcl server code into a library 2018-03-14 10:14:38 +00:00
3acdae2cdf changed the hcl_ioimpl_t prototype to return 'int' instead of 'hcl_ooi_t'.
changed the io arguments to have a new 'xlen' field that holds the result of IO operations where 0 means end of stream
2018-03-09 05:05:09 +00:00
e3b5d33811 implemented the builtin primitive function sprintf 2018-03-05 03:35:44 +00:00
60a32bf642 added HCL_LOG_PREFER_JSON and implemented %J 2018-03-02 07:44:13 +00:00
9094157e28 fixed print_formatted() to use hcl_outfmtobj() instead of hcl_print().
added 2 new optional callbacks - vmprim.alloc_heap and vmprim.free_heap
2018-03-01 14:47:12 +00:00
0b460a3f2a added the logf builtin function 2018-03-01 09:46:02 +00:00
e58d4e30cc fixed a bug printing %% in print_formatted.
changed to use #x #o #b for hexadecimal, octal, binary output
2018-03-01 08:56:56 +00:00
329fc6ce7d removed unused lines 2018-03-01 05:27:17 +00:00
6eaf73a3d7 touched up various remaining implementation details of the printf builtin function. 2018-03-01 05:25:09 +00:00
09302470f7 enhanced hcl_inttostr() to accept a negative radix to produce lower-case alphabetic digits 2018-02-28 15:57:19 +00:00
ed729adc2e removed unneeded code 2018-02-28 10:23:08 +00:00
ffa6c39852 fixed a bug in printing a single character when hcl_ooch_t is hcl_bch_t
implemented the primitive printf function partially
2018-02-28 10:17:05 +00:00
eaf7f9243d changed types of some variables from hcl_oow_t to hcl_ooi_t
attempted to add the builtin printf function
2018-02-26 15:52:15 +00:00
ef51ee4a1d enhanced the logfmtv to handle encoding conversion of the format string 2018-02-26 15:24:45 +00:00
7e6b16e153 work in progress to implement the builtin printf function 2018-02-24 04:01:19 +00:00
dbeac10a38 added more error immunity check for the log_write callback 2018-02-22 04:44:21 +00:00
a39e38cc8d made hcl immune to an error number/message set in the log_write callback 2018-02-22 04:35:55 +00:00
e54096f2a0 changed copyright years 2018-02-07 14:13:13 +00:00
7826f0ff06 changed the reader to handle #(), #[], #{}, '() specially 2018-02-06 10:16:01 +00:00
380784cf57 added printing routines 2018-02-05 15:59:32 +00:00
293222d5c5 trying to revive this project 2018-02-05 10:43:25 +00:00
a84cd9da09 fixed a bug in logfmt.c 2016-11-21 12:39:38 +00:00
66af1a8ea3 fixed a logfmt bug 2016-11-09 15:50:41 +00:00
4160e9e0fe improved break handling further 2016-10-13 07:41:10 +00:00
15208b5e85 added some code to handle primitives and the call instruction 2016-10-06 17:49:47 +00:00
94e690004d added initial hcl files 2016-09-28 14:40:37 +00:00