Prevent coq_makefile from parsing project files in the reverse order. (Fix bug #4477)
Prevent coq_makefile from parsing project files in the reverse order. (Fix bug #4477)

The bug was a bit subtle. Function process_cmd_line can be called in three
different ways:
  1. tail-recursively to accumulate parsed options in reverse order,
  2. directly to parse a file (coqide) or a command line (coq_makefile),
  3. recursively to handle a "-f" option.
Once its execution finished, the function reversed its accumulator so
that the parsed options are in correct order. Due to the third case, this
means that the final local order of options was depending on the parity of
the depth of "-f" options. This commit fixes it by changing the function so
that the recursive call gets the actual accumulator rather than its
reversed version.

Warning: this will break all the projects that were inadvertently (or not)
relying on the bug. This might also require a further commit if
coq_makefile itself was relying on the bug.

mattam82/coq,Ptival/coq,Lionel-Rieg/coq,ppedrot/coq,herbelin/github-coq,silene/coq,william-lawvere/coq,amintimany/coq,maximedenes/coq,SkySkimmer/coq,coq/coq,amintimany/coq,herbelin/github-coq,mattam82/coq,coq/coq,Lionel-Rieg/coq,Zimmi48/coq,gares/coq,JasonGross/coq,coq/coq,ejgallego/coq,Matafou/coq,Lionel-Rieg/coq,ejgallego/coq,letouzey/coq-wip,silene/coq,herbelin/github-coq,letouzey/coq-wip,maximedenes/coq,gares/coq,ejgallego/coq,letouzey/coq-wip,letouzey/coq-wip,mattam82/coq,Matafou/coq,Zimmi48/coq,ejgallego/coq,amintimany/coq,gares/coq,maximedenes/coq,silene/coq,SkySkimmer/coq,Ptival/coq,maximedenes/coq,ppedrot/coq,Zimmi48/coq,SkySkimmer/coq,ppedrot/coq,Zimmi48/coq,ppedrot/coq,letouzey/coq-wip,Ptival/coq,coq/coq,gares/coq,gares/coq,maximedenes/coq,JasonGross/coq,william-lawvere/coq,Matafou/coq,william-lawvere/coq,JasonGross/coq,SkySkimmer/coq,JasonGross/coq,ppedrot/coq