Remove inclusion of std headers to our headers; move fatal from src/error.h to src/libjsparser/parser.c.

This commit is contained in:
Ruben Ayrapetyan
2014-07-10 17:10:50 +04:00
parent c132f6aa3c
commit 76e579d4e1
17 changed files with 263 additions and 476 deletions
-6
View File
@@ -16,12 +16,6 @@
#ifndef INTERPRETER_H
#define INTERPRETER_H
#ifdef JERRY_NDEBUG
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#endif
#include "opcodes.h"
#include "ecma-globals.h"
+4 -4
View File
@@ -14,8 +14,8 @@
*/
#include "ecma-operations.h"
#include "error.h"
#include "interpreter.h"
#include "jerry-libc.h"
#include "opcodes.h"
void
@@ -90,7 +90,7 @@ void
opfunc_loop_inf (OPCODE opdata, struct __int_data *int_data)
{
#ifdef __HOST
printf ("%d::loop_inf:idx:%d\n",
__printf ("%d::loop_inf:idx:%d\n",
int_data->pos,
opdata.data.loop_inf.loop_root);
#endif
@@ -102,7 +102,7 @@ void
opfunc_call_1 (OPCODE opdata, struct __int_data *int_data)
{
#ifdef __HOST
printf ("%d::op_call_1:idx:%d:%d\n",
__printf ("%d::op_call_1:idx:%d:%d\n",
int_data->pos,
opdata.data.call_1.name_lit_idx,
opdata.data.call_1.arg1_lit_idx);
@@ -115,7 +115,7 @@ void
opfunc_jmp (OPCODE opdata, struct __int_data *int_data)
{
#ifdef __HOST
printf ("%d::op_jmp:idx:%d\n",
__printf ("%d::op_jmp:idx:%d\n",
int_data->pos,
opdata.data.jmp.opcode_idx);
#endif
-4
View File
@@ -16,10 +16,6 @@
#ifndef OPCODES_H
#define OPCODES_H
#ifdef JERRY_NDEBUG
#include <stdio.h>
#endif
#include "globals.h"
#define OPCODE struct __opcode