Add parameter names to function declarations. (#1498)
It's generally considered a bad programming practice to have function declarations without parameter names. This is another legacy from the early days of the project. Fix in one go to minimize history disruption. Used a custom clang-tidy check to create the bulk of the change. JerryScript-DCO-1.0-Signed-off-by: Tilmann Scheller t.scheller@samsung.com
This commit is contained in:
@@ -100,19 +100,19 @@ typedef struct
|
||||
uint8_t *current_p; /**< current position in bytecode */
|
||||
} re_bytecode_ctx_t;
|
||||
|
||||
re_opcode_t re_get_opcode (uint8_t **);
|
||||
ecma_char_t re_get_char (uint8_t **);
|
||||
uint32_t re_get_value (uint8_t **);
|
||||
uint32_t re_get_bytecode_length (re_bytecode_ctx_t *);
|
||||
re_opcode_t re_get_opcode (uint8_t **bc_p);
|
||||
ecma_char_t re_get_char (uint8_t **bc_p);
|
||||
uint32_t re_get_value (uint8_t **bc_p);
|
||||
uint32_t re_get_bytecode_length (re_bytecode_ctx_t *bc_ctx_p);
|
||||
|
||||
void re_append_opcode (re_bytecode_ctx_t *, re_opcode_t);
|
||||
void re_append_u32 (re_bytecode_ctx_t *, uint32_t);
|
||||
void re_append_char (re_bytecode_ctx_t *, ecma_char_t);
|
||||
void re_append_jump_offset (re_bytecode_ctx_t *, uint32_t);
|
||||
void re_append_opcode (re_bytecode_ctx_t *bc_ctx_p, re_opcode_t opcode);
|
||||
void re_append_u32 (re_bytecode_ctx_t *bc_ctx_p, uint32_t value);
|
||||
void re_append_char (re_bytecode_ctx_t *bc_ctx_p, ecma_char_t input_char);
|
||||
void re_append_jump_offset (re_bytecode_ctx_t *bc_ctx_p, uint32_t value);
|
||||
|
||||
void re_insert_opcode (re_bytecode_ctx_t *, uint32_t, re_opcode_t);
|
||||
void re_insert_u32 (re_bytecode_ctx_t *, uint32_t, uint32_t);
|
||||
void re_bytecode_list_insert (re_bytecode_ctx_t *, size_t, uint8_t *, size_t);
|
||||
void re_insert_opcode (re_bytecode_ctx_t *bc_ctx_p, uint32_t offset, re_opcode_t opcode);
|
||||
void re_insert_u32 (re_bytecode_ctx_t *bc_ctx_p, uint32_t offset, uint32_t value);
|
||||
void re_bytecode_list_insert (re_bytecode_ctx_t *bc_ctx_p, size_t offset, uint8_t *bytecode_p, size_t length);
|
||||
|
||||
#ifdef REGEXP_DUMP_BYTE_CODE
|
||||
void re_dump_bytecode (re_bytecode_ctx_t *bc_ctx);
|
||||
|
||||
@@ -47,7 +47,7 @@ typedef struct
|
||||
} re_compiler_ctx_t;
|
||||
|
||||
ecma_value_t
|
||||
re_compile_bytecode (const re_compiled_code_t **, ecma_string_t *, uint16_t);
|
||||
re_compile_bytecode (const re_compiled_code_t **out_bytecode_p, ecma_string_t *pattern_str_p, uint16_t flags);
|
||||
|
||||
void re_cache_gc_run ();
|
||||
|
||||
|
||||
@@ -101,10 +101,11 @@ typedef struct
|
||||
typedef void (*re_char_class_callback) (void *re_ctx_p, ecma_char_t start, ecma_char_t end);
|
||||
|
||||
ecma_value_t
|
||||
re_parse_char_class (re_parser_ctx_t *, re_char_class_callback, void *, re_token_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);
|
||||
|
||||
ecma_value_t
|
||||
re_parse_next_token (re_parser_ctx_t *, re_token_t *);
|
||||
re_parse_next_token (re_parser_ctx_t *parser_ctx_p, re_token_t *out_token_p);
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
||||
Reference in New Issue
Block a user