The code is just unmaintainable, both standard, raw, xml and json display logic is in qstat.c which is wrong.
This PR split standard, raw, xml, and json display logic in dedicated c-files, create needed h-files for them, and create a h-file for templating display too to avoid redeclarations (the template code was just copy pasting some qstat.h lines, and qstat.h were copypasting some template definitions).
must be merged right after #13 and before #25 and others
The code is just unmaintainable, both standard, raw, xml and json display logic is in
qstat.c
which is wrong.This PR split standard, raw, xml, and json display logic in dedicated c-files, create needed h-files for them, and create a h-file for templating display too to avoid redeclarations (the template code was just copy pasting some qstat.h lines, and qstat.h were copypasting some template definitions).
must be merged right after #13 and before #25 and others