major, extend fixc_fld_s struct by parent context, occurrence counter and real pointers (for hierarchical msgs)

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
test, adapt struct layout test to meet new fixc_fld_s

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'core/beef' into next

* core/beef:
  test, adapt struct layout test to meet new fixc_fld_s
  major, extend fixc_fld_s struct by parent context, occurrence counter and real pointers (for hierarchical msgs)
minor, change signature of fixc_add_tag()

We now accept a fixc_attr_t object for TAG.
And we return values <0 for error and the field index otherwise.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, come up with a simple getopt(3) parser for fixml2fix and support -v (for --verbose)

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, link cli utils fixml2fix and fix2fixml statically

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, PEBKAC, realloc() doesn't need memmove'ing so kick it

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, kick unused state object in fixml-rd push parser

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, use new .tpc field in fixml-rd.c of fixc_fld_s (to keep track of contexts)

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, provide xsl script to generate a function that returns the noX attr in repeating blocks

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, also autogenerate fixml-comp-rptb.c

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'core/codegens' into next

* core/codegens:
  minor, also autogenerate fixml-comp-rptb.c
  minor, provide xsl script to generate a function that returns the noX attr in repeating blocks
Merge branch 'core/fixml->fix' into next

* core/fixml->fix:
  minor, use new .tpc field in fixml-rd.c of fixc_fld_s (to keep track of contexts)
  minor, kick unused state object in fixml-rd push parser
  fix, PEBKAC, realloc() doesn't need memmove'ing so kick it
  minor, link cli utils fixml2fix and fix2fixml statically
  minor, come up with a simple getopt(3) parser for fixml2fix and support -v (for --verbose)
  minor, change signature of fixc_add_tag()
fix, PEBKAC, actually produce valid C code in fixml-comp-rptb.xsl

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, cosmetics, suppress mixing-enums warnings in code gen'd by fixml-comp-rptb.xsl

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, actually implement FIXC_TYP_LONG and FIXC_TYP_PTR in fixc_render_fld()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, add case for FIXC_TYP_CTXT (default to default case) in fixc_render_fld(), and ...

leave a note that we don't want to actually render CTXT fields.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, check for repeating blocks whilst reading fixml, and ...

emit those noX tags (that record the number of elements in the group).

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, follow-up, don't add repeating block counting tag every time an attr is seen, move ...

code to sax_bo_FIXML_elt() instead.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'core/fixml->fix' into next

* core/fixml->fix:
  fix, follow-up, don't add repeating block counting tag every time an attr is seen, move ...
  minor, check for repeating blocks whilst reading fixml, and ...
  chore, add case for FIXC_TYP_CTXT (default to default case) in fixc_render_fld(), and ...
  fix, actually implement FIXC_TYP_LONG and FIXC_TYP_PTR in fixc_render_fld()
  fix, cosmetics, suppress mixing-enums warnings in code gen'd by fixml-comp-rptb.xsl
  fix, PEBKAC, actually produce valid C code in fixml-comp-rptb.xsl