Skip to content

Commit 53d911e

Browse files
committed
Add readme link and minor fix
1 parent 2dcfba8 commit 53d911e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
2. [解析数字](tutorial02/tutorial02.md)(2016/9/18 完成):JSON number 的语法。练习 JSON number 类型的校验。[解析数字解答篇](tutorial02_answer/tutorial02_answer.md)(2016/9/20 完成)。
4343
3. [解析字符串](tutorial03/tutorial03.md)(2016/9/22 完成):使用 union 存储 variant、自动扩展的堆栈、JSON string 的语法、valgrind。练习最基本的 JSON string 类型的解析、内存释放。[解析字符串解答篇](tutorial03_answer/tutorial03_answer.md)(2016/9/27 完成)。
4444
4. [Unicode](tutorial04/tutorial04.md)(2016/10/2 完成):Unicode 和 UTF-8 的基本知识、JSON string 的 unicode 处理。练习完成 JSON string 类型的解析。[Unicode 解答篇](tutorial04_answer/tutorial04_answer.md)(2016/10/6 完成)。
45-
5. 解析数组:JSON array 的语法。练习完成 JSON array 类型的解析、相关内存释放。
45+
5. [解析数组](tutorial05/tutorial05.md)(2016/10/7 完成):JSON array 的语法。练习完成 JSON array 类型的解析、相关内存释放。
4646
6. 解析对象:JSON object 的语法、重构 string 解析函数。练习完成 JSON object 的解析、相关内存释放。
4747
7. 生成器:JSON 生成过程、注意事项。练习完成 JSON 生成器。
4848
8. 访问:JSON array/object 的访问及修改。练习完成相关功能。

tutorial05/tutorial05.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ static int lept_parse_value(lept_context* c, lept_value* v) {
192192
/* bug! */
193193
lept_value* e = lept_context_push(c, sizeof(lept_value));
194194
lept_init(e);
195+
size++;
195196
if ((ret = lept_parse_value(c, e)) != LEPT_PARSE_OK)
196197
return ret;
197198
/* ... */

0 commit comments

Comments
 (0)