Remove argument names in function prototypes, declared in headers; fix '*' alignment in headers.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "jrt.h"
|
||||
|
||||
typedef uint8_t* array_list;
|
||||
typedef uint8_t *array_list;
|
||||
#define null_list NULL
|
||||
|
||||
array_list array_list_init (uint8_t);
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "mem-heap.h"
|
||||
|
||||
typedef void* hash_table;
|
||||
typedef void *hash_table;
|
||||
#define null_hash NULL
|
||||
|
||||
hash_table hash_table_init (uint8_t, uint8_t, uint16_t, uint16_t (*hash) (void *));
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "jrt.h"
|
||||
|
||||
typedef uint8_t* linked_list;
|
||||
typedef uint8_t *linked_list;
|
||||
#define null_list NULL
|
||||
|
||||
linked_list linked_list_init (uint16_t);
|
||||
|
||||
@@ -28,24 +28,13 @@ typedef struct
|
||||
lit_cpointer_t **buckets;
|
||||
} lit_id_hash_table;
|
||||
|
||||
lit_id_hash_table *lit_id_hash_table_init (uint8_t*, size_t, size_t, size_t);
|
||||
lit_id_hash_table *lit_id_hash_table_init (uint8_t *, size_t, size_t, size_t);
|
||||
size_t lit_id_hash_table_get_size_for_table (size_t, size_t);
|
||||
void lit_id_hash_table_free (lit_id_hash_table *);
|
||||
void lit_id_hash_table_insert (lit_id_hash_table *, vm_idx_t, vm_instr_counter_t, lit_cpointer_t);
|
||||
lit_cpointer_t lit_id_hash_table_lookup (lit_id_hash_table *, vm_idx_t, vm_instr_counter_t);
|
||||
uint32_t lit_id_hash_table_dump_for_snapshot (uint8_t *buffer_p,
|
||||
size_t buffer_size,
|
||||
size_t *in_out_buffer_offset_p,
|
||||
lit_id_hash_table *table_p,
|
||||
const lit_mem_to_snapshot_id_map_entry_t *lit_map_p,
|
||||
uint32_t literals_num,
|
||||
vm_instr_counter_t instrs_num);
|
||||
bool lit_id_hash_table_load_from_snapshot (size_t blocks_count,
|
||||
uint32_t idx_num_total,
|
||||
const uint8_t *idx_to_lit_map_p,
|
||||
size_t idx_to_lit_map_size,
|
||||
const lit_mem_to_snapshot_id_map_entry_t *lit_map_p,
|
||||
uint32_t literals_num,
|
||||
uint8_t *buffer_for_hash_table_p,
|
||||
size_t buffer_for_hash_table_size);
|
||||
uint32_t lit_id_hash_table_dump_for_snapshot (uint8_t *, size_t, size_t *, lit_id_hash_table *,
|
||||
const lit_mem_to_snapshot_id_map_entry_t *, uint32_t, vm_instr_counter_t);
|
||||
bool lit_id_hash_table_load_from_snapshot (size_t, uint32_t, const uint8_t *, size_t,
|
||||
const lit_mem_to_snapshot_id_map_entry_t *, uint32_t, uint8_t *, size_t);
|
||||
#endif /* LIT_ID_HASH_TABLE */
|
||||
|
||||
@@ -86,8 +86,8 @@ void jsp_early_error_check_for_syntax_errors_in_formal_param_list (bool, locus);
|
||||
|
||||
void jsp_early_error_check_delete (bool, locus);
|
||||
|
||||
jmp_buf * jsp_early_error_get_early_error_longjmp_label (void);
|
||||
void __attribute__((noreturn)) jsp_early_error_raise_error (jsp_early_error_t type);
|
||||
jmp_buf *jsp_early_error_get_early_error_longjmp_label (void);
|
||||
void __attribute__((noreturn)) jsp_early_error_raise_error (jsp_early_error_t);
|
||||
jsp_early_error_t jsp_early_error_get_type (void);
|
||||
|
||||
#endif /* JSP_EARLY_ERROR_H */
|
||||
|
||||
@@ -69,19 +69,19 @@ extern void jsp_label_finalize (void);
|
||||
|
||||
extern void jsp_label_remove_all_labels (void);
|
||||
|
||||
extern void jsp_label_push (jsp_label_t *out_label_p, jsp_label_type_flag_t type_mask, token id);
|
||||
extern void jsp_label_rewrite_jumps_and_pop (jsp_label_t *label_p, vm_instr_counter_t break_tgt_oc);
|
||||
extern void jsp_label_push (jsp_label_t *, jsp_label_type_flag_t, token);
|
||||
extern void jsp_label_rewrite_jumps_and_pop (jsp_label_t *, vm_instr_counter_t);
|
||||
|
||||
extern jsp_label_t *jsp_label_find (jsp_label_type_flag_t type_mask, token id, bool *out_is_simply_jumpable_p);
|
||||
extern jsp_label_t *jsp_label_find (jsp_label_type_flag_t, token, bool *);
|
||||
|
||||
extern void jsp_label_add_jump (jsp_label_t *label_p, bool is_simply_jumpable, bool is_break);
|
||||
extern void jsp_label_setup_continue_target (jsp_label_t *outermost_label_p, vm_instr_counter_t tgt_oc);
|
||||
extern void jsp_label_add_jump (jsp_label_t *, bool, bool);
|
||||
extern void jsp_label_setup_continue_target (jsp_label_t *, vm_instr_counter_t);
|
||||
|
||||
extern bool jsp_label_raise_nested_jumpable_border (void);
|
||||
extern void jsp_label_remove_nested_jumpable_border (void);
|
||||
|
||||
extern jsp_label_t *jsp_label_mask_set (void);
|
||||
extern void jsp_label_restore_set (jsp_label_t *masked_label_set_list_p);
|
||||
extern void jsp_label_restore_set (jsp_label_t *);
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
extern void jsp_mm_init (void);
|
||||
extern void jsp_mm_finalize (void);
|
||||
extern size_t jsp_mm_recommend_size (size_t);
|
||||
extern void * jsp_mm_alloc (size_t);
|
||||
extern void *jsp_mm_alloc (size_t);
|
||||
extern void jsp_mm_free (void *);
|
||||
extern void jsp_mm_free_all (void);
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ const char *lexer_token_type_to_string (token_type);
|
||||
|
||||
void lexer_set_strict_mode (bool);
|
||||
|
||||
extern bool lexer_are_tokens_with_same_identifier (token id1, token id2);
|
||||
extern bool lexer_are_tokens_with_same_identifier (token, token);
|
||||
|
||||
extern bool lexer_is_no_escape_sequences_in_token_string (token);
|
||||
|
||||
|
||||
@@ -440,11 +440,9 @@ void dumper_set_break_target (void);
|
||||
void dumper_set_continue_target (void);
|
||||
void dumper_set_next_interation_target (void);
|
||||
vm_instr_counter_t
|
||||
dump_simple_or_nested_jump_for_rewrite (bool is_simple_jump,
|
||||
vm_instr_counter_t next_jump_for_tg_oc);
|
||||
dump_simple_or_nested_jump_for_rewrite (bool, vm_instr_counter_t);
|
||||
vm_instr_counter_t
|
||||
rewrite_simple_or_nested_jump_and_get_next (vm_instr_counter_t jump_oc,
|
||||
vm_instr_counter_t target_oc);
|
||||
rewrite_simple_or_nested_jump_and_get_next (vm_instr_counter_t, vm_instr_counter_t);
|
||||
void dump_continue_iterations_check (jsp_operand_t);
|
||||
|
||||
void start_dumping_case_clauses (void);
|
||||
@@ -481,13 +479,12 @@ bool dumper_variable_declaration_exists (lit_cpointer_t);
|
||||
void dump_variable_declaration (lit_cpointer_t);
|
||||
|
||||
vm_instr_counter_t dump_scope_code_flags_for_rewrite (void);
|
||||
void rewrite_scope_code_flags (vm_instr_counter_t scope_code_flags_oc,
|
||||
opcode_scope_code_flags_t scope_flags);
|
||||
void rewrite_scope_code_flags (vm_instr_counter_t, opcode_scope_code_flags_t);
|
||||
|
||||
void dump_reg_var_decl_for_rewrite (void);
|
||||
void rewrite_reg_var_decl (void);
|
||||
|
||||
void dump_ret (void);
|
||||
void dump_retval (jsp_operand_t op);
|
||||
void dump_retval (jsp_operand_t);
|
||||
|
||||
#endif /* OPCODES_DUMPER_H */
|
||||
|
||||
@@ -79,7 +79,7 @@ typedef struct
|
||||
bool contains_functions: 1; /**< flag, indicating that the scope contains a function declaration / expression */
|
||||
} scopes_tree_int;
|
||||
|
||||
typedef scopes_tree_int * scopes_tree;
|
||||
typedef scopes_tree_int *scopes_tree;
|
||||
|
||||
scopes_tree scopes_tree_init (scopes_tree, scope_type_t);
|
||||
void scopes_tree_free (scopes_tree);
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#define NOT_A_LITERAL (lit_cpointer_t::null_cp ())
|
||||
|
||||
void serializer_init ();
|
||||
void serializer_set_show_instrs (bool show_instrs);
|
||||
void serializer_set_show_instrs (bool);
|
||||
op_meta serializer_get_op_meta (vm_instr_counter_t);
|
||||
op_meta serializer_get_var_decl (vm_instr_counter_t);
|
||||
vm_instr_t serializer_get_instr (const bytecode_data_header_t *, vm_instr_counter_t);
|
||||
@@ -48,22 +48,13 @@ void serializer_free (void);
|
||||
/*
|
||||
* Snapshot-related
|
||||
*/
|
||||
bool serializer_dump_bytecode_with_idx_map (uint8_t *buffer_p,
|
||||
size_t buffer_size,
|
||||
size_t *in_out_buffer_offset_p,
|
||||
const bytecode_data_header_t *bytecode_data_p,
|
||||
const lit_mem_to_snapshot_id_map_entry_t *lit_map_p,
|
||||
uint32_t literals_num,
|
||||
uint32_t *out_bytecode_size_p,
|
||||
uint32_t *out_idx_to_lit_map_size_p);
|
||||
bool serializer_dump_bytecode_with_idx_map (uint8_t *, size_t, size_t *, const bytecode_data_header_t *,
|
||||
const lit_mem_to_snapshot_id_map_entry_t *, uint32_t,
|
||||
uint32_t *, uint32_t *);
|
||||
|
||||
const bytecode_data_header_t *
|
||||
serializer_load_bytecode_with_idx_map (const uint8_t *bytecode_and_idx_map_p,
|
||||
uint32_t bytecode_size,
|
||||
uint32_t idx_to_lit_map_size,
|
||||
const lit_mem_to_snapshot_id_map_entry_t *lit_map_p,
|
||||
uint32_t literals_num,
|
||||
bool is_copy);
|
||||
serializer_load_bytecode_with_idx_map (const uint8_t *, uint32_t, uint32_t,
|
||||
const lit_mem_to_snapshot_id_map_entry_t *, uint32_t, bool);
|
||||
#endif /* JERRY_ENABLE_SNAPSHOT */
|
||||
|
||||
#endif /* SERIALIZER_H */
|
||||
|
||||
@@ -96,13 +96,13 @@ typedef struct
|
||||
} re_compiler_ctx_t;
|
||||
|
||||
ecma_completion_value_t
|
||||
re_compile_bytecode (re_bytecode_t **out_bytecode_p, ecma_string_t *pattern_str_p, uint8_t flags);
|
||||
re_compile_bytecode (re_bytecode_t **, ecma_string_t *, uint8_t);
|
||||
|
||||
re_opcode_t
|
||||
re_get_opcode (re_bytecode_t **bc_p);
|
||||
re_get_opcode (re_bytecode_t **);
|
||||
|
||||
uint32_t
|
||||
re_get_value (re_bytecode_t **bc_p);
|
||||
re_get_value (re_bytecode_t **);
|
||||
|
||||
#endif /* CONFIG_ECMA_COMPACT_PROFILE_DISABLE_REGEXP_BUILTIN */
|
||||
#endif /* RE_COMPILER_H */
|
||||
|
||||
@@ -89,12 +89,10 @@ typedef struct
|
||||
typedef void (*re_char_class_callback) (void *re_ctx_p, uint32_t start, uint32_t end);
|
||||
|
||||
ecma_completion_value_t
|
||||
re_parse_char_class (re_parser_ctx_t *parser_ctx_p,
|
||||
re_char_class_callback append_char_class,
|
||||
void *re_ctx_p, re_token_t *out_token_p);
|
||||
re_parse_char_class (re_parser_ctx_t *, re_char_class_callback, void *, re_token_t *);
|
||||
|
||||
ecma_completion_value_t
|
||||
re_parse_next_token (re_parser_ctx_t *parser_ctx_p, re_token_t *out_token_p);
|
||||
re_parse_next_token (re_parser_ctx_t *, re_token_t *);
|
||||
|
||||
#endif /* CONFIG_ECMA_COMPACT_PROFILE_DISABLE_REGEXP_BUILTIN */
|
||||
#endif /* RE_PARSER_H */
|
||||
|
||||
Reference in New Issue
Block a user