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:
+1
-17
@@ -16,16 +16,7 @@
|
||||
#ifndef JERRY_GLOBALS_H
|
||||
#define JERRY_GLOBALS_H
|
||||
|
||||
#include <float.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
/**
|
||||
* Types
|
||||
*/
|
||||
typedef unsigned long mword_t;
|
||||
#include "jrt_types.h"
|
||||
|
||||
/**
|
||||
* Attributes
|
||||
@@ -213,11 +204,4 @@ extern void __noreturn jerry_exit (jerry_status_t code);
|
||||
#define JERRY_MIN(v1, v2) ((v1 < v2) ? v1 : v2)
|
||||
#define JERRY_MAX(v1, v2) ((v1 < v2) ? v2 : v1)
|
||||
|
||||
/**
|
||||
* Enable --show-opcodes key.
|
||||
*/
|
||||
#if defined (__TARGET_HOST) && !defined (JERRY_NDEBUG)
|
||||
# define JERRY_ENABLE_PP
|
||||
#endif
|
||||
|
||||
#endif /* !JERRY_GLOBALS_H */
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* Copyright 2015 Samsung Electronics Co., Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef JRT_TYPES_H
|
||||
#define JRT_TYPES_H
|
||||
|
||||
#include <float.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#endif /* !JRT_TYPES_H */
|
||||
Reference in New Issue
Block a user