Skip to content

tutorial1 #261

Description

@EthanQi-zx

请问为啥tutorial1里的 “lept_parse() 没有把 v.type 改成 LEPT_NULL”,
static int lept_parse_null(lept_context* c, lept_value* v) { EXPECT(c, 'n'); if (c->json[0] != 'u' || c->json[1] != 'l' || c->json[2] != 'l') return LEPT_PARSE_INVALID_VALUE; c->json += 3; v->type = LEPT_NULL; return LEPT_PARSE_OK; }
这里最后返回LEPT_PARSE_OK之前不是吧v-type设置成LEPT_NULL了吗?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions