Skip to content

Commit 36c80f2

Browse files
committed
Remove nullptr usages and use NULL instead
Related issue: #119 JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
1 parent 53801e3 commit 36c80f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jerry-core/jerry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ char jerry_extension_characters_buffer[CONFIG_EXTENSION_CHAR_BUFFER_SIZE];
6868

6969
#ifdef JERRY_ENABLE_LOG
7070
int jerry_debug_level = 0;
71-
FILE *jerry_log_file = nullptr;
71+
FILE *jerry_log_file = NULL;
7272
#endif
7373

7474
/**

main-linux.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ main (int argc,
132132
jerry_flag_t flags = JERRY_FLAG_EMPTY;
133133

134134
#ifdef JERRY_ENABLE_LOG
135-
const char *log_file_name = nullptr;
135+
const char *log_file_name = NULL;
136136
#endif /* JERRY_ENABLE_LOG */
137137
for (i = 1; i < argc; i++)
138138
{
@@ -222,7 +222,7 @@ main (int argc,
222222
if (log_file_name)
223223
{
224224
jerry_log_file = fopen (log_file_name, "w");
225-
if (jerry_log_file == nullptr)
225+
if (jerry_log_file == NULL)
226226
{
227227
JERRY_ERROR_MSG ("Failed to open log file: %s\n", log_file_name);
228228
return JERRY_STANDALONE_EXIT_CODE_FAIL;
@@ -259,7 +259,7 @@ main (int argc,
259259
if (jerry_log_file && jerry_log_file != stdout)
260260
{
261261
fclose (jerry_log_file);
262-
jerry_log_file = nullptr;
262+
jerry_log_file = NULL;
263263
}
264264
#endif /* JERRY_ENABLE_LOG */
265265

0 commit comments

Comments
 (0)