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:
+7
-8
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user