summaryrefslogtreecommitdiff
path: root/src/binary-reader-ast.cc
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-02-24 10:45:40 -0800
committerGitHub <noreply@github.com>2017-02-24 10:45:40 -0800
commit25f189ffdbd953f7799ad98ea2d62fc822e54728 (patch)
tree4aa4668806d818c3a40a2ae1504d61e00c3514cc /src/binary-reader-ast.cc
parentb86721bdeb746ff86db73385f449a4af882501b2 (diff)
downloadwabt-25f189ffdbd953f7799ad98ea2d62fc822e54728.tar.gz
wabt-25f189ffdbd953f7799ad98ea2d62fc822e54728.tar.bz2
wabt-25f189ffdbd953f7799ad98ea2d62fc822e54728.zip
Change NULL -> nullptr (#315)
Also switch to using C++11.
Diffstat (limited to 'src/binary-reader-ast.cc')
-rw-r--r--src/binary-reader-ast.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/binary-reader-ast.cc b/src/binary-reader-ast.cc
index 89ede529..3552c998 100644
--- a/src/binary-reader-ast.cc
+++ b/src/binary-reader-ast.cc
@@ -63,7 +63,7 @@ static void push_label(Context* ctx,
LabelNode label;
label.label_type = label_type;
label.first = first;
- label.last = NULL;
+ label.last = nullptr;
ctx->max_depth++;
wabt_append_label_node_value(&ctx->label_stack, &label);
}
@@ -388,7 +388,7 @@ static WabtResult begin_global_init_expr(uint32_t index, void* user_data) {
static WabtResult end_global_init_expr(uint32_t index, void* user_data) {
Context* ctx = (Context*)user_data;
- ctx->current_init_expr = NULL;
+ ctx->current_init_expr = nullptr;
return WABT_OK;
}
@@ -598,7 +598,7 @@ static WabtResult on_else_expr(void* user_data) {
label->label_type = WABT_LABEL_TYPE_ELSE;
label->first = &parent_label->last->if_.false_;
- label->last = NULL;
+ label->last = nullptr;
return WABT_OK;
}
@@ -773,7 +773,7 @@ static WabtResult on_unreachable_expr(void* user_data) {
static WabtResult end_function_body(uint32_t index, void* user_data) {
Context* ctx = (Context*)user_data;
CHECK_RESULT(pop_label(ctx));
- ctx->current_func = NULL;
+ ctx->current_func = nullptr;
return WABT_OK;
}
@@ -815,7 +815,7 @@ static WabtResult begin_elem_segment_init_expr(uint32_t index,
static WabtResult end_elem_segment_init_expr(uint32_t index, void* user_data) {
Context* ctx = (Context*)user_data;
- ctx->current_init_expr = NULL;
+ ctx->current_init_expr = nullptr;
return WABT_OK;
}
@@ -879,7 +879,7 @@ static WabtResult begin_data_segment_init_expr(uint32_t index,
static WabtResult end_data_segment_init_expr(uint32_t index, void* user_data) {
Context* ctx = (Context*)user_data;
- ctx->current_init_expr = NULL;
+ ctx->current_init_expr = nullptr;
return WABT_OK;
}