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
+7 -7
View File
@@ -13,20 +13,20 @@
* limitations under the License.
*/
#include "parser.h"
#include "error.h"
#include "jerry-libc.h"
#include "lexer.h"
#include "error.h"
extern void lexer_dump_buffer_state (void);
#include "parser.h"
/* FIXME: */
extern void lexer_dump_buffer_state();
/* FIXME: Make general fatal function call it from libjsparser's fatal */
void
fatal (int code)
{
printf ("FATAL: %d\n", code);
__printf ("FATAL: %d\n", code);
lexer_dump_buffer_state ();
JERRY_UNREACHABLE ();
exit (code);
__exit( -code);
}
bool