Skip to content

Commit 5d968f7

Browse files
committed
优化目录结构
1 parent 029855d commit 5d968f7

18 files changed

+79
-36
lines changed

.idea/editor.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 24 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CMakeLists.txt

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ set(CMAKE_C_STANDARD 17)
55

66
add_library(jsonParserLib
77
core/Json.h
8-
core/parser.h
9-
core/JsonValue.h
10-
core/JsonArray.h
11-
core/JsonObject.h
12-
core/JsonString.h
13-
core/outputer.h
14-
core/parser.c
15-
core/JsonValue.c
16-
core/JsonArray.c
17-
core/JsonObject.c
18-
core/JsonString.c
19-
core/outputer.c
8+
core/parser/parser.h
9+
core/types/JsonValue.h
10+
core/types/JsonArray.h
11+
core/types/JsonObject.h
12+
core/types/JsonString.h
13+
core/utils/outputer.h
14+
core/parser/parser.c
15+
core/types/JsonValue.c
16+
core/types/JsonArray.c
17+
core/types/JsonObject.c
18+
core/types/JsonString.c
19+
core/utils/outputer.c
20+
core/utils/UTF2GBK.cpp
21+
core/utils/UTF2GBK.h
2022
)
2123

2224
add_executable(json

core/Json.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
2-
#include "JsonObject.h"
3-
#include "JsonString.h"
4-
#include "JsonValue.h"
5-
#include "JsonArray.h"
6-
#include "outputer.h"
7-
#include "parser.h"
2+
#include "types/JsonObject.h"
3+
#include "types/JsonString.h"
4+
#include "types/JsonValue.h"
5+
#include "types/JsonArray.h"
6+
#include "utils/outputer.h"
7+
#include "./parser/parser.h"
File renamed without changes.

core/parser.h renamed to core/parser/parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
#include "Json.h"
2+
#include "../Json.h"
33

44

55
void setInputStream(FILE* stream);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)