Remove redundant extern keywords from function declarations/definitions. (#1495)

Extern keywords on function declarations/definitions provide no additional value since function declarations/definitions default to external linkage in C99, e.g. removing them won't change the semantics of the program.

The extern keywords were essentially a legacy from the early days of the project. This commit cleans this up across the whole codebase in one go to minimize history disruption.

The bulk of the changes in this commit were produced by a custom clang-tidy checker.

Note that variables declarations carrying the extern keyword are untouched by this commit since there the presence of the keyword actually has an impact on the semantics of the program.

JerryScript-DCO-1.0-Signed-off-by: Tilmann Scheller t.scheller@samsung.com
This commit is contained in:
Tilmann Scheller
2016-12-16 10:18:37 +01:00
committed by GitHub
parent defd97cc51
commit 1e99be90c3
43 changed files with 451 additions and 451 deletions
+10 -10
View File
@@ -48,16 +48,16 @@ typedef enum
ECMA_ERROR_URI /**< URIError */
} ecma_standard_error_t;
extern ecma_object_t *ecma_new_standard_error (ecma_standard_error_t);
extern ecma_object_t *ecma_new_standard_error_with_message (ecma_standard_error_t, ecma_string_t *);
extern ecma_value_t ecma_raise_standard_error (ecma_standard_error_t, const lit_utf8_byte_t *);
extern ecma_value_t ecma_raise_common_error (const char *);
extern ecma_value_t ecma_raise_eval_error (const char *);
extern ecma_value_t ecma_raise_range_error (const char *);
extern ecma_value_t ecma_raise_reference_error (const char *);
extern ecma_value_t ecma_raise_syntax_error (const char *);
extern ecma_value_t ecma_raise_type_error (const char *);
extern ecma_value_t ecma_raise_uri_error (const char *);
ecma_object_t *ecma_new_standard_error (ecma_standard_error_t);
ecma_object_t *ecma_new_standard_error_with_message (ecma_standard_error_t, ecma_string_t *);
ecma_value_t ecma_raise_standard_error (ecma_standard_error_t, const lit_utf8_byte_t *);
ecma_value_t ecma_raise_common_error (const char *);
ecma_value_t ecma_raise_eval_error (const char *);
ecma_value_t ecma_raise_range_error (const char *);
ecma_value_t ecma_raise_reference_error (const char *);
ecma_value_t ecma_raise_syntax_error (const char *);
ecma_value_t ecma_raise_type_error (const char *);
ecma_value_t ecma_raise_uri_error (const char *);
/**
* @}