Adding boolean return value, indicating whether script execution finished with success or failure, to run_int. Moving opcode loop from run_int to run_int_from_pos.

This commit is contained in:
Ruben Ayrapetyan
2014-07-18 12:27:17 +04:00
parent dd7029e15d
commit ef51126aab
2 changed files with 80 additions and 21 deletions
+3 -7
View File
@@ -20,10 +20,6 @@
#include "globals.h"
#include "opcodes.h"
OPCODE __program[128];
opfunc __opfuncs[LAST_OP];
struct __int_data
{
int pos; /**< current opcode to execute */
@@ -32,9 +28,9 @@ struct __int_data
int *root_op_addr; /**< pointer to first opcode saved */
};
void init_int (void);
void run_int (void);
void run_int_from_pos (struct __int_data *);
void init_int (const OPCODE* program_p);
bool run_int (void);
ecma_CompletionValue_t run_int_from_pos (struct __int_data *);
ssize_t try_get_string_by_idx( T_IDX idx, ecma_Char_t *buffer_p, ssize_t buffer_size);