Skip to content

Commit

Permalink
initial #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Levente Orban committed Oct 24, 2016
1 parent 40ccc62 commit bd67bf6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion jerry-core/parser/js/js-parser-internal.h
Expand Up @@ -29,7 +29,7 @@
package bp_info[128];
jmem_cpointer_t debug_bytecode_data_cp; /* < Compressed main program byte code pointer*/
jmem_cpointer_t debug_func_bytecode_data_cp; /* < Compressed function byte code pointer*/
#endif /* PARSER_DEBUG */
#endif /* !PARSER_DEBUG */

/** \addtogroup parser Parser
* @{
Expand Down
2 changes: 1 addition & 1 deletion jerry-core/parser/js/js-parser-statm.c
Expand Up @@ -376,7 +376,7 @@ parser_parse_function_statement (parser_context_t *context_p) /**< context */

function_name_t.type = FUNCTION_NAME; // Type 2 is the parsed function name
function_name_t.msg_len = name_p->prop.length;
memcpy(function_name_t.msg, (char*)name_p->u.char_p, function_name_t.msg_len);
memcpy(function_name_t.msg, name_p->u.char_p, function_name_t.msg_len);

send(connection, &function_name_t, sizeof(function_name_t), 0);
}
Expand Down
9 changes: 0 additions & 9 deletions jerry-main/main-unix.c
Expand Up @@ -71,10 +71,7 @@ read_file (const char *file_name,
source_file_t.msg_len = strlen(file_name);
memcpy(source_file_t.msg, file_name, source_file_t.msg_len + 1);

// sender(&source_file_t, sizeof(&source_file_t));
send(connection, &source_file_t, sizeof(source_file_t), 0);
// size_t file_name_len = strlen(file_name);
// send_function_to_client(file_name, (uint16_t)file_name_len);
#endif /* !PARSER_DEBUG */

fclose (file);
Expand Down Expand Up @@ -392,12 +389,6 @@ main (int argc,
}
}

// #ifdef PARSER_DEBUG
// const char *eof_file = " ";
// size_t file_name_len = strlen(eof_file);
// send_function_to_client(eof_file, (uint16_t)file_name_len, 0);
// #endif /* !PARSER_DEBUG */

if (jerry_value_has_error_flag (ret_value))
{
break;
Expand Down

0 comments on commit bd67bf6

Please sign in to comment.