minor, apply templates directly using a mode

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, also bring modes for the gperf includes and the cases in the big (context) switch

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, code-hygiene, use exslt functions and global vars to eliminate code dupes

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, auto-generate fixc_get_aid() (by context) function file, fixml-attr-by-ctx.c

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, generate gperf files for aid-by-ctx lookup in the normal build chain

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, only put fields into the gperf map whose fixml attr is non-empty

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, PEBKAC, actually only process stylesheet plus the defining FIX xml file

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, include prototype for fixc_get_aid() in autogen'd super-switch, and name all parameters

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, switch to fixc_attr_t as the slot type for auto-gen'd gperfs, kick local enumeration

as it conflicts when we include all of the (generated) c files later on in the
super-switch file (fixml-attr-by-ctx.c) which is gen'd too.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, revert accidental inclusion of fixml-attr-by-ctx.c in fixml-rd.c

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, include necessary headers in fixml-attr-by-ctx.h and name the msg slot type correctly

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, use hash function names, lookup fun names and struct names that include the ctx

in gperf files, so that including them all in one file won't result in
conflicts.

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, actually return a value from the gperf map in fixc_get_aid()

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

* core/codegens:
  minor, actually return a value from the gperf map in fixc_get_aid()
  fix, use hash function names, lookup fun names and struct names that include the ctx
  fix, include necessary headers in fixml-attr-by-ctx.h and name the msg slot type correctly
  fix, revert accidental inclusion of fixml-attr-by-ctx.c in fixml-rd.c
  chore, switch to fixc_attr_t as the slot type for auto-gen'd gperfs, kick local enumeration
  chore, include prototype for fixc_get_aid() in autogen'd super-switch, and name all parameters
  fix, PEBKAC, actually only process stylesheet plus the defining FIX xml file
  fix, only put fields into the gperf map whose fixml attr is non-empty
  minor, generate gperf files for aid-by-ctx lookup in the normal build chain
  chore, auto-generate fixc_get_aid() (by context) function file, fixml-attr-by-ctx.c
  chore, code-hygiene, use exslt functions and global vars to eliminate code dupes
  minor, also bring modes for the gperf includes and the cases in the big (context) switch
  minor, apply templates directly using a mode
minor, make mode="deps" template return only the stem of a fixc:component or fixc:message

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, fill up the .gperfs file with all generated .gperf and .c files

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, put all generated gperf and from them generated c files into the dist

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, copy gen'd files to $(distdir) only and also copy .gperfs file

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, bld, copy generated gperf files (and their generated c files) from where the .gperfs file resides

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

* core/codegens:
  fix, bld, copy generated gperf files (and their generated c files) from where the .gperfs file resides
  minor, copy gen'd files to $(distdir) only and also copy .gperfs file
  chore, put all generated gperf and from them generated c files into the dist
  minor, fill up the .gperfs file with all generated .gperf and .c files
  minor, make mode="deps" template return only the stem of a fixc:component or fixc:message