Skip to content

Commit

Permalink
Remove nullptr usages and use NULL instead
Browse files Browse the repository at this point in the history
Related issue: #119

JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
  • Loading branch information
galpeter committed Jun 10, 2015
1 parent f6b875c commit ba77165
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jerry-core/jerry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ char jerry_extension_characters_buffer[CONFIG_EXTENSION_CHAR_BUFFER_SIZE];

#ifdef JERRY_ENABLE_LOG
int jerry_debug_level = 0;
FILE *jerry_log_file = nullptr;
FILE *jerry_log_file = NULL;
#endif

/**
Expand Down
6 changes: 3 additions & 3 deletions main-linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ main (int argc,
jerry_flag_t flags = JERRY_FLAG_EMPTY;

#ifdef JERRY_ENABLE_LOG
const char *log_file_name = nullptr;
const char *log_file_name = NULL;
#endif /* JERRY_ENABLE_LOG */
for (i = 1; i < argc; i++)
{
Expand Down Expand Up @@ -222,7 +222,7 @@ main (int argc,
if (log_file_name)
{
jerry_log_file = fopen (log_file_name, "w");
if (jerry_log_file == nullptr)
if (jerry_log_file == NULL)
{
JERRY_ERROR_MSG ("Failed to open log file: %s\n", log_file_name);
return JERRY_STANDALONE_EXIT_CODE_FAIL;
Expand Down Expand Up @@ -259,7 +259,7 @@ main (int argc,
if (jerry_log_file && jerry_log_file != stdout)
{
fclose (jerry_log_file);
jerry_log_file = nullptr;
jerry_log_file = NULL;
}
#endif /* JERRY_ENABLE_LOG */

Expand Down

0 comments on commit ba77165

Please sign in to comment.