Auto-generate files associated with param_functions.c using docs at build time
garming at catalyst.net.nz
Wed Jan 15 22:51:28 MST 2014
The files which are now generated are:
param_proto.h (in the case of lib/param, it generates the section
that uses param_functions.c)
The original perl scripts generated these files from param_functions.c.
Now, the generation has been incorporated into generate_param.py to
generate them directly from the documentation. This at the very least
removes a level of indirection.
The current changes are in a repository:
Slowly, but surely, we've been managing to identify the differences
between the two loadparm systems. Moving pieces here and there and
removing special cases which don't benefit a lot from being special
cases -- generally making them line up better. Right now, we're looking
at removing some of the transitions and the extra glue between the two
systems, which should in turn remove some of the files which I've now
managed to generate. It seems a little roundabout, but in actually try
to do this stuff, it has shown us areas we've needed to fix.
I hope I can accomplish something good.
More information about the samba-technical