• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisión1dc6b865152dec098f1fb2682bb4045607d99770 (tree)
Tiempo2020-03-01 17:07:51
AutorHourier <hourier@user...>
CommiterHourier

Log Message

[Refactor] #39962 Made gf_desc const array

Cambiar Resumen

Diferencia incremental

--- a/src/io/gf-descriptions.c
+++ b/src/io/gf-descriptions.c
@@ -4,7 +4,7 @@
44
55 #include "gf-descriptions.h"
66
7-named_num gf_desc[MAX_NAMED_NUM] =
7+const named_num gf_desc[MAX_NAMED_NUM] =
88 {
99 {"GF_ELEC", GF_ELEC },
1010 {"GF_POIS", GF_POIS },
--- a/src/io/gf-descriptions.h
+++ b/src/io/gf-descriptions.h
@@ -10,4 +10,4 @@ typedef struct named_num
1010 int num; /* A number associated with it */
1111 } named_num;
1212
13-named_num gf_desc[MAX_NAMED_NUM];
13+extern const named_num gf_desc[MAX_NAMED_NUM];