変愚蛮怒のメインリポジトリです
Revisión | 1dc6b865152dec098f1fb2682bb4045607d99770 (tree) |
---|---|
Tiempo | 2020-03-01 17:07:51 |
Autor | Hourier <hourier@user...> |
Commiter | Hourier |
[Refactor] #39962 Made gf_desc const array
@@ -4,7 +4,7 @@ | ||
4 | 4 | |
5 | 5 | #include "gf-descriptions.h" |
6 | 6 | |
7 | -named_num gf_desc[MAX_NAMED_NUM] = | |
7 | +const named_num gf_desc[MAX_NAMED_NUM] = | |
8 | 8 | { |
9 | 9 | {"GF_ELEC", GF_ELEC }, |
10 | 10 | {"GF_POIS", GF_POIS }, |
@@ -10,4 +10,4 @@ typedef struct named_num | ||
10 | 10 | int num; /* A number associated with it */ |
11 | 11 | } named_num; |
12 | 12 | |
13 | -named_num gf_desc[MAX_NAMED_NUM]; | |
13 | +extern const named_num gf_desc[MAX_NAMED_NUM]; |