Splitting main.cpp into jerry.cpp, main_linux.cpp and main_mcu.cpp; leaving __TARGET* defines usage only in jrt and plugins.

This commit is contained in:
Ruben Ayrapetyan
2015-02-11 14:10:14 +03:00
parent 145fba4109
commit ccc0453f34
11 changed files with 187 additions and 125 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
*/
#include "jrt.h"
#ifdef JERRY_ENABLE_PP
#ifdef JERRY_ENABLE_PRETTY_PRINTER
#include "pretty-printer.h"
#include "jerry-libc.h"
#include "lexer.h"
@@ -650,4 +650,4 @@ pp_op_meta (opcode_counter_t oc, op_meta opm, bool rewrite)
__printf ("\n");
}
#endif /* JERRY_ENABLE_PP */
#endif /* JERRY_ENABLE_PRETTY_PRINTER */
+2 -2
View File
@@ -17,7 +17,7 @@
#define PRETTY_PRINTER
#include "jrt.h"
#ifdef JERRY_ENABLE_PP
#ifdef JERRY_ENABLE_PRETTY_PRINTER
#include "vm.h"
#include "literal.h"
#include "scopes-tree.h"
@@ -25,6 +25,6 @@
void pp_opcode (opcode_counter_t, opcode_t, bool);
void pp_op_meta (opcode_counter_t, op_meta, bool);
void pp_literals (const literal *, literal_index_t);
#endif // JERRY_ENABLE_PP
#endif // JERRY_ENABLE_PRETTY_PRINTER
#endif // PRETTY_PRINTER