Revised headers include order. The "wren_common.h" should be included first, being a sort of "configuration" header. Then the "wren-XYZ.h" header should follow for "XYZ.c" source file. Then the other "wren_*.h" headers (in lexicographical order if possible). Al last, the standard include files.

This commit is contained in:
Marco Lizza
2015-01-21 10:30:37 +01:00
parent 991ada8919
commit 73ce2b0b7e
9 changed files with 34 additions and 26 deletions
+7 -8
View File
@@ -1,17 +1,16 @@
#include "wren_common.h"
#include "wren_compiler.h"
#include "wren_vm.h"
#if WREN_DEBUG_DUMP_COMPILED_CODE
#include "wren_debug.h"
#endif
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "wren_common.h"
#include "wren_compiler.h"
#include "wren_vm.h"
#if WREN_DEBUG_DUMP_COMPILED_CODE
#include "wren_debug.h"
#endif
// This is written in bottom-up order, so the tokenization comes first, then
// parsing/code generation. This minimizes the number of explicit forward
// declarations needed.