mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 01:43:35 +00:00
Estimated hours taken: 2 A cleanup of the bytecode stuff. bytecode/*: Various changes to make it conform to our C coding standard. In particular: - fix indentation and layout, particularly of switch statements; - use `#include "..."' rather than `#include <...>' for user-defined header files bytecode/Mmakefile: Avoid the use of `$^' in hard-coded rules, since it is not portable to non-GNU makes (many makes only allow the use of variables such as $*, $^, etc. in suffix rules), and since it is easy to avoid. Also add an XXX comment, since the header dependency handling is done twice. bytecode/bytecode.c: s/BIG_ENDING/MR_BIG_ENDIAN/ and s/LITTLE_ENDING/MR_LITTLE_ENDIAN/, to match my recent change to runtime/conf.h.in. In fact every identifier in the bytecode directory ought to be prefixed with `MB_', but I haven't done that in this change.