Remove inclusion of std headers to our headers; move fatal from src/error.h to src/libjsparser/parser.c.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user