extended hcl_attacio() to access a new input stream handler under the name of scanner.

renamed hcl_ioinarg_t to hcl_iosrarg_t
took back hcl_ioinarg_t for the new input stream handling
This commit is contained in:
2023-05-19 12:55:08 +09:00
parent 2bd78d2bfc
commit b340f09ecc
6 changed files with 247 additions and 150 deletions

View File

@ -646,10 +646,10 @@ struct hcl_compiler_t
hcl_ioimpl_t reader;
/* static input data buffer */
hcl_ioinarg_t inarg;
hcl_iosrarg_t srarg;
/* pointer to the current input data. initially, it points to &inarg */
hcl_ioinarg_t* curinp;
hcl_iosrarg_t* curinp;
/* information about the last meaningful character read.
* this is a copy of curinp->lxc if no ungetting is performed.
@ -664,7 +664,7 @@ struct hcl_compiler_t
/* the last token read */
hcl_iotok_t tok;
hcl_iolink_t* io_names;
hcl_iolink_t* sr_names;
hcl_synerr_t synerr;